Call it
curl https://api.peume.com/v1/call/google-business-list-locations \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"pendingDataToken": "your pendingDataToken",
"tempToken": "your tempToken"
}
}'const res = await fetch("https://api.peume.com/v1/call/google-business-list-locations", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"pendingDataToken": "your pendingDataToken",
"tempToken": "your tempToken"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/google-business-list-locations",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"pendingDataToken": "your pendingDataToken",
"tempToken": "your tempToken"
}
},
)
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-business-list-locations.
Parameters
pendingDataTokenstringToken from the OAuth callback redirect. Preferred over tempToken because it preserves server-side token storage. One of pendingDataToken or tempToken is required.
tempTokenstringLegacy. Direct Google access token. Use pendingDataToken instead when available.
searchstringFree-text search on the business name, applied server-side by Google. Use this for accounts that own many locations (the response is bounded, see hasMore) so the user can find a specific location without loading the full list.
filterstringRaw Google Business Information API filter expression (advanced; takes precedence over search). Supports fields such as title, storeCode, storefront_address.postal_code, labels and categories, e.g. storeCode="LH279411". See Google's "Work with location data" guide.
