Call it
curl https://api.peume.com/v1/call/find-google-search-ads \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"q": "coffee maker",
"location": "Austin, Texas, United States",
"hl": "en",
"device": "desktop"
}
}'const res = await fetch("https://api.peume.com/v1/call/find-google-search-ads", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"q": "coffee maker",
"location": "Austin, Texas, United States",
"hl": "en",
"device": "desktop"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/find-google-search-ads",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"q": "coffee maker",
"location": "Austin, Texas, United States",
"hl": "en",
"device": "desktop"
}
},
)
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: find-google-search-ads.
Parameters
qRequiredstringGoogle Ads query, up to 2,048 characters with no control characters.
Example: coffee maker
locationRequiredstringNamed location to search from, up to 512 characters and at most 63 bytes once URL-encoded.
Example: Austin, Texas, United States
hlstringGoogle interface and result language, such as en, en-US, or de. Defaults to en.
Example: en
safestringGoogle adult-content filtering: active or off.
active · off
nfprstringSet 1 to disable Google spelling auto-correction, or 0 to allow it.
0 · 1
devicestringGoogle returns its real layout for the selected device: desktop, tablet, or mobile.
desktop · tablet · mobile
Example: desktop
timeoutnumberOptional budget for the entire request in seconds, measured from gateway receipt until the response is ready to send. Includes admission, queueing and settlement. Must be greater than 0 and at most 90. On expiry, the call is not billed and returns 503 request_deadline_exceeded with retryable=true and a request ID. Omit to retain the standard server deadline.
