Sonic
Browse Sonic Drive-In's restaurant directory by country, state and city
Returns Sonic Drive-In's restaurant directory as a country to state to city tree, with a restaurant count at every level. Use it to discover which states and cities have restaurants before calling GET /sonic/locations or GET /sonic/nearby. Each city carries both its display name and the slug that composes into a store path. Counts here describe listed restaurants and are internally consistent (the city counts sum to total_count); GET /sonic/locations enumerates a larger set of store pages, so the two totals intentionally differ.
get/sonic/directory
Request
- Base URL: https://api.crawlora.net/api/v1
- URL: https://api.crawlora.net/api/v1/sonic/directory
- Auth: API key in header x-api-key
Headers
x-api-keystring required
API key required
Response
OK
Example response
{
"data": {
"countries": [
{
"count": 3364,
"country_code": "US",
"country_name": "United States",
"states": [
{
"cities": [
{
"count": 1,
"name": "Albertville",
"slug": "albertville"
}
],
"code": "AL",
"count": 95,
"name": "Alabama"
}
]
}
],
"total_count": 3364
}
}Changes
No recorded changes to this operation across all 2 revisions of this API.