Call it
curl https://api.peume.com/v1/call/google-organic-search-results-for-a-keyword-live \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"keyword": "coffee",
"location_code": 2840,
"language_code": "en",
"depth": 10
}
}'const res = await fetch("https://api.peume.com/v1/call/google-organic-search-results-for-a-keyword-live", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"keyword": "coffee",
"location_code": 2840,
"language_code": "en",
"depth": 10
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/google-organic-search-results-for-a-keyword-live",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"keyword": "coffee",
"location_code": 2840,
"language_code": "en",
"depth": 10
}
},
)
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-organic-search-results-for-a-keyword-live.
Parameters
keywordRequiredstringup to 700 chars; advanced search operators multiply the price by 5
Example: coffee
location_codeRequiredintegerone of location_code | location_name | location_coordinate; 2840 = United States
Example: 2840
location_namestringalternative to location_code, e.g. "United States"
language_codeRequiredstringone of language_code | language_name
Example: en
depthintegerresults to return, default 10, max 200 — billed per 10 results
Example: 10
devicestringdesktop (default) | mobile
osstringwindows/macos for desktop, android/ios for mobile
Other ways to do it
Same job, other sources, cheapest first.
