Sonic API endpoint
Use Crawlora's Sonic Drive-In Nearby API to extract supported public Sonic data as structured JSON. This page includes request parameters, cURL examples, response schema, error behavior, credit cost, and a Playground link for testing before integration.
/sonic/nearbyReturns 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. Developers commonly use this endpoint for data enrichment, monitoring, research dashboards, internal automation, and agent-native workflows that need repeatable structured public web data. Authentication uses the documented Crawlora headers, and usage is metered with the credit cost shown on this page.
Request parameters are generated from the active endpoint catalog. Required values must be sent before Crawlora can call the upstream public web data source.
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| latitude | number | Yes | Latitude of the search centre, -90 to 90 | ||
| longitude | number | Yes | Longitude of the search centre, -180 to 180 | ||
| radius | integer | No | 25 | Search radius in miles, 1-100. Defaults to 25. | |
| limit | integer | No | 10 | Stores per page, 1-50. Defaults to 10. | |
| page | integer | No | 0 | Zero-based page number. Defaults to 0. | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/sonic/nearby?limit=10&page=1" \ -H "x-api-key: $CRAWLORA_API_KEY"
Send your scraping API key in the x-api-key header. Use the console API Keys page to rotate or select the active key.
Endpoint usage is metered in credits. The plan prices, included credits, limits, and overage rates below match the active backend billing configuration.
| Plan | Price | Included credits | Daily cap | Rate limit | Overage |
|---|---|---|---|---|---|
| Free | $0/mo | 2,000 | 500 daily credits | 5/min | No overage |
| Starter | $9/mo | 20,000 | 5,000 daily credits | 15/min | $0.75/1,000 overage credits when enabled |
| Growth | $29/mo | 100,000 | 25,000 daily credits | 45/min | $0.45/1,000 overage credits when enabled |
| Pro | $79/mo | 400,000 | No daily cap | 120/min | $0.30/1,000 overage credits |
| Business | $199/mo | 1,200,000 | No daily cap | 300/min | $0.20/1,000 overage credits |
| Enterprise | $499/mo | 5,000,000 | No daily cap | 1,000/min | $0.12/1,000 overage credits |
This endpoint is executed through Crawlora's managed scraping infrastructure.
Crawlora does not silently return bad data when the upstream page cannot be used.
| Status | Common failure case |
|---|---|
| 400 | Invalid input or missing required parameter |
| 429 | Plan or endpoint rate limit exceeded |
| 500 | Internal execution error |
| 502 | Upstream platform failed, returned unusable HTML, or served a challenge page that could not be resolved |
When possible, Crawlora returns structured error context so your integration can retry, back off, or inspect the request.
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 429 | Too Many Requests | #/definitions/app.Response |
| 503 | Service Unavailable | #/definitions/app.Response |
{
"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 | ||||
| data.stores[].address.city | string | No | Cheyenne | |||
| data.stores[].address.country | string | No | US | |||
| data.stores[].address.line1 | string | No | 2540 Dell Range Blvd | |||
| data.stores[].address.line2 | string | No | ||||
| data.stores[].address.postal_code | string | No | 82009 | |||
| data.stores[].address.state | string | No | WY | |||
| 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 | ||||
| data.stores[].hours[].closes | string | No | 21:45 | |||
| data.stores[].hours[].day_of_week | string | No | MONDAY | |||
| data.stores[].hours[].is_24_hour | boolean | No | ||||
| data.stores[].hours[].opens | string | No | 07:00 | |||
| 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 | ||||
| data.stores[].service_hours[].hours | array | No | ||||
| data.stores[].service_hours[].hours[].closes | string | No | 21:45 | |||
| data.stores[].service_hours[].hours[].day_of_week | string | No | MONDAY | |||
| data.stores[].service_hours[].hours[].is_24_hour | boolean | No | ||||
| data.stores[].service_hours[].hours[].opens | string | No | 07:00 | |||
| data.stores[].service_hours[].is_fulfillment | boolean | No | ||||
| data.stores[].service_hours[].is_tipping_enabled | boolean | No | ||||
| data.stores[].service_hours[].type | string | No | DRIVE_THROUGH | Type is Sonic's own channel name, e.g. "ORDER_AHEAD", "PICKUP", "CURBSIDE_PICKUP", "STORE", "DELIVERY", "DRIVE_THROUGH". | ||
| 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" |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/sonic/nearby?limit=10&page=1" \
-H "x-api-key: $CRAWLORA_API_KEY"Crawlora is designed for responsible structured public web data workflows. Customers are responsible for using Crawlora in compliance with applicable laws, third-party rights, target-platform rules, and Crawlora terms.
Read Crawlora terms