Subway API endpoint
Use Crawlora's Subway Nearby API to extract supported public Subway 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.
/subway/nearbyReturns Subway stores nearest first to a coordinate or a free-text address/city/ZIP, with live open/closed status, payment methods, catering link, and feature flags. This is the proximity search GET /subway/sitemap cannot do directly -- the sitemap enumerates the whole world for bulk scraping, this answers "what is near this point" with distance and live attributes the sitemap/store locator does not carry. Each store's store_id is the same value GET /subway/menu takes. 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 | No | Search center latitude. Set together with longitude, or set query instead -- exactly one search mode. | ||
| longitude | number | No | Search center longitude. | ||
| query | string | No | Free-text address, city or ZIP to search near. Alternative to latitude/longitude. | ||
| limit | integer | No | Maximum stores to return, 1-20 (default 10) | ||
| offset | string | No | Opaque pagination cursor from a previous response's next_offset | ||
| features | string | No | Comma-separated. Restricts results to stores with ALL listed features. Allowed values: HAS_BREAKFAST, IS_REMOTEORDER_ACCEPTED, HAS_HALAL, HAS_DRIVETHROUGH, HAS_CATERING, HAS_CURBSIDE, IS_OPERATING. | ||
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/subway/nearby?query=coffee&limit=10" \ -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": {
"stores": [
{
"store_id": "28062-0",
"address": {
"street": "701 Cesar Chavez Avenue",
"city": "Los Angeles",
"region": "CA",
"postal_code": "90012",
"country": "US"
},
"phone_number": "213-626-4411",
"latitude": 34.0610673,
"longitude": -118.2441504,
"distance_miles": 0.4,
"timezone": "America/Los_Angeles",
"is_open_now": false,
"can_take_online_orders": true,
"features": [
"HAS_BREAKFAST",
"IS_REMOTEORDER_ACCEPTED",
"HAS_CATERING",
"HAS_CURBSIDE",
"IS_OPERATING"
],
"payment_methods": [
"APPLEPAY",
"VISA",
"MASTERCARD"
],
"catering_url": "https://www.ezcater.com/catering/pvt/subway-los-angeles",
"hours": [
{
"day_of_week": "Monday",
"closed": false,
"opens": "09:00",
"closes": "22:00"
}
]
}
],
"count": 1,
"total_results": 42,
"next_offset": "opaque-cursor-abc123",
"source_url": "https://www.subway.com/api/location-search",
"fetched_at": "2026-09-05T12:00:00Z"
}
}Request schema
No body schema
Response schema
#/definitions/subway.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 | subway.NearbyResponse | No | ||||
| data.count | integer | No | ||||
| data.fetched_at | string | No | ||||
| data.next_offset | string | No | NextOffset pages through TotalResults -- pass it back as offset on the next call. Upstream does not signal "last page" explicitly; compare count/total_results, or stop once a page returns fewer stores than requested. | |||
| data.source_url | string | No | ||||
| data.stores | array | No | ||||
| data.stores[].address | subway.StoreAddress | No | ||||
| data.stores[].address.city | string | No | New York | |||
| data.stores[].address.country | string | No | US | |||
| data.stores[].address.postal_code | string | No | 10119 | |||
| data.stores[].address.region | string | No | NY | |||
| data.stores[].address.street | string | No | 1 Penn Plaza | |||
| data.stores[].can_take_online_orders | boolean | No | ||||
| data.stores[].catering_url | string | No | ||||
| data.stores[].distance_miles | number | No | DistanceMiles is measured from the requested coordinate/query. | |||
| data.stores[].features | array | No | Features lists which of the seven documented filter values this store actually has -- the same tokens the features query param accepts as input. | |||
| data.stores[].hours | array | No | ||||
| data.stores[].hours[].closed | boolean | No | false | |||
| data.stores[].hours[].closes | string | No | 23:00 | |||
| data.stores[].hours[].day_of_week | string | No | Monday | |||
| data.stores[].hours[].opens | string | No | 09:00 | |||
| data.stores[].is_open_now | boolean | No | ||||
| data.stores[].latitude | number | No | ||||
| data.stores[].longitude | number | No | ||||
| data.stores[].payment_methods | array | No | ||||
| data.stores[].phone_number | string | No | ||||
| data.stores[].store_id | string | No | ||||
| data.stores[].timezone | string | No | ||||
| data.total_results | integer | No | ||||
| 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/subway/nearby?query=coffee&limit=10" \
-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