Call it
curl https://api.peume.com/v1/call/google-organic-results-by-keyword-ranking-urls-titles \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"method": "exampleKeywordProcedure.getKeywordTop",
"params": "your params",
"id": "1",
"params.keyword": "seo",
"params.se": "g_us",
"params.filters.top_size": 10
}
}'const res = await fetch("https://api.peume.com/v1/call/google-organic-results-by-keyword-ranking-urls-titles", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"method": "exampleKeywordProcedure.getKeywordTop",
"params": "your params",
"id": "1",
"params.keyword": "seo",
"params.se": "g_us",
"params.filters.top_size": 10
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/google-organic-results-by-keyword-ranking-urls-titles",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"method": "exampleKeywordProcedure.getKeywordTop",
"params": "your params",
"id": "1",
"params.keyword": "seo",
"params.se": "g_us",
"params.filters.top_size": 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-results-by-keyword-ranking-urls-titles.
Parameters
methodRequiredstringExample: exampleKeywordProcedure.getKeywordTop
paramsRequiredobjectidRequiredstringrequired by JSON-RPC envelope; any string, echoed back in the response
Example: 1
params.keywordRequiredstringthe keyword whose SERP you want
Example: seo
params.seRequiredstringsearch database
Example: g_us
params.sizeintegerignores it on this method: `filters.top_size` sets how many rows come back
params.filtersobjectposition / position_from / position_to, and url, exact_url, domain, minus_domain, subdomain to restrict to one site
params.filters.top_sizeintegerCOST DIAL — how deep into the SERP to read, 1 to 100, default 100
Example: 10
Other ways to do it
Same job, other sources, cheapest first.
