Papa John's API endpoint
Returns one level of Papa John's store directory. Omit path for the root country index, then pass a child's path to descend through state, city, and store levels. Each child includes its name, path, URL, store count when available, and whether it is a store leaf. Pass a store child's path to GET /papajohns/store. This is a directory browse; use GET /papajohns/nearby for a coordinate search.
/papajohns/directoryQuery parameters:
path (optional) — a directory path from children[].path, such as
united-states/ca. Omit it for the root index.Each child includes name, path, url, is_store, and store_count when
published. Pass a child with is_store: true to
/papajohns/store. Use
/papajohns/nearby for coordinate search.
| Field | Filled in, of 2 checked | Values in the sample |
|---|---|---|
| name | 2 | “CA” and 1 other value |
| path | 2 | “ca” and 1 other value |
| url | 2 | locations.papajohns.com |
| store_count | 2 | 223 to 3,080, median 223 |
| is_store | 2 | true in 0 of 2 |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| path | string | No | Directory path from a previous response's children[].path; omit for the root country index | united-states/ca | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/papajohns/directory" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"path": "",
"name": "",
"children": [
{
"name": "United States",
"path": "united-states",
"url": "https://locations.papajohns.com/united-states",
"store_count": 3500,
"is_store": false
}
],
"count": 1,
"source_url": "https://locations.papajohns.com/index.html",
"fetched_at": "2026-09-04T09:00:00Z"
}
}Request schema
No body schema
Response schema
#/definitions/papajohns.directoryResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | Code is the HTTP status code or a custom code used to indicate the result of the request @example 200 | |||
| data | papajohns.DirectoryResponse | No | ||||
| data.children | array | No | ||||
| data.children[].is_store | boolean | No | false | IsStore marks a child that is a store page rather than another directory level -- call /papajohns/store with its path. | ||
| data.children[].name | string | No | CA | |||
| data.children[].path | string | No | united-states/ca | |||
| data.children[].store_count | integer | No | 222 | StoreCount is how many stores sit under this branch, as Yext reports it. Absent once children are stores themselves. | ||
| data.children[].url | string | No | ||||
| data.count | integer | No | 120 | |||
| data.fetched_at | string | No | ||||
| data.name | string | No | ||||
| data.path | string | No | united-states/ca | |||
| data.source_url | string | No | ||||
| msg | unknown | No | Msg is the message that describes the result of the request @example "Request successful" |
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 404 | Not Found | #/definitions/app.Response |
| 429 | Too Many Requests | #/definitions/app.Response |
| 503 | Service Unavailable | #/definitions/app.Response |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/papajohns/directory" \
-H "x-api-key: $CRAWLORA_API_KEY"