Apple Maps API endpoint
Use Crawlora's Apple Maps Directions API to extract supported public Apple Maps 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.
/apple-maps/directionsReturns Apple Maps routes between an origin and a destination, with optional intermediate stops, for driving, walking, or cycling. Each route carries its name, whether it is Apple's main or an alternate route, distance, live/historic/free-flow durations, toll and highway flags, Apple's route description and traffic note, and per-leg turn-by-turn steps (maneuver, road, shield, instruction text, distance, duration); detail=full adds each leg's path as coordinates. Departure time and avoid-tolls/highways/stairs preferences are supported. Transit routing is not available. 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 |
|---|---|---|---|---|---|
| origin_latitude | number | Yes | Origin latitude | ||
| origin_longitude | number | Yes | Origin longitude | ||
| destination_latitude | number | Yes | Destination latitude | ||
| destination_longitude | number | Yes | Destination longitude | ||
| via | string | No | Intermediate stops as lat,lng pairs separated by |, at most 8 | ||
| mode | string | No | driving | Travel mode. Defaults to driving. Allowed values: driving, walking, cycling | |
| avoid_tolls | boolean | No | Driving only: prefer routes without tolls | ||
| avoid_highways | boolean | No | Driving only: prefer routes without highways | ||
| avoid_stairs | boolean | No | Walking only: prefer routes without stairs | ||
| depart_at | string | No | now | Departure time as RFC 3339 for traffic-aware estimates. Defaults to now. | |
| detail | string | No | steps | How much of each route to return. Defaults to steps. Allowed values: summary, steps, full | |
| lang | string | No | en-US | Language for road names and instructions as a BCP 47 tag. Defaults to en-US. | |
| country | string | No | US | Two-letter ISO 3166-1 country code. Defaults to US. | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/apple-maps/directions?mode=driving&avoid_tolls=true&avoid_highways=true&avoid_stairs=true&detail=summary&lang=en&country=us" \ -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 |
| 404 | Not Found | #/definitions/app.Response |
| 503 | Service Unavailable | #/definitions/app.Response |
{
"code": 200,
"msg": "OK",
"data": {
"mode": "driving",
"origin": {
"latitude": 37.7749,
"longitude": -122.4194
},
"destination": {
"latitude": 37.8199,
"longitude": -122.4783
},
"routes": [
{
"name": "Franklin St",
"type": "main",
"transport": "driving",
"description": "Fastest",
"traffic": "Traffic is moderate.",
"distance_meters": 10050,
"duration_seconds": 1206,
"duration_historic_seconds": 1150,
"duration_freeflow_seconds": 811,
"avoids_tolls": true,
"avoids_highways": false,
"legs": [
{
"name": "Franklin St",
"distance_meters": 10050,
"duration_seconds": 1206,
"steps": [
{
"index": 0,
"maneuver": "start_route",
"road": "S Van Ness Ave",
"shield": "101",
"distance_meters": 0,
"duration_seconds": 0
},
{
"index": 1,
"maneuver": "right_turn",
"road": "Otis St",
"instruction": "Turn right onto Otis St",
"distance_meters": 214,
"duration_seconds": 136
},
{
"index": 7,
"maneuver": "arrive_at_destination_right",
"road": "Golden Gate Bridge",
"shield": "101",
"instruction": "The destination is on your right",
"distance_meters": 4569,
"duration_seconds": 251
}
]
}
]
},
{
"name": "Van Ness Ave",
"type": "alternate",
"transport": "driving",
"description": "Fastest",
"distance_meters": 9992,
"duration_seconds": 1334,
"avoids_tolls": true,
"avoids_highways": false,
"legs": [
{
"name": "Van Ness Ave",
"distance_meters": 9992,
"duration_seconds": 1334
}
]
}
]
}
}Request schema
No body schema
Response schema
#/definitions/applemaps.directionsResponseDoc
| 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 | applemaps.DirectionsResponse | No | ||||
| data.depart_at | string | No | ||||
| data.destination | applemaps.LatLng | No | ||||
| data.destination.latitude | number | No | ||||
| data.destination.longitude | number | No | ||||
| data.mode | string | No | ||||
| data.origin | applemaps.LatLng | No | ||||
| data.origin.latitude | number | No | ||||
| data.origin.longitude | number | No | ||||
| data.routes | array | No | ||||
| data.routes[].avoids_highways | boolean | No | ||||
| data.routes[].avoids_tolls | boolean | No | ||||
| data.routes[].description | string | No | ||||
| data.routes[].distance_meters | integer | No | ||||
| data.routes[].duration_freeflow_seconds | integer | No | ||||
| data.routes[].duration_historic_seconds | integer | No | ||||
| data.routes[].duration_seconds | integer | No | ||||
| data.routes[].legs | array | No | ||||
| data.routes[].legs[].distance_meters | integer | No | ||||
| data.routes[].legs[].duration_seconds | integer | No | ||||
| data.routes[].legs[].name | string | No | ||||
| data.routes[].legs[].path | array | No | ||||
| data.routes[].legs[].steps | array | No | ||||
| data.routes[].legs[].steps[].distance_meters | integer | No | ||||
| data.routes[].legs[].steps[].duration_seconds | integer | No | ||||
| data.routes[].legs[].steps[].index | integer | No | ||||
| data.routes[].legs[].steps[].instruction | string | No | ||||
| data.routes[].legs[].steps[].maneuver | string | No | ||||
| data.routes[].legs[].steps[].road | string | No | ||||
| data.routes[].legs[].steps[].shield | string | No | ||||
| data.routes[].name | string | No | ||||
| data.routes[].traffic | string | No | ||||
| data.routes[].transport | string | No | ||||
| data.routes[].type | string | No | ||||
| data.via | array | No | ||||
| data.via[].latitude | number | No | ||||
| data.via[].longitude | number | 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/apple-maps/directions?mode=driving&avoid_tolls=true&avoid_highways=true&avoid_stairs=true&detail=summary&lang=en&country=us" \
-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