Endpoint Playground
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.
14 Oct 2026: 1 countries; 4 fields had a value in every checked item.
Sample value profiles: country_name: “United States”; states: median 47 entries.
curl 'https://api.crawlora.net/api/v1/sonic/directory' \
-H "x-api-key: $CRAWLORA_API_KEY"No request parameters
{
"code": 200,
"msg": "OK",
"data": {
"total_count": 3357,
"countries": [
{
"country_code": "US",
"country_name": "United States",
"count": 3357,
"states": [
{
"code": "AL",
"name": "Alabama",
"count": 95,
"cities": [
{
"name": "Albertville",
"slug": "albertville",
"count": 1
}
]
},
{
"code": "WY",
"name": "Wyoming",
"count": 6,
"cities": [
{
"name": "Cheyenne",
"slug": "cheyenne",
"count": 2
}
]
}
]
}
],
"source_url": "https://api-idp.sonicdrivein.com/snc/digital-exp-api/v1/locations/regions?countryCode=US",
"fetched_at": "2026-10-03T00:00:00Z"
}
}The sample response, schema and code snippets below work without an account. Sending a live request needs an API key.