Google APIs · Maps

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 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.

FieldTypeWhat it holds
places[]arrayThe places, in Google's order: 20 a page on the desktop, 10 on a phone.
position, pageintegerThe place's rank, counted on across pages, and the page it is on.
titlestringThe place's name.
typestringWhat it is, as Google writes it: "Coffee shop".
rating, reviewsnumber, integerIts rating out of 5, and its number of reviews.
pricestringIts price level, as Google shows it.
addressstringThe street address.
hoursstringAs Google writes it: "Open · Closes 3 PM".
phone, websitestringThe place's phone number and its own website.
linkstringThe place on Google Maps.
place_id, data_id, data_cidstringGoogle's ids for the place.
gps_coordinatesobjectlatitude and longitude, on the desktop page.
descriptionstringA hotel's line, when a hotels query brings Google's hotel list.
pagination.next_startinteger or nullWhere the next page starts; null when Google has no more.
meta.creditsintegerThe credits the call spent.
request_idstringThe 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.

PlanPrice a monthPages a monthPer 1,000
Free$01,000free
Starter$2525,000$1.00
Developer$75100,000$0.75
Production$150300,000$0.50
Scale$350800,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.