Call it
curl https://api.peume.com/v1/call/search-google-maps-businesses-by-keyword-and-location \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"maxItems": 100,
"maxTotalChargeUsd": 0.5,
"memory": 1024,
"timeout": 90,
"searchStringsArray": [
"coffee shop"
],
"locationQuery": "Austin, TX"
}
}'const res = await fetch("https://api.peume.com/v1/call/search-google-maps-businesses-by-keyword-and-location", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"maxItems": 100,
"maxTotalChargeUsd": 0.5,
"memory": 1024,
"timeout": 90,
"searchStringsArray": [
"coffee shop"
],
"locationQuery": "Austin, TX"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/search-google-maps-businesses-by-keyword-and-location",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"maxItems": 100,
"maxTotalChargeUsd": 0.5,
"memory": 1024,
"timeout": 90,
"searchStringsArray": [
"coffee shop"
],
"locationQuery": "Austin, TX"
}
},
)
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-businesses-by-keyword-and-location.
Parameters
maxItemsintegeroptional row cap; pay-per-event actors that take the row count from their own input ignore it, so maxTotalChargeUsd is the spend limit
Example: 100
maxTotalChargeUsdnumberthe spend cap enforces on every event this run bills, in dollars. 's key requires it, above 0 and at most 1, and holds it for the call
Example: 0.5
memoryintegerMB of run memory. 's key requires 1024, which fixes the actor-start charge; your own key may set any size
Example: 1024
timeoutintegerrun timeout in seconds. 's key requires 90 so the run and its rows arrive before any wait gives up; a larger pull should use your own key and the async web.scrape.job.* pair above
Example: 90
searchStringsArrayRequiredarraykeywords to search, one per entry (dentist, plumber, coffee shop); each is searched inside locationQuery and every business becomes one row
Example: ["coffee shop"]
locationQuerystringwhere to search, as typed into Google Maps: 'Austin, TX', 'London, UK', or a whole country. Omit to let each term carry its own location
Example: Austin, TX
maxCrawledPlacesPerSearchintegermax businesses per search term, 1-500, counted AFTER filters; default 100
Example: 20
maxCrawledPlacesintegertotal businesses across all terms; 0 = no ceiling. You pay per business returned, so set this to cap the bill
Example: 100
languagestringresult language, e.g. en|es|fr|de|ja|zh-CN|vi; default en
Example: en
scrapeContactsbooleanlook up each business site for emails and social links (emails, email_type, social_links). Default true — these fields are part of the result price, not an add-on
Example: true
scrapePlaceDetailPagebooleanhas no effect: every row already carries the full place detail, so leave it out; default false
Example: false
maxReviewsintegerreviews to attach per business, 0-500; default 0 (none). A place page holds roughly the first 8
Example: 0
placeMinimumStarsstringkeep only businesses rated at or above '1'|'2'|'3'|'4'|'4.5'; empty keeps all. Filtered-out places are not returned, not charged
Example:
websitestringallPlaces | withWebsite | withoutWebsite — filter on whether the business has its own site. Filtered-out places are not charged
Example: allPlaces
skipClosedPlacesbooleanleave out permanently-closed businesses so you do not pay for dead leads. Default true
Example: true
geo_splitbooleansplit a wide area into a grid and search each cell to get past Google's ~120-per-view ceiling. Default false; turn on for anything wider than a city
Example: false
proxyUrlsarrayleave empty to use the residential proxy included in the run price; or pass your own gateway URLs
Other ways to do it
Same job, other sources, cheapest first.
