Search Google Maps around exact coordinates and zoom and get one viewport of up to 20 places with the address split into street, city, state, postal code and country.
2 credits/ call
Never more than 75 credits a call.
You only pay when data comes back.
curl -X POST "https://api.primaryapi.com/v1/run/maps.search_nearby" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query":"pizza","coordinates":{"latitude":40.7455096,"longitude":-74.0083012},"zoom":14}'{
"output": {
"found": true,
"data": {
"nextCursor": "<string | null>",
"items": [
{
"name": "<string>",
"rank": "<integer | null>",
"latitude": "<number | null>",
"permanentlyClosed": "<boolean | null>", …
}
]
}
},
"credits": 2
}Input and output
6 fields
pizza.{"latitude":40.7455096,"longitude":-74.….14.27 fields
Good to know
Pages of 20 places.
One page per call. Send nextCursor back as cursor to read the next page.
Terms of use. Google Maps terms forbid automated collection. Customers are responsible for lawful use.
More from Google Maps. Same key, same credits.
The same key and credits work for every API.