vøiddo guidesAll Actors on Apify

Google Maps Scraper: how to get Places, Phones, Hours as JSON/CSV (API, Python, no code)

Scrape Google Maps business listings by search and place: name, category, address, coordinates, rating, review count, phone, website, opening hours, place ID and Maps link. This guide shows the output fields, a working input, and Python, JavaScript and cURL code for the Actor v0iddo/google-maps-scraper on Apify.

Open Google Maps Scraper on Apify

What data you get

One row per result. Every row can be downloaded as JSON, CSV, Excel or HTML, or read through the API.

FieldLabelTypeExample
nameNametextRefinery High End Coffee
categoryCategorytextCoffee shop
addressAddresstextAlbrechtstraße 11B, 10117 Berlin, Germany
cityCitytextBerlin
ratingRatingnumber4.6
reviewsCountReviewsnumber1221
phonePhonetext
websiteWebsiteURLhttp://refinerycoffee.de/
latitudeLatitudenumber52.5213117
longitudeLongitudenumber13.3849173
placeIdPlace IDtextChIJ9UK3L8JRqEcRidYSi6cycYo
urlMaps URLURLhttps://www.google.com/maps/place/?q=place_id:ChIJ9UK3L8JRqEcRidYSi...
searchQuerytextcoffee shop in Berlin
positionnumber1
categorieslist["Coffee shop"]
streettextAlbrechtstraße 11B
postalCodetext10117
countryCodetextDE
neighborhoodtextMitte
openingHourslist[{"day": "Monday", "hours": "8 AM-6 PM"}, {"day": "Tuesday", "hours...
featureIdtext0x47a851c22fb742f5:0x8a7132a78b12d689
cidtext9975810344776554121

Input example

This is the input that is pre-filled on the Actor page. Change the values for your own run.

{
  "searchQueries": [
    "coffee shop"
  ],
  "location": "Berlin",
  "language": "en",
  "maxItems": 20
}
Input fieldTypeWhat it does
searchQueriesarrayWhat to look for on Google Maps, one per line, for example: coffee shop, plumber, dentist.
locationstringOptional city, area or address added to every query as 'query in location', for example Berlin or Austin, TX.
startUrlsarrayOptional Google Maps search links, for example https://www.google.com/maps/search/coffee+in+berlin.
languagestringLanguage of the Google Maps page: category names, days and hours.
maxPlacesPerSearchintegerStop each search after this many places (0 = as many as Google Maps lists, usually 100 to 200).
maxItemsintegerThe run stops after this many result rows.

Output sample

Real rows from a run of the Actor. Fields that name people are left out of the sample.

[
  {
    "searchQuery": "coffee shop in Berlin",
    "position": 1,
    "name": "Refinery High End Coffee",
    "category": "Coffee shop",
    "categories": [
      "Coffee shop"
    ],
    "address": "Albrechtstraße 11B, 10117 Berlin, Germany",
    "street": "Albrechtstraße 11B",
    "city": "Berlin",
    "postalCode": "10117",
    "countryCode": "DE",
    "neighborhood": "Mitte",
    "latitude": 52.5213117,
    "longitude": 13.3849173,
    "rating": 4.6,
    "reviewsCount": 1221,
    "website": "http://refinerycoffee.de/",
    "openingHours": [
      {
        "day": "Monday",
        "hours": "8 AM-6 PM"
      },
      {
        "day": "Tuesday",
        "hours": "8 AM-6 PM"
      },
      {
        "day": "Wednesday",
        "hours": "8 AM-6 PM"
      }
    ],
    "placeId": "ChIJ9UK3L8JRqEcRidYSi6cycYo",
    "featureId": "0x47a851c22fb742f5:0x8a7132a78b12d689",
    "cid": "9975810344776554121",
    "url": "https://www.google.com/maps/place/?q=place_id:ChIJ9UK3L8JRqEcRidYSi6cycYo"
  },
  {
    "searchQuery": "coffee shop in Berlin",
    "position": 2,
    "name": "LAP COFFEE",
    "category": "Coffee shop",
    "categories": [
      "Coffee shop"
    ],
    "address": "Rosenthaler Strasse 62, 10119 Berlin, Germany",
    "street": "Rosenthaler Strasse 62",
    "city": "Berlin",
    "postalCode": "10119",
    "countryCode": "DE",
    "neighborhood": "Mitte",
    "latitude": 52.5276603,
    "longitude": 13.4035268,
    "rating": 4.7,
    "reviewsCount": 851,
    "website": "http://www.lap.coffee/",
    "openingHours": [
      {
        "day": "Monday",
        "hours": "7:30 AM-6:30 PM"
      },
      {
        "day": "Tuesday",
        "hours": "7:30 AM-6:30 PM"
      },
      {
        "day": "Wednesday",
        "hours": "7:30 AM-6:30 PM"
      }
    ],
    "placeId": "ChIJZStJ7KFRqEcRzRngO3uVeHI",
    "featureId": "0x47a851a1ec492b65:0x7278957b3be019cd",
    "cid": "8248507074047121869",
    "url": "https://www.google.com/maps/place/?q=place_id:ChIJZStJ7KFRqEcRzRngO3uVeHI"
  }
]

Code: Python, JavaScript and cURL

Get your API token in Apify Console under Settings, then Integrations. The Actor id is v0iddo/google-maps-scraper.

Python (apify-client)

from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")

run_input = {'searchQueries': ['coffee shop'],
 'location': 'Berlin',
 'language': 'en',
 'maxItems': 20}

run = client.actor("v0iddo/google-maps-scraper").call(run_input=run_input)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

JavaScript (apify-client)

import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });

const input = {
  "searchQueries": [
    "coffee shop"
  ],
  "location": "Berlin",
  "language": "en",
  "maxItems": 20
};

const run = await client.actor('v0iddo/google-maps-scraper').call(input);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);

cURL

curl -X POST "https://api.apify.com/v2/acts/v0iddo~google-maps-scraper/run-sync-get-dataset-items" \
  -H "Authorization: Bearer YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"searchQueries": ["coffee shop"], "location": "Berlin", "language": "en", "maxItems": 20}'

Ready-to-run example scripts: example repository on GitHub.

Price

$1.50 per 1,000 results. You pay per result row. There is no separate charge per run. Higher Apify plans pay less per result, down to $1.05 per 1,000. See the pricing tab for your plan. A new Apify account gets $5 of platform credit every month.

Good to know

FAQ

What data does the Google Maps Scraper return?

Each result is one row in an Apify dataset. Fields include name, category, address, city, rating, reviewsCount, phone, website, and more. The table above shows every field with an example value.

How do I use the Google Maps Scraper from Python?

Install the apify-client package, create a client with your Apify API token, call the Actor v0iddo/google-maps-scraper with an input like the one above, and read the rows from the run's dataset. The Python snippet above does exactly that.

Can I use it without writing code?

Yes. Open the Actor page on Apify, fill in the input form (an example is already filled in), press Start, and download the results as JSON, CSV, Excel or HTML. You can also schedule runs there.

How much does it cost?

$1.50 per 1,000 results. You pay per result row. There is no separate charge per run. Higher Apify plans pay less per result, down to $1.05 per 1,000. A new Apify account gets $5 of platform credit every month.

How do I limit the number of results?

Set the maxItems input field to the number of results you need; the run stops there, so it also caps the cost of one run. You can also set a maximum cost for a run in the run options on Apify, and the run stops when it is reached.

Can I send the results to Google Sheets, Make, Zapier or n8n?

Yes. Apify datasets connect to Google Sheets, Slack, Make, Zapier and n8n, and a webhook can call your own service when a run finishes. You can also export the dataset as JSON, CSV or Excel.

Open Google Maps Scraper on Apify

Related guides