Papa John's

Browse the Papa John's store directory

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.

get/papajohns/directory

Request

  • Base URL: https://api.crawlora.net/api/v1
  • URL: https://api.crawlora.net/api/v1/papajohns/directory
  • Auth: API key in header x-api-key

Query parameters

pathstring

Directory path from a previous response's children[].path; omit for the root country index

Headers

x-api-keystring required

API key required

Response

OK

codeinteger

Code is the HTTP status code or a custom code used to indicate the result of the request @example 200

msgunknown

Example response

{
  "data": {
    "children": [
      {
        "name": "CA",
        "path": "united-states/ca",
        "store_count": 222
      }
    ],
    "count": 120,
    "path": "united-states/ca"
  }
}

Changes

No recorded changes to this operation across all 4 revisions of this API.