Blog / API guides

Google Maps Scraper or Places Data API: What You Get

A Google Maps scraper is a program that drives a browser through Google Maps, scrolls the results panel and reads business names, ratings, addresses and reviews off the page. It works until the page changes, and Google's terms restrict automated collection. You have two other routes: Google's own Places API, which is official but limits what you may store, and place endpoints that return the same business data as JSON at 1 credit a call. This post compares the three and gives a verdict per use case.

What does building a Google Maps scraper involve?

A Google Maps scraper is a browser automation script, not a simple HTTP request. Maps loads its results in a side panel with JavaScript and adds more as you scroll, so plain requests plus an HTML parser gets almost nothing. You need a headless browser such as Playwright or Selenium, a script that searches, scrolls, clicks each place and reads the details panel, and code to turn the page's text into fields.

The work doesn't stop at the first run. The panel's markup uses generated class names that change without notice, so a scraper that worked last month can return empty rows today. Running a browser per job takes memory and time, which caps how many places you can collect an hour. And large sites limit automated traffic, so a scraper that runs at any volume starts seeing blocks and challenge pages. When that happens, stop: getting around a site's protections with rotating proxies or CAPTCHA solvers isn't a fix we'd recommend.

Then there are the terms. Google's Maps Platform terms define Google Maps Content broadly, places data and business listings included, and bar customers from extracting, exporting or scraping it for use outside Google's services (Google Maps Platform Terms of Service, 2026). That clause binds the official API's customers; Google's consumer terms also govern the Maps website itself. Read both before you build anything that collects Maps data at scale. For what keeping any scraper alive costs over time, see Scraper or API: What Maintaining a Scraper Really Involves.

What does Google's official Places API give you?

Google's Places API is the supported way to search places and fetch their details, and for an app that shows places to its users it's the right first choice. You get stable, documented responses and Google's own field definitions. Billing is per request by SKU, and since 1 March 2025 each Core Services SKU has a free monthly usage threshold instead of the old monthly credit: 10,000 billable events for Essentials SKUs, 5,000 for Pro and 1,000 for Enterprise (Google Maps Platform, 2025).

The limits are about what you do with the data. The same terms that bar scraping also restrict caching and bar creating datasets based on Maps content. So the official API fits "show the user nearby restaurants on a map", and it doesn't fit "build a spreadsheet of every dentist in Texas with their ratings". If your job is the first kind, use it. Google Places API Alternative goes through the official API's fields and pricing in more detail.

What do the place endpoints return?

The place endpoints return Google Maps business data as JSON, one call per search page or per place. The Google Maps API has 12 endpoints, all GET: two searches, autocomplete, business details, photos, photo metadata, posts, popular times, reviews, a single review, a contributor's reviews and directions. Each costs 1 credit per successful call, except reviews, which costs 1 per page fetched. A failed call costs nothing and returns X-Credits-Used: 0.

The usual path is a search, then details or reviews for the places you keep:

curl "https://api.perceptlayer.com/v1/google-maps/simple-search?query=restaurants+in+new+york" \
  -H "X-API-Key: $API_KEY"

This is the recorded response, trimmed to the first place:

{
  "items": [
    {
      "name": "Altair Restaurant NYC",
      "review_count": 1225,
      "rating": 4.8,
      "website": "https://www.altairnyc.com/",
      "domain": "altairnyc.com",
      "latitude": 40.7556565,
      "longitude": -73.9936282,
      "business_id": "0x89c2591598891521:0x4ebcde18610e64",
      "subtypes": [
        "New American restaurant",
        "Restaurant"
      ],
      "full_address": "351 W 38th St, New York, NY 10018, United States",
      "timezone": "America/New_York",
      "phone_numbers": [
        "+1 929-561-6131"
      ],
      "place_id": "ChIJIRWJmBVZwokRZA5hGN68TgA=",
      "city": "New York",
      "zip_code": "10018",
      "state": "New York",
      "country_code": "US",
      …
    },
    …
  ],
  "pagination": {
    "current_page": 0,
    "total_results": 173,
    "has_more": false
  }
}

Each place carries both a business_id and Google's place_id, so you can join this data to anything keyed on either. Pass business_id to the reviews endpoint:

curl "https://api.perceptlayer.com/v1/google-maps/reviews?business_id=0x60188b88b7d8f7ab%3A0x2133080e9923eaac" \
  -H "X-API-Key: $API_KEY"

The recorded response, trimmed, with reviewer names and profile links left out:

{
  "items": [
    {
      "review_source": "Google",
      "review_id": "Ci9DQUlRQUNvZENodHljRjlvT25kVUxXTmpaamhNWjFac016WTVSMjlqUVRCb1VYYxAB",
      "rating": 5,
      "timestamp": 1779471094452,
      …
      "review_text": [
        "A must do! Easy access via Yamanote line > Shibuya > exit Hachiko exit and walk to the 41 or 42 bus (suica card OK) then four stops to Sugekari Elem Sch > once …"
      ],
      "review_language": [
        "en"
      ],
      "is_google_review": true
    },
    …
  ],
  "nextPage": "CjEIARIpCgoAP7_LADY2____EhBrFsVuDgXaYeq0lg4AAAAAGgn92PQCY8g0lvwYACIA"
}

The reviews endpoint also takes sort (1 to 4), search to filter by a word, and page for the next page token. Google Maps Reviews API covers its parameters, and Google Maps Business Data API covers search.

How do the three routes compare?

The three routes trade control, permission and upkeep differently, and none wins on every row. A scraper gives you control and no per-call bill, at the price of maintenance and terms risk. The official API gives you permission and stability, at the price of storage limits. Place endpoints give you JSON and stable field names without a browser, at a per-call credit cost.

DIY scraper Google Places API Place endpoints
Setup Headless browser, scroll and click logic, parsers Google Cloud project, billing, API key API key; X-API-Key header
What you get Whatever you parse from the page Google's documented place fields items[] with name, rating, review count, address, phone, coordinates, business_id, place_id
Reviews Parsed from the page Limited to what the API returns per place Paged with nextPage; sort and search filters
Maintenance High: selectors and flows break Low Low
Speed One browser per job API calls API calls; 1 request a second free, at least 5 a second paid
Storage and reuse Governed by Google's terms Restricted by the Maps Platform terms Data collected from publicly available sources, returned as found
Cost Your hosting and time Per request by SKU, after free monthly thresholds 1 credit per successful call; failed calls cost 0

What does 1,000 places cost?

On the place endpoints, cost follows calls, not places. A search call returns a page of places, so 1,000 places from search costs one credit per page you fetch; check how many places your query returns per page in the playground before you plan a run. Fetching reviews for each of those 1,000 places is 1,000 calls × 1 credit = 1,000 credits per page of reviews.

A worked plan: a local SEO team tracks 300 businesses, pulling one page of reviews for each every week. That's 300 × 4 = 1,200 credits a month, plus a weekly search to catch new competitors. That's more than the 100 free credits, which cover a first week's pull for 100 businesses; the Starter pack's 10,000 covers about eight months of it. See pricing for what credits cost.

Which route should you choose?

Choose by what you'll do with the data, because that decides which terms and which costs apply. The verdicts below assume you need the data more than once; for a one-off look at ten places, open Google Maps in a browser.

  • An app that shows places to users (a store locator, a "near me" search): use Google's Places API. It's the official route, it's built for display, and the storage limits match that use.
  • A dataset of local businesses for analysis (market sizing, lead lists of businesses, coverage maps): use the place endpoints. You get items[] with stable field names, and you don't maintain a browser.
  • Monitoring ratings and reviews for a set of businesses: use the reviews endpoint with each business_id, on a schedule. Store rating, timestamp and review_text; skip reviewer identities.
  • A one-off research question from an agent: give the agent the endpoints through MCP. Summarise Restaurant Reviews with an AI Agent does exactly this.
  • Learning how scraping works: build a scraper against a practice site, not Google Maps. Web Scraping with Python starts there.

To compare before you decide, run simple-search with your own query in the playground on the Google Maps API page, then reviews with a business_id from the result. When the fields fit, get a free API key.

APIs in this post

Frequently asked questions

It depends on your jurisdiction and how you collect and use the data, and Google's terms restrict automated collection of Maps content. Business information such as names, addresses and ratings is lower risk than personal data; reviewer names and profiles are personal data in many jurisdictions. Get legal advice for commercial use, and don't get around blocks or challenges.

Can I get Google Maps reviews without a scraper?

Yes. GET /v1/google-maps/reviews takes a business_id from a search and returns reviews with rating, timestamp, review_text and review_language, plus a nextPage token for more. Each successful call costs 1 credit. Store the review content you need and leave out reviewers' names and profile links.

Does a failed Google Maps call cost credits?

No. Only a successful response debits credits. A failed call returns an HTTP status, a JSON error with a code and request_id, and X-Credits-Used: 0. A rate-limited call returns 429 with a Retry-After header. The errors docs list every code.

How do I get phone numbers and websites for businesses?

simple-search returns phone_numbers, website and domain for each place where Google Maps shows them, alongside the address and coordinates. For one place you already know, business-details takes its business_id. These are businesses' published contact details; use them in line with marketing and privacy rules where you are.

Can an AI agent search Google Maps?

Yes. Through the MCP server at https://perceptlayer.com/mcp, an agent finds the Google Maps endpoints with search_endpoints, reads their parameters with get_endpoint (both free) and runs them with call_endpoint, which spends credits only on success. The AI agents docs cover setup.

  1. Tripadvisor Scraper or API: What You Get

    A Tripadvisor scraper vs three 1-credit endpoints: a recorded search with location_id, type, rating and review_count, and the cost per place tracked.

  2. Google Reviews Scraper or API: What You Get

    A Google reviews scraper versus the reviews endpoint: rating, timestamp, review_text and a nextPage token per call, at 1 credit per business checked.

  3. Trustpilot Scraper or API: Ratings and Review History

    A Trustpilot scraper vs a 1-credit company-reviews call: the recorded Amazon response, its star breakdown, and 2,340 pages × 1 credit for a full history.

Start with 100 free credits

No password to set. We email you a sign-in link, and your key works on every API.

No credit card. 100 free credits on signup.