Sonic

Browse Sonic Drive-In's menu-page or store-locator sitemap

Returns one page of Sonic Drive-In's own sitemap: section=menu lists every menu category/subcategory/item page (298 pages), section=locations lists every store-directory page (state/city/store, ~3,365 stores). Each entry's path is what GET /sonic/item (menu section) or GET /sonic/store (locations section, kind=store) takes.

get/sonic/sitemap

Request

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

Query parameters

section'menu' | 'locations' required

Which sitemap to read

kind'index' | 'category' | 'subcategory' | 'item' | 'state' | 'city' | 'store'

Optional. Filter by page kind. menu: index, category, subcategory, item. locations: index, state, city, store.

pageinteger

Optional. 1-based page, default 1.

page_sizeinteger

Optional. Entries per page, 1-500, default 100.

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": {
    "count": 100,
    "entries": [
      {
        "kind": "item",
        "path": "menu/categories/breakfast/local-breakfast-favorites/bacon-egg-and-cheese-bagel"
      }
    ],
    "page": 1,
    "section": "menu",
    "total": 298,
    "total_pages": 3
  }
}

Changes

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