Google Travel and Maps
Google Maps Directions API
Retrieve Google Maps Directions data.
Make a request
Use your existing PrismCrawl API key and credit balance. A completed request consumes one credit, including recognized empty or unavailable results and source changes found during a valid continuation. Validation and operational errors remain uncharged. Each completed continuation request is billed separately.
POST /v1/google/maps/directions
curl 'https://api.prismcrawl.com/v1/google/maps/directions' \
--request POST \
--header 'content-type: application/json' \
--header 'x-api-key: <PRISMCRAWL_API_KEY>' \
--data '{
"destination": "Dallas, TX",
"origin": "Austin, TX",
"travel_mode": "driving"
}'Supported parameters
| Parameter | Usage |
|---|---|
origin | Starting address or place for directions. |
destination | Destination address or place for directions. |
travel_mode | Transport mode for the requested directions. driving, walking, bicycling, transit, two-wheeler, best, flight |
country | Two-letter country or storefront code, such as us or gb. |
language | Provider-supported language code, such as en. |
limit | Maximum number of items to return. The provider may return fewer. |
device | Device presentation for the source request. desktop, mobile, tablet |
start_data_id | Google Maps hexadecimal data ID for this endpoint; use one of address, data ID, or coordinates. |
start_coords | Route endpoint as latitude,longitude. |
end_data_id | Google Maps hexadecimal data ID for this endpoint; use one of address, data ID, or coordinates. |
end_coords | Route endpoint as latitude,longitude. |
distance_unit | Display distances in kilometers (0) or miles (1), calculated from the native route distance in meters. |
avoid | Comma-separated road types to avoid. |
prefer | Comma-separated preferred transit modes; requires transit travel mode. |
route | Transit routing preference: fewer transfers (2), less walking (3), or wheelchair accessible (4). |
time | depart_at:timestamp, arrive_by:timestamp, or last_available (transit only). Unix timestamps use seconds. |
html | Return the encoded original response rather than parsed JSON. |
zero_trace | Do not archive source or parsed response artifacts. |
Structured results
Read items from data.content.results. The response also includes the search metadata, pagination state, and any extracted SERP features. Optional fields appear when supplied by the provider.
addresscategorycoordinatesdescriptiondistancedistance_metersdurationduration_secondsflightidlatitudelongitudenamephonepositionrankratingrating_maxrating_sourcereview_countsnippetstepssummarythumbnailtitletravel_modetypeurlwebsiteSDKs and guides
The official SDKs cover this endpoint with typed parameters, automatic retries, and pagination helpers.
- Python SDK:
pip install prismcrawl - Node.js SDK:
npm install prismcrawl - Tutorial: Free Google Maps API key limits in 2026, and a prepaid option for Maps data