Google Direction Scraper

by dev_bodex

Automatically extract route directions, distances, and travel times from Google Maps for logistics, planning, or app development. Get structured data fast.

427 runs
20 users
Try This Actor

Opens on Apify.com

About Google Direction Scraper

Need to pull route data from Google Maps without the manual hassle? I built this Google Direction Scraper for exactly that. It’s a Node.js script that uses Puppeteer to automatically visit Google Maps, input your start and end points, and fetch the clean, structured data you actually need. You get the travel routes, exact distances, and estimated travel times for different modes like driving, transit, or walking. I use it primarily for two things: logistics planning and travel app development. Instead of copying and pasting for hours, you can automate gathering direction data to compare fuel costs, optimize delivery routes, or analyze commute times for a job site. The output is formatted JSON or CSV, ready to drop into your own analysis dashboards, planning tools, or backend systems. It saves a ton of time if you're building anything that requires real-world routing information at scale. Just set your parameters, run it, and get a usable dataset without touching the Maps interface.

What does this actor do?

Google Direction Scraper is a web scraping and automation tool available on the Apify platform. It's designed to help you extract data and automate tasks efficiently in the cloud.

Key Features

  • Cloud-based execution - no local setup required
  • Scalable infrastructure for large-scale operations
  • API access for integration with your applications
  • Built-in proxy rotation and anti-blocking measures
  • Scheduled runs and webhooks for automation

How to Use

  1. Click "Try This Actor" to open it on Apify
  2. Create a free Apify account if you don't have one
  3. Configure the input parameters as needed
  4. Run the actor and download your results

Documentation

Google Direction Scraper

This Apify actor scrapes detailed route information from Google Maps. It provides distances, travel times, and step-by-step directions for various transportation modes, outputting structured JSON data for use in applications, analysis, or planning.

Key Features

  • Flexible Input: Accepts starting and destination locations as addresses or coordinates.
  • Multiple Transport Modes: Queries routes for driving, walking, cycling, public transit, flights, and two-wheelers.
  • Detailed Route Data: Extracts total distance, estimated travel time, turn-by-turn directions, and mode-specific details (e.g., transit schedules, toll info).
  • Structured JSON Output: Returns all data in a consistent JSON format for easy integration.

How to Use

  1. Go to the Google Direction Scraper actor on Apify.
  2. Configure the actor input with your source and destination.
  3. Run the actor. It will query Google Maps, parse the results, and return the route data.

Input

Provide a JSON object with the origin and destination.

{
  "source": "New York",
  "destination": "Washington"
}
  • source: The starting location (address or coordinates).
  • destination: The end location (address or coordinates).

Output

The actor returns a JSON array containing comprehensive route details for all available transport modes. The structure organizes routes by mode (e.g., best, driving, walking), with each route containing its specific instructions and metrics.

Example Output Snippet:

[
  {
    "source": "New York",
    "destination": "Washington",
    "mode": {
      "driving": [
        {
          "mode": "Driving",
          "duration": "43 hr",
          "metre": "2,919 miles",
          "direction": "via I-80 W",
          "info": "43 hr without traffic\nThis route has tolls."
        }
      ],
      "flight": [
        {
          "mode": "Flights",
          "duration": "7 hr 35 min",
          "direction": "New York, NY—Fresno, CA"
        }
      ]
    }
  }
]

Key data points included:
* Source and destination addresses.
* Total distance and estimated duration for each route.
* Transportation mode (driving, walking, cycling, etc.).
* Step-by-step directions and additional route information (tolls, warnings).
* For transit and flights: estimated arrival times and potential costs.

Categories

Common Use Cases

Market Research

Gather competitive intelligence and market data

Lead Generation

Extract contact information for sales outreach

Price Monitoring

Track competitor pricing and product changes

Content Aggregation

Collect and organize content from multiple sources

Ready to Get Started?

Try Google Direction Scraper now on Apify. Free tier available with no credit card required.

Start Free Trial

Actor Information

Developer
dev_bodex
Pricing
Paid
Total Runs
427
Active Users
20
Apify Platform

Apify provides a cloud platform for web scraping, data extraction, and automation. Build and run web scrapers in the cloud.

Learn more about Apify

Need Professional Help?

Couldn't solve your problem? Hire a verified specialist on Fiverr to get it done quickly and professionally.

Find a Specialist

Trusted by millions | Money-back guarantee | 24/7 Support