Search Google Maps for places matching a query in a free-text location and get up to 20 normalised places with rating, address, phone, website and coordinates.
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" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query":"coffee shop","location":"New York, NY","limit":20}'{
"output": {
"found": true,
"data": {
"nextCursor": "<string | null>",
"items": [
{
"name": "<string>",
"rank": "<integer | null>",
"latitude": "<number | null>",
"permanentlyClosed": "<boolean | null>", …
}
]
}
},
"credits": 2
}Input and output
7 fields
coffee shop.New York, NY.20.27 fields
Good to know
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.