Sonic API endpoint
Returns Sonic Drive-In's national menu's top-level categories -- Breakfast, Value, Limited Time, Combos, Burgers, Chicken, Hot Dogs, Sandwiches, Snacks & Sides, Sweets, Tea & Coffee, Lemonades & Limeades, Sodas, Slushes, Refreshers, Wacky Pack Kids Meals and others -- each with its slug (the value GET /sonic/menu takes) and a page_count of subcategory/item pages nested under it.
/sonic/categoriesNo query parameters.
Response includes categories[], count, source_url, and fetched_at. Each category has name, slug, page_count, and url.
| Field | Filled in, of 19 checked | Values in the sample |
|---|---|---|
| name | 19 | “Breakfast” and 18 other values |
| slug | 19 | |
| page_count | 19 | |
| url | 19 | sonicdrivein.com |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/sonic/categories" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"categories": [
{
"name": "Tea & Coffee",
"slug": "tea-coffee",
"page_count": 24,
"url": "https://www.sonicdrivein.com/menu/categories/tea-coffee/"
}
],
"count": 20,
"source_url": "https://www.sonicdrivein.com/_next/data/<buildId>/menu/categories.json",
"fetched_at": "2026-09-04T12:00:00Z"
}
}Request schema
No body schema
Response schema
#/definitions/sonic.categoriesResponseDoc
| 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.CategoriesResponse | No | ||||
| data.categories | array | No | ||||
| data.categories[].name | string | No | Tea & Coffee | Name is Sonic's own category name where known (see categoryDisplayNames), otherwise a best-effort title-cased form of Slug -- see titleCaseSlug's doc comment. | ||
| data.categories[].page_count | integer | No | 24 | PageCount is the number of subcategory and item pages Sonic's own menu sitemap lists under this category -- a proxy for menu size, not a deduplicated product count (a size-variant group like "Coffee" counts as one page here even though it expands to several orderable sizes). | ||
| data.categories[].slug | string | No | tea-coffee | |||
| data.categories[].url | string | No | ||||
| data.count | integer | No | 20 | |||
| data.fetched_at | string | No | ||||
| 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 |
|---|---|---|
| 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/categories" \
-H "x-api-key: $CRAWLORA_API_KEY"