Call it
curl https://api.peume.com/v1/call/google-maps-rank-of-a-business-at-a-point \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"lat": 40.722233,
"lng": -73.987429,
"keyword": "deli",
"place_id": "ChIJCar0f49ZwokR6ozLV-dHNTE",
"zoom": 13
}
}'const res = await fetch("https://api.peume.com/v1/call/google-maps-rank-of-a-business-at-a-point", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"lat": 40.722233,
"lng": -73.987429,
"keyword": "deli",
"place_id": "ChIJCar0f49ZwokR6ozLV-dHNTE",
"zoom": 13
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/google-maps-rank-of-a-business-at-a-point",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"lat": 40.722233,
"lng": -73.987429,
"keyword": "deli",
"place_id": "ChIJCar0f49ZwokR6ozLV-dHNTE",
"zoom": 13
}
},
)
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-of-a-business-at-a-point.
Parameters
latRequirednumberNot validated upstream: a malformed value answers with another city's results and is billed.
Example: 40.722233
lngRequirednumberExample: -73.987429
keywordRequiredstringExample: deli
place_idstringGoogle place_id of the business to rank. Without it, data.found and data.rank are false.
Example: ChIJCar0f49ZwokR6ozLV-dHNTE
zoomintegerGoogle Maps zoom level of the simulated search.
Example: 13
