Call it
curl https://api.peume.com/v1/call/google-local-pack-results-for-a-query-and-location \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"engine": "google_local",
"q": "Coffee",
"location": "New York, New York, United States",
"gl": "us",
"hl": "en"
}
}'const res = await fetch("https://api.peume.com/v1/call/google-local-pack-results-for-a-query-and-location", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"engine": "google_local",
"q": "Coffee",
"location": "New York, New York, United States",
"gl": "us",
"hl": "en"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/google-local-pack-results-for-a-query-and-location",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"engine": "google_local",
"q": "Coffee",
"location": "New York, New York, United States",
"gl": "us",
"hl": "en"
}
},
)
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-local-pack-results-for-a-query-and-location.
Parameters
engineRequiredstringExample: google_local
qRequiredstringExample: Coffee
locationstringExample: New York, New York, United States
glstringExample: us
hlstringExample: en
Other ways to do it
Same job, other sources, cheapest first.
Search Google LocalReturns Google Local business listings in `local_results`, with ratings, addresses, hours and links when Google shows themSearch Google PlacesFind local businesses and places with addresses, coordinates, ratings, categories, prices, and Google customer IDs.Get Google local pack resultsBest sourceGet Google Local Finder (local pack) results for a keyword. Checks the cheapest source first and moves to the next one until it finds an answer.Google Local Finder results for a keyword, liveLive Google Local_finder SERP provides real-time search engine results for the specified keyword and location.
