Call it
curl https://api.peume.com/v1/call/search-google-maps-2 \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"q": "OpenAI San Francisco",
"ll": "@37.7749,-122.4194,12z",
"hl": "en",
"page": 1
}
}'const res = await fetch("https://api.peume.com/v1/call/search-google-maps-2", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"q": "OpenAI San Francisco",
"ll": "@37.7749,-122.4194,12z",
"hl": "en",
"page": 1
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/search-google-maps-2",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"q": "OpenAI San Francisco",
"ll": "@37.7749,-122.4194,12z",
"hl": "en",
"page": 1
}
},
)
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: search-google-maps-2.
Parameters
qRequiredstringExample: OpenAI San Francisco
llstringMap center and zoom as @latitude,longitude,zoomz.
Example: @37.7749,-122.4194,12z
placeIdstringcidstringhlstringExample: en
pageintegerExample: 1
Other ways to do it
Same job, other sources, cheapest first.
Get Google Maps results for a keyword and locationBest sourceGet Google Maps results for a keyword and location. Checks the cheapest source first and moves to the next one until it finds an answer.Find a business on Google MapsFind businesses on Google Maps by name, with place_id, coordinates, address, rating, reviews, categories and phone.Google Maps local business search by keyword, category…Search Google Maps for places, in Google's order, with category, address, map point, rating, phone, website and hours.Search Google MapsSearch Google Maps with q and type=search to get up to 20 places in local_results, or look up one exact place by place_id, data_cid or data to get place_resultsSearch Google Maps at a pointGet the top 20 Google Maps results for a keyword as seen from one coordinate, with place_id, address, rating and reviews.Google Maps Place LookupLook up a place on Google Maps by name or search query (optionally scoped to a location) and get the best-matching place with available address, contact, rating, and coordinate det
