Call it
curl https://api.peume.com/v1/call/google-maps-contacts-2 \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"query": "your query",
"language": "en",
"location": "your location"
}
}'const res = await fetch("https://api.peume.com/v1/call/google-maps-contacts-2", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"query": "your query",
"language": "en",
"location": "your location"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/google-maps-contacts-2",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"query": "your query",
"language": "en",
"location": "your location"
}
},
)
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-contacts-2.
Parameters
websitestringFilter places by whether they list a website: allPlaces (default), withWebsite (only places that have a website), or withoutWebsite (only places without one). Contact enrichment pulls emails and social profiles from a place's website, so withWebsite targets leads that can be enriched.
allPlaces · withWebsite · withoutWebsite
routestringUpstream source to run on; omit for "chameleon". chameleon ($0.00325 per call, 98.1% uptime); octopus ($0.00006 + $0.0054 per result, at most $0.109, 99.5% uptime). Output fields only some routes return: city (octopus); countryCode (octopus); language (octopus); neighborhood (octopus); postalCode (octopus); state (octopus); street (octopus). A route can refuse an input it cannot apply with a 400 source_unknown (not charged): retry on another route, or omit that input.
chameleon · octopus
queryRequiredstringWhat you would type in the Google Maps search bar (e.g. dentist).
limitintegerMaximum number of results to return (1-20, default 20).
languagestringTwo-letter language code for the results (e.g. en).
Example: en
locationRequiredstringFree-text location to search in, ideally city plus country (e.g. Denver, USA).
placeMinimumStarsstringOnly return places with at least this average rating: two (2+), twoAndHalf (2.5+), three (3+), threeAndHalf (3.5+), four (4+), or fourAndHalf (4.5+). Places with no reviews are excluded. Omit for no rating filter.
two · twoAndHalf · three · threeAndHalf · four · fourAndHalf
categoryFilterWordsarrayOptional list of Google Maps place-category names to keep; results are limited to places whose category matches one of these. Use lowercase category names as shown on Google Maps (e.g. ["dentist", "orthodontist"]). Omit to include all categories.
