Scrapeless API
Dashboard
Dashboard
  1. google maps
  • User
    • Get User Info
  • Scraping Browser
    • CDP API
    • Browser extensions
      • Upload extension
      • Upgrade extension
      • Delete extension
      • Extension info
      • Extension list
    • Connect
    • Running sessions
    • Live URL
  • Scraping API
    • shopee
      • Actor List
      • Shopee Product
      • Shopee Search
      • Shopee Rcmd
    • br sites
      • Solucoes cnpjreva
      • Solucoes certidaointernet
      • Servicos receita
      • Consopt
    • amazon
      • API Parameters
      • product
      • seller
      • keywords
    • google search
      • API Parameters
      • Google Search
      • Google Images
      • Google Local
      • Google Shopping
      • Google Videos
    • google trends
      • API Parameters
      • AutoComplete
      • Interest Over Time
      • Compared Breakdown By Region
      • Interest By Subregion
      • Related Queries
      • Related Topics
      • Trending Now
    • google flights
      • API Parameters
      • Round trip
      • One way
      • Multi-city
    • google flights chart
      • API Parameters
      • chart
    • google maps
      • API Parameters(Google Maps)
      • API Parameters(Google Maps Autocomplete)
      • API Parameters(Google Maps Contributor Reviews)
      • API Parameters(Google Maps Directions)
      • API Parameters(Google Maps Reviews)
      • Google Maps
        POST
      • Google Maps Autocomplete
        POST
      • Google Maps Contributor Reviews
        POST
      • Google Maps Directions
        POST
      • Google Maps Reviews
        POST
    • google scholar
      • API Parameters(Google Scholar)
      • API Parameters(Google Scholar Author)
      • API Parameters(Google Scholar Cite)
      • API Parameters(Google Scholar Profiles)
      • Google Scholar
      • Google Scholar Author
      • Google Scholar Cite
      • Google Scholar Profiles
    • google jobs
      • API Parameters
      • Google Jobs
    • google shopping
      • API Parameters
      • Google Shopping
    • google hotels
      • API Parameters
      • Supported Google Vacation Rentals Property Types
      • Supported Google Hotels Property Types
      • Supported Google Vacation Rentals Amenities
      • Supported Google Hotels Amenities
      • Google Hotels
    • google news
      • API Parameters
      • Google News
    • google lens
      • API Parameters
      • Google Lens
    • google finance
      • API Parameters
      • Google Finance
      • Google Finance Markets
    • google product
      • API Parameters
      • Google Product
    • google play store
      • API Parameters
      • Supported Google Play Categories
      • Google Play Games
      • Google Play Books
      • Google Play Movies
      • Google Play Product
      • Google Play Apps
    • google ads
      • API Parameters
      • Google Ads
    • Scraper Request
      POST
    • Scraper GetResult
      GET
  • Universal Scraping API
    • JS Render Docs
    • JS Render
    • Web Unlocker
  • Crawler
    • Scrape
      • Scrape a single URL
      • Scrape multiple URLs
      • Cancel a batch scrape job
      • Get the status of a scrape
      • Get the status of a batch scrape job
      • Get the errors of a batch scrape job
    • Crawl
      • Crawl multiple URLs based on options
      • Cancel a crawl job
      • Get the status of a crawl job
      • Get the errors of a crawl job
  • Public
    • actor status
    • actor status
  1. google maps

Google Maps Directions

Developing
POST
/api/v1/scraper/request
Last modified:2025-03-19 09:04:20

Request

Authorization
Add parameter in header
x-api-token
Example:
x-api-token: ********************
Body Params application/json
object {0}
Example
{
    "actor": "scraper.google.maps.directions",
    "input": {
        "start_addr": "Austin-Bergstrom International Airport",
        "end_addr": "5540 N Lamar Blvd, Austin, TX 78756, USA",
        "hl": "en",
        "gl": "us"
    }
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.scrapeless.com/api/v1/scraper/request' \
--header 'Content-Type: application/json' \
--header 'x-api-token;' \
--data-raw '{
    "actor": "scraper.google.maps.directions",
    "input": {
        "start_addr": "Austin-Bergstrom International Airport",
        "end_addr": "5540 N Lamar Blvd, Austin, TX 78756, USA",
        "hl": "en",
        "gl": "us"
    }
}'

Responses

🟢200Success
application/json
Body
object {0}
Example
{
    "directions": [
        {
            "travel_mode": "Driving",
            "via": "183 Toll",
            "distance": 21638,
            "duration": 1115,
            "arrive_around": 16,
            "formatted_distance": "13.4 miles",
            "formatted_duration": "19 min",
            "extensions": [
                "This route has tolls."
            ],
            "trips": [
                {
                    "travel_mode": "Driving",
                    "title": "Get on  State Hwy 71 W  from  Spirit of Texas Dr",
                    "distance": 1348,
                    "duration": 186,
                    "formatted_distance": "0.8 mi",
                    "formatted_duration": "3 min",
                    "details": [
                        {
                            "title": "Head  west  on  Presidential Blvd  toward  Spirit of Austin Ln",
                            "action": "dir-tt dir-tt-straight",
                            "distance": 112,
                            "duration": 9,
                            "formatted_distance": "367 ft",
                            "formatted_duration": "9 sec",
                            "geo_photo": "https://streetviewpixels-pa.googleapis.com/v1/thumbnail?panoid=k-AJUqLQOht_-7n1De9Peg&cb_client=maps_sv.tactile.gps&w=203&h=100&yaw=63.10455&pitch=0&thumbfov=100",
                            "gps_coordinates": {
                                "latitude": 30.209984008114446,
                                "longitude": -97.66457702100735
                            }
                        },
                        {
                            "title": "Slight  right  onto  Spirit of Austin Ln",
                            "action": "dir-tt dir-tt-turn-slight-right",
                            "distance": 59,
                            "duration": 9,
                            "formatted_distance": "194 ft",
                            "formatted_duration": "9 sec",
                            "geo_photo": "https://streetviewpixels-pa.googleapis.com/v1/thumbnail?panoid=2BPPYXfWno1ny_fKTKjp2g&cb_client=maps_sv.tactile.gps&w=203&h=100&yaw=232.49327&pitch=0&thumbfov=100",
                            "gps_coordinates": {
                                "latitude": 30.210069525206904,
                                "longitude": -97.66573856661172
                            }
                        },
                        {
                            "title": "At the traffic circle, continue straight to stay on  Spirit of Austin Ln",
                            "action": "dir-tt dir-tt-roundabout-right",
                            "distance": 187,
                            "duration": 34,
                            "formatted_distance": "0.1 mi",
                            "formatted_duration": "34 sec",
                            "geo_photo": "https://streetviewpixels-pa.googleapis.com/v1/thumbnail?panoid=Y34hs3Z0H4xxCBFwKd1OOg&cb_client=maps_sv.tactile.gps&w=203&h=100&yaw=2.1399052&pitch=0&thumbfov=100",
                            "gps_coordinates": {
                                "latitude": 30.210301702703532,
                                "longitude": -97.66624157127255
                            }
                        },
                        {
                            "title": "Turn  right  onto  Spirit of Texas Dr",
                            "action": "dir-tt dir-tt-turn-right",
                            "distance": 588,
                            "duration": 102,
                            "formatted_distance": "0.4 mi",
                            "formatted_duration": "2 min",
                            "geo_photo": "https://streetviewpixels-pa.googleapis.com/v1/thumbnail?panoid=0O7xMkjSKGISFC6VIaXQRA&cb_client=maps_sv.tactile.gps&w=203&h=100&yaw=133.84685&pitch=0&thumbfov=100",
                            "gps_coordinates": {
                                "latitude": 30.21166725231471,
                                "longitude": -97.6669902023807
                            }
                        },
                        {
                            "title": "Turn  left  to merge onto  State Hwy 71 W",
                            "action": "dir-tt dir-tt-merge",
                            "distance": 402,
                            "duration": 32,
                            "formatted_distance": "0.2 mi",
                            "formatted_duration": "32 sec",
                            "geo_photo": "https://streetviewpixels-pa.googleapis.com/v1/thumbnail?panoid=QzyTxNxrNu6GUmYcLg5mzA&cb_client=maps_sv.tactile.gps&w=203&h=100&yaw=224.16176&pitch=0&thumbfov=100",
                            "gps_coordinates": {
                                "latitude": 30.2157681271178,
                                "longitude": -97.66353313438796
                            }
                        }
                    ]
                },
                {
                    "travel_mo
Modified at 2025-03-19 09:04:20
Previous
Google Maps Contributor Reviews
Next
Google Maps Reviews
Built with