Sonic API endpoint
Returns Sonic Drive-In restaurants within a radius of a latitude/longitude, nearest first, one page at a time. Each result carries the same detail as GET /sonic/store -- address, phone, coordinates, open/closed status, amenities, weekly hours per fulfillment channel, and delivery-provider deep links -- plus distance_miles from the search centre, so ranking or mapping results needs no follow-up call per store. Use this instead of paging GET /sonic/sitemap when you know roughly where you are looking. An area with no restaurants returns an empty stores array with total_stores 0, not an error.
/sonic/nearbyQuery parameters:
latitude (required) — latitude of the search centre, -90 to 90, e.g. 35.4676.longitude (required) — longitude of the search centre, -180 to 180, e.g. -97.5164.radius (optional) — search radius in miles, 1 to 100. Defaults to 25.limit (optional) — stores per page, 1 to 50. Defaults to 10.page (optional) — zero-based page number. Defaults to 0.Out-of-range coordinates, a radius outside 1-100, a limit outside 1-50, or a negative page return 400.
An area with no restaurants is a success, not an error: stores is [] and total_stores is 0. Use total_pages and is_last_page to page through a larger result set.
Response includes latitude, longitude, radius_miles, page, limit, total_stores, total_pages, is_last_page, returned_count, stores[], source_url, and fetched_at.
Each entry in stores[] has store_id, display_name, distance_miles, address, phone, latitude, longitude, status, timezone, has_drive_through, is_delivery_enabled, is_digitally_enabled, amenities[], hours[], service_hours[], and delivery_providers[].
hours[] is the store's general published week (day_of_week, opens, closes, is_24_hour). service_hours[] breaks the same week down per fulfillment channel (type, e.g. ORDER_AHEAD, DRIVE_THROUGH, DELIVERY), each with its own hours[], is_fulfillment, and is_tipping_enabled.
| Field | Filled in, of 10 checked | Values in the sample |
|---|---|---|
| store_id | 10 | |
| display_name | 10 | |
| distance_miles | 10 | 0.65 to 4.4, median 2.83 |
| address | 10 | |
| phone | 10 | |
| latitude | 10 | |
| longitude | 10 | |
| status | 10 | OPEN in all 10 |
| timezone | 10 | America/Chicago in all 10 |
| has_drive_through | 10 | true in 8 of 10 |
| is_delivery_enabled | 10 | true in 10 of 10 |
| is_digitally_enabled | 10 | true in 10 of 10 |
| amenities | 10 | median 3 entries |
| hours | 10 | median 7 entries |
| service_hours | 10 | median 6 entries |
| delivery_providers | 10 | median 4 entries |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| latitude | number | Yes | Latitude of the search centre, -90 to 90 | 35.4676 | |
| longitude | number | Yes | Longitude of the search centre, -180 to 180 | -97.5164 | |
| radius | integer | No | 25 | Search radius in miles, 1-100. Defaults to 25. | 25 |
| limit | integer | No | 10 | Stores per page, 1-50. Defaults to 10. | 10 |
| page | integer | No | 0 | Zero-based page number. Defaults to 0. | 0 |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/sonic/nearby?latitude=35.4676&longitude=-97.5164&limit=10&page=1" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"latitude": 35.4676,
"longitude": -97.5164,
"radius_miles": 25,
"page": 0,
"limit": 10,
"total_stores": 80,
"total_pages": 8,
"is_last_page": false,
"returned_count": 10,
"stores": [
{
"store_id": "5003",
"display_name": "900 W. Sheridan, Oklahoma City, OK",
"distance_miles": 0.651,
"address": {
"line1": "900 W. Sheridan",
"city": "Oklahoma City",
"state": "OK",
"postal_code": "73106",
"country": "US"
},
"phone": "405-234-2299",
"latitude": 35.466153,
"longitude": -97.527819,
"status": "OPEN",
"timezone": "America/Chicago",
"has_drive_through": true,
"is_delivery_enabled": true,
"is_digitally_enabled": true,
"amenities": [
"Drive-thru",
"Delivery",
"Online Ordering"
],
"hours": [
{
"day_of_week": "MONDAY",
"opens": "06:00",
"closes": "02:45"
}
],
"service_hours": [
{
"type": "ORDER_AHEAD",
"hours": [
{
"day_of_week": "MONDAY",
"opens": "06:00",
"closes": "02:45"
}
],
"is_fulfillment": false,
"is_tipping_enabled": false
}
],
"delivery_providers": [
{
"name": "GrubHub",
"url": "https://www.grubhub.com/food/sonic_drive-in",
"is_active": true
}
]
}
],
"source_url": "https://api-idp.sonicdrivein.com/snc/digital-exp-api/v1/locations?...",
"fetched_at": "2026-09-05T12:00:00Z"
}
}Request schema
No body schema
Response schema
#/definitions/sonic.nearbyResponseDoc
| 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.NearbyResponse | No | ||||
| data.fetched_at | string | No | ||||
| data.is_last_page | boolean | No | ||||
| data.latitude | number | No | 35.4676 | |||
| data.limit | integer | No | 10 | |||
| data.longitude | number | No | -97.5164 | |||
| data.page | integer | No | 0 | |||
| data.radius_miles | integer | No | 25 | |||
| data.returned_count | integer | No | 10 | |||
| data.source_url | string | No | ||||
| data.stores | array | No | ||||
| data.stores[].address | sonic.StoreAddress | No | StoreAddress record, 6 fields: city, country, line1, line2, postal_code, state. Described under Sonic Drive-In Store API. | |||
| data.stores[].amenities | array | No | ||||
| data.stores[].delivery_providers | array | No | ||||
| data.stores[].delivery_providers[].is_active | boolean | No | ||||
| data.stores[].delivery_providers[].name | string | No | DoorDash | |||
| data.stores[].delivery_providers[].url | string | No | ||||
| data.stores[].display_name | string | No | 2540 Dell Range Blvd, Cheyenne, WY | |||
| data.stores[].distance_miles | number | No | 3.45 | |||
| data.stores[].has_drive_through | boolean | No | ||||
| data.stores[].hours | array | No | StoreHours record, 4 fields: closes, day_of_week, is_24_hour, opens. Described under Sonic Drive-In Store API. | |||
| data.stores[].is_delivery_enabled | boolean | No | ||||
| data.stores[].is_digitally_enabled | boolean | No | ||||
| data.stores[].latitude | number | No | 41.160531 | |||
| data.stores[].longitude | number | No | -104.777659 | |||
| data.stores[].phone | string | No | 307-632-9188 | |||
| data.stores[].service_hours | array | No | StoreServiceHours record, 8 fields: hours, is_fulfillment, is_tipping_enabled, type. Described under Sonic Drive-In Store API. | |||
| data.stores[].status | string | No | OPEN | |||
| data.stores[].store_id | string | No | 4521 | |||
| data.stores[].timezone | string | No | America/Denver | |||
| data.total_pages | integer | No | 2 | |||
| data.total_stores | integer | No | 17 | |||
| 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/nearby?latitude=35.4676&longitude=-97.5164&limit=10&page=1" \
-H "x-api-key: $CRAWLORA_API_KEY"