The Google Maps scraper API for local business data

Send a search to get local business data as JSON, with a rating and an address for every place. Filter by radius to keep results local.

Google Maps API at a glance

This API returns places from Google Maps as JSON. Send a POST request with a query, then read each place from the places array in the response. Run the example below to see the exact shape.

Endpoint
POST /v1/data/google/maps
Authentication
API key as Authorization: Bearer wh_…
Stage
Beta
Output
A places array with title, IDs, address, coordinates, rating, review count, phone, website and hours
Search controls
Query, coordinates, radius, place type, minimum rating, price level, open now and sort order
Single place
Pass place_id, cid or data to look up one place
Results per request
1 to 200 with num_results. The default is 20.
Credit weight
1. See the pricing page for current rates.

One request, structured JSON.

This request searches for coffee near Times Square, while the response below shows one of the three places returned. Copy the request to try it yourself.

POST /v1/data/google/maps
curl -X POST "https://api.datablue.dev/v1/data/google/maps" \
  -H "Authorization: Bearer wh_..." \
  -H "Content-Type: application/json" \
  -d '{
    "query": "coffee near Times Square",
    "coordinates": "40.7580,-73.9855",
    "radius": 3000,
    "num_results": 3,
    "min_rating": 4,
    "language": "en",
    "country": "us"
  }'
Response (trimmed to 1 of 3 places)
{
  "success": true,
  "query": "coffee near Times Square",
  "search_type": "search",
  "total_results": "3",
  "places": [
    {
      "position": 1,
      "title": "787 coffee",
      "place_id": "ChIJfbedxbZZwokRpbnR5BBdz1c",
      "cid": "0x89c259b6c59db77d:0x57cf5d10e4d1b9a5",
      "address": "245 W 46th St, New York, NY 10036",
      "gps_coordinates": { "latitude": 40.7597441, "longitude": -73.9875048 },
      "website": "https://www.787coffee.com/",
      "phone": "(646) 596-7178",
      "rating": 4.9,
      "review_count": 3791,
      "type": "Coffee shop",
      "open_now": false,
      "hours": "Closed · Opens 7 AM"
    }
  ]
}

What a place returns.

Each place arrives as one object with named fields.

Identity

Each place has a title and a rank. Stable IDs such as place_id and cid let you match the place to your own records later.

Location

You get a street address and GPS coordinates, which let you plot places straight onto a map.

Ratings and reviews

Every place carries a star rating and a review count, so sorting on both finds the best-reviewed businesses quickly.

Contact details

Phone number and website come back when Google lists them. Treat every optional field as possibly missing.

Opening hours

Each place returns its weekly hours and an open-now flag. Add the open_now filter to see open places.

Maps link

Every place includes a url that opens its Maps page, which lets you verify any result by eye.

Categories and attributes

Places carry a category such as Coffee shop, while attributes like wheelchair access appear when Google shows them. Filter on type to target one category.

Options that shape your search.

Most requests need only a query to get started. Add the rest when you need tighter results.

Search query and area

Set query to the search you would type into Maps. Add coordinates and a radius between 100 and 50000 meters to keep every result inside one area.

Filters and sorting

Narrow results with a place type or a minimum rating, then sort them by relevance or distance when order matters.

Result count

Ask for 1 to 200 places per request with num_results. The default is 20, and Google sometimes returns fewer.

Language and country

Set language to choose the language of result text. The country value only hints at Google’s localisation, so it does not pick a proxy country.

Single place lookup

Pass a place_id to look up one place in detail, or send a cid or an encoded data value instead. Use Google Maps Place when you need the full detail.

Reviews on search results

The include_reviews option is deprecated and best effort. Use Google Maps Reviews instead when you need dependable review data for one specific place.

What teams build with it.

Local data powers sales lists, market maps and directories.

Lead generation

List the cafes in a city with their phone numbers, then feed the list into your outreach tool this week.

Local market research

Count the competitors inside a radius around any address, then repeat the search across cities to compare market strength.

Location analytics

Join place coordinates to footfall or demographic data. Rank sites by how many rated businesses surround them.

Directories and store locators

Keep a directory of places fresh from live Maps data. Refresh it on a schedule so listings stay current.

Why use an API instead of scraping Maps yourself.

Google Maps is built for people rather than scripts, so its pages load more results as you scroll. Their markup also shifts over time, which breaks hand-built scrapers.

DataBlue runs that fetching layer for you, so one request returns the places already parsed into named fields. Your code reads JSON, with no browser to maintain.

Every field on this page appears in a live response. Build against those fields first, then add filters later as your needs grow over time.

Your first Maps search in a minute.

Sign up, grab a key and run one request.

  1. Create an account

    Sign up to get your API key.

  2. Send a search

    POST a query to /v1/data/google/maps with a Bearer key, then add coordinates and a radius for a local search.

  3. Read the places

    Loop over places in the response, then read each field straight off the object with no HTML parsing.

Google Maps scraper API questions.

Short answers about data and billing before you start.

It turns Google Maps search results into structured JSON, with each place returned as one object in the response.

Send a POST request to /v1/data/google/maps with your query and a Bearer token for your API key. Add coordinates and a radius to search near one spot.

The fields section above lists everything a place returns, while phone numbers and websites appear when Google lists them. Compare it with the sample response above.

Set num_results between 1 and 200 to control the count. The default is 20, and Google sometimes returns fewer.

Pass a place_id to look up one place directly, or send a cid or an encoded data value instead. Use Google Maps Place for deeper detail on one business.

Search returns the review count and rating for each place, while Google Maps Reviews returns the review text itself.

Set country and language to localise results, though the country value is only a hint rather than a proxy location.

This API is in beta today, and fields could still change as we improve it. Build against the documented fields, then read the changelog before each upgrade you ship to production.

This API has a credit weight of 1. Check the pricing page for current rates.

Run a Google Maps search in a minute.

Create an account to get your key. Then paste the example request into your terminal.

Start free