Google Maps places API
Places as Google Maps lists them, as JSON: name, type, rating, reviews, price, address, hours, phone, website and Google's own ids. Searched from any city, down to a ZIP code. 20 places a page.
Search a place the way a local would
Put the search where you want it with location, by Google's name for the place. The desktop page lists 20 places and a phone's 10; start=20 is the next 20.
curl -G https://api.serpbit.com/v1/maps \ -H "Authorization: Bearer $SERPBIT_API_KEY" \ --data-urlencode "q=coffee shops" \ --data-urlencode "location=Philadelphia,Pennsylvania,United States" { "places": [{ "position": 1, "title": "Freedom Coffee House", "type": "Coffee shop", "rating": 5, "reviews": 66, "address": "4906 Old York Rd, Philadelphia, PA 19141", "phone": "(267) 441-2131", "place_id": "ChIJG9bzoEu3xokR6Mly5crxWPs" }], "pagination": { "next_start": 20 } }
What comes back
The places
Title, type, rating, number of reviews and price level, in Google's order.
How to reach them
Address, opening hours, phone and website.
Google's ids
place_id,data_idanddata_cid, and the link to the place on Google Maps.Where they are
Latitude and longitude in
gps_coordinates, on the desktop page.From any place
locationdown to a ZIP code,glandhlfor country and language.
The same call in Python and JavaScript
Ask for coffee shops in Philadelphia, then the next page while there is one. The clients read the key from SERPBIT_API_KEY and retry a failed call without billing it twice. Any HTTP client works too.
# pip install serpbit from serpbit import Serpbit sb = Serpbit() # reads SERPBIT_API_KEY where = "Philadelphia,Pennsylvania,United States" answer = sb.maps("coffee shops", location=where) for p in answer["places"]: print(p["position"], p["title"], p.get("rating"), p.get("reviews"), p.get("phone")) # the next 20, while Google has more nxt = answer["pagination"]["next_start"] if nxt is not None: more = sb.maps("coffee shops", location=where, start=nxt)
// npm install serpbit import Serpbit from "serpbit"; const sb = new Serpbit(); // reads SERPBIT_API_KEY const where = "Philadelphia,Pennsylvania,United States"; const answer = await sb.maps("coffee shops", { location: where }); for (const p of answer.places) { console.log(p.position, p.title, p.rating, p.reviews, p.phone); } // the next 20, while Google has more const next = answer.pagination.next_start; if (next !== null) { const more = await sb.maps("coffee shops", { location: where, start: next }); }
Response fields
The main fields of a place. Most are left out when Google shows nothing for them. The reference has every parameter.
| Field | Type | What it holds |
|---|---|---|
| places[] | array | The places, in Google's order: 20 a page on the desktop, 10 on a phone. |
| position, page | integer | The place's rank, counted on across pages, and the page it is on. |
| title | string | The place's name. |
| type | string | What it is, as Google writes it: "Coffee shop". |
| rating, reviews | number, integer | Its rating out of 5, and its number of reviews. |
| price | string | Its price level, as Google shows it. |
| address | string | The street address. |
| hours | string | As Google writes it: "Open · Closes 3 PM". |
| phone, website | string | The place's phone number and its own website. |
| link | string | The place on Google Maps. |
| place_id, data_id, data_cid | string | Google's ids for the place. |
| gps_coordinates | object | latitude and longitude, on the desktop page. |
| description | string | A hotel's line, when a hotels query brings Google's hotel list. |
| pagination.next_start | integer or null | Where the next page starts; null when Google has no more. |
| meta.credits | integer | The credits the call spent. |
| request_id | string | The call's id, to quote to support. |
What it is used for
Track a business's local rank
Search "dentist" or "pizza" from each ZIP code you serve with location, and keep the position of your place. Match it by place_id, not by name.
Build a list of places in an area
Page through one query in one city and keep each place's type, address, phone and website, in one table.
Watch ratings and reviews
Ask the same search each week and compare rating and reviews for your places and the ones beside them.
Put places on a map
The desktop page gives each place's gps_coordinates, ready for a map of your own.
What 1,000 cost
1 credit a page of places, on the same key and credits as every other API. A call that fails is free, and so is the same call again within the hour.
| Plan | Price a month | Pages a month | Per 1,000 |
|---|---|---|---|
| Free | $0 | 1,000 | free |
| Starter | $25 | 25,000 | $1.00 |
| Developer | $75 | 100,000 | $0.75 |
| Production | $150 | 300,000 | $0.50 |
| Scale | $350 | 800,000 | $0.44 |
In US dollars before tax. All plans and credit packs are on the pricing page.
Questions
Is this Google's own Maps Platform?
No. It returns what Google Maps shows a person searching from that place, as JSON, priced per page of places. Serpbit is not affiliated with Google; Google is a trademark of Google LLC.
How many places does a call return?
20 on the desktop page and 10 on a phone's. For more, ask the next page with start=20, or several pages at once with pages; each page is billed.
How do I search from a city?
Give location by Google's name for the place, for example Austin,Texas,United States, down to a ZIP code. Or put the place in the query, as a person would.
Can I get the coordinates?
Yes, on the desktop page: each place's gps_coordinates has its latitude and longitude.
Can an AI agent use it?
Yes. Our MCP server has it as the google_maps tool: add https://api.serpbit.com/mcp as a connector in Claude, ChatGPT or Cursor and sign in.
Start with 1,000 free credits.
Every month. No card.