Call it
curl https://api.peume.com/v1/call/google-maps-rank-grid-scan-for-a-business \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"place_id": "ChIJCar0f49ZwokR6ozLV-dHNTE",
"keyword": "deli",
"lat": 40.722233,
"lng": -73.987429,
"grid_size": "3",
"radius": 0.5
}
}'const res = await fetch("https://api.peume.com/v1/call/google-maps-rank-grid-scan-for-a-business", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"place_id": "ChIJCar0f49ZwokR6ozLV-dHNTE",
"keyword": "deli",
"lat": 40.722233,
"lng": -73.987429,
"grid_size": "3",
"radius": 0.5
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/google-maps-rank-grid-scan-for-a-business",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"place_id": "ChIJCar0f49ZwokR6ozLV-dHNTE",
"keyword": "deli",
"lat": 40.722233,
"lng": -73.987429,
"grid_size": "3",
"radius": 0.5
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: google-maps-rank-grid-scan-for-a-business.
Parameters
place_idRequiredstringGoogle place_id of the business. An unknown id still answers success with found 0 and is billed.
Example: ChIJCar0f49ZwokR6ozLV-dHNTE
keywordRequiredstringExample: deli
latRequirednumberGrid center.
Example: 40.722233
lngRequirednumberExample: -73.987429
grid_sizeRequiredstringPoints per side; 15 is the largest grid On-Demand scan takes. Grid 3 answers in about 10 s, grid 5 in about 40 s and grid 15 in about 110 s with a 2 MB body; start small, since a client that gives up first is still billed by.
3 · 5 · 7 · 9 · 11 · 13 · 15
Example: 3
radiusRequirednumberDistance from the center to the grid's edge, in measurement units.
Example: 0.5
measurementRequiredstringmi · km
Example: mi
