Sonic API endpoint
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.
/sonic/sitemapQuery parameters:
section (required) — menu or locations.kind (optional) — filter by page kind. For menu: index, category, subcategory, item. For locations: index, state, city, store. Default is all kinds for the chosen section.page (optional, default 1) — 1-based page number.page_size (optional, default 100, max 500) — entries per page.Response includes section, entries[], count, total, page, total_pages, source_url, and fetched_at. Each entry has url, path, and kind.
| Field | Filled in, of 40 checked | Values in the sample |
|---|---|---|
| url | 40 | sonicdrivein.com |
| path | 40 | “menu/categories” and 39 other values |
| kind | 40 | item (31), subcategory (5), category (3) and 1 more |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| section | string | Yes | Which sitemap to read Allowed values: menu, locations. | menu | |
| kind | string | No | Optional. Filter by page kind. menu: index, category, subcategory, item. locations: index, state, city, store. Allowed values: index, category, subcategory, item, state, city, store. | ||
| page | integer | No | Optional. 1-based page, default 1. | 1 | |
| page_size | integer | No | Optional. Entries per page, 1-500, default 100. | 100 | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/sonic/sitemap?section=menu&kind=index&page=1" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"section": "menu",
"entries": [
{
"url": "https://www.sonicdrivein.com/menu/categories/breakfast/local-breakfast-favorites/bacon-egg-and-cheese-bagel/",
"path": "menu/categories/breakfast/local-breakfast-favorites/bacon-egg-and-cheese-bagel",
"kind": "item"
}
],
"count": 100,
"total": 298,
"page": 1,
"total_pages": 3,
"source_url": "https://www.sonicdrivein.com/static.xml",
"fetched_at": "2026-09-04T12:00:00Z"
}
}Request schema
No body schema
Response schema
#/definitions/sonic.sitemapResponseDoc
| 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 | sonic.SitemapResponse | No | ||||
| data.count | integer | No | 100 | |||
| data.entries | array | No | ||||
| data.entries[].kind | string | No | item | Kind classifies the page -- see SitemapOption.Kind's enum per section. | ||
| data.entries[].path | string | No | menu/categories/breakfast/local-breakfast-favorites/bacon-egg-and-cheese-bagel | Path is the site-relative path (no leading/trailing slash), the shape /sonic/menu's category param and /sonic/item's path param take for "menu" section entries, and /sonic/store's path param takes for "locations" section "store" entries. | ||
| data.entries[].url | string | No | ||||
| data.fetched_at | string | No | ||||
| data.page | integer | No | 1 | |||
| data.section | string | No | menu | |||
| data.source_url | string | No | ||||
| data.total | integer | No | 298 | |||
| data.total_pages | integer | No | 3 | |||
| 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 |
| 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/sonic/sitemap?section=menu&kind=index&page=1" \
-H "x-api-key: $CRAWLORA_API_KEY"