Google Maps Search nearby API
Search Google Maps around an exact latitude and longitude and get up to 20 normalized places per call, each with the address broken into street, city, state, postal code and country. Use this when you have coordinates and want the map viewport centred on them; use maps.search when you only have a place name. Pass the returned nextCursor back as cursor for the next 20 places.
Try it
Make your first request
{
"data": {
"items": [
{
"address": "123 Main St",
"category": "general",
"cid": "a1b2c3d4",
"city": "San Francisco",
"countryCode": "US",
"image": "https://example.com/image.jpg",
"latitude": 37.7749,
"longitude": -122.4194,
"name": "Example title",
"phone": "+1 555-0142",
"placeId": "a1b2c3d4",
"postalCode": "94107",
"rating": 4.6,
"reviewCount": 12500,
"state": "CA",
"street": "123 Main St",
"url": "https://example.com/page",
"website": "https://example.com/page"
}
],
"nextCursor": "example"
},
"found": true
}interface MapsSearchNearbyResponse {
data: {
items: {
address?: string;
category?: string;
cid?: string;
city?: string;
countryCode?: string;
image?: string;
latitude?: number;
longitude?: number;
name: string;
phone?: string;
placeId: string;
postalCode?: string;
rating?: number;
reviewCount?: number;
state?: string;
street?: string;
url: string;
website?: string;
}[];
nextCursor?: string | null;
} | null;
found: boolean;
}Full parameter and response reference - every field, type, and example for this endpoint.
Reference
Request, response, and price
Last verified 2026-09-16 · uptime and latency measured over 30dcurl -X POST https://api.getanyapi.com/v1/run/maps.search_nearby \
-H "Authorization: Bearer $ANYAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"coordinates":{"latitude":30.2672,"longitude":-97.7431},"limit":20,"query":"coffee shop"}'| Field | Type | Example value |
|---|---|---|
| Request body | ||
| coordinates | string | {"latitude":30.2672,"longitude":-97.7431}The exact map centre to search around. Use maps.search instead if you only have a place name. |
| query | string | "coffee shop"What you would type in the Google Maps search bar (e.g. coffee shop). |
| cursor | string | Opaque cursor from a previous response's nextCursor. Pass it back to get the next page of places. |
| language | string | Two-letter language code for the results (e.g. en). |
| limit | integer | 20Maximum number of places to return in this response (1-20). Google Maps returns one viewport of about 20 places per call; page with cursor for more. Price is flat per request. |
| zoom | number | Google Maps viewport zoom. Lower covers a wider area, higher focuses more tightly around the coordinates. |
| Response | ||
| data | object | The result wrapper, or null when nothing matched. |
| data.items | object[] | Matching Google Maps place records, nearest the requested coordinates first. Populated whenever the provider has data for the entity. |
| data.items[].address | string | Full formatted street address. |
| data.items[].category | string | Primary place category (e.g. Coffee shop). |
| data.items[].cid | string | Google customer/place id (cid). |
| data.items[].city | string | City the place is in. |
| data.items[].countryCode | string | Two-letter country code. |
| data.items[].image | string | Thumbnail photo URL for the place. |
| data.items[].latitude | number | Latitude of the place in decimal degrees. |
| data.items[].longitude | number | Longitude of the place in decimal degrees. |
| data.items[].name | string | Place name. Populated whenever the provider has data for the entity. |
| data.items[].phone | string | Business phone number, when listed. |
| data.items[].placeId | string | Google Maps place id (stable identifier for the place). Populated whenever the provider has data for the entity. |
| data.items[].postalCode | string | Postal code of the place. |
| data.items[].rating | number | Average Google rating out of 5. |
| data.items[].reviewCount | integer | Number of Google reviews the place has. |
| data.items[].state | string | State or region the place is in, spelled in full (e.g. Texas). |
| data.items[].street | string | Street line of the address. |
| data.items[].url | string | Canonical Google Maps URL for the place. Populated whenever the provider has data for the entity. |
| data.items[].website | string | The place's own website URL, when listed. |
| data.nextCursor | string | Opaque cursor for the next page of places, or null when this search is complete. Pass it back as cursor to continue. |
| found | boolean | True when the search returned at least one matching place. |
| Price | ||
| Price per request | USD | $0.0013 |
| Price /1k req | USD | $1.30 |
FAQ
About the Google Maps Search nearby API
The AnyAPI Google Maps Search nearby API returns Google Maps search nearby data as normalized JSON from one POST call to /v1/run/maps.search_nearby. Search Google Maps around an exact latitude and longitude and get up to 20 normalized places per call, each with the address broken into street, city, state, postal code and country. Use this when you have coordinates and want the map viewport centred on them; use maps.search when you only have a place name. Pass the returned nextCursor back as cursor for the next 20 places. AnyAPI returns one normalized schema whichever source serves it. It costs from $1.30 per 1,000 requests, in US dollars with no subscription and no monthly minimum. Over the last 30 days, 100.0% of Google Maps search nearby calls through AnyAPI succeeded, with a median response time of 3.6 seconds across 2 measured calls.