Call it
curl https://api.peume.com/v1/call/google-related-keyword-ideas-for-a-seed-volume-cpc \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"keyword": "coffee",
"location_code": 2840,
"language_code": "en",
"depth": 1,
"limit": 2
}
}'const res = await fetch("https://api.peume.com/v1/call/google-related-keyword-ideas-for-a-seed-volume-cpc", {
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": 1,
"limit": 2
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/google-related-keyword-ideas-for-a-seed-volume-cpc",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"keyword": "coffee",
"location_code": 2840,
"language_code": "en",
"depth": 1,
"limit": 2
}
},
)
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-related-keyword-ideas-for-a-seed-volume-cpc.
Parameters
keywordRequiredstringseed keyword, lowercased by the API
Example: coffee
location_codeRequiredintegerone of location_code | location_name; codes from the Labs locations list (GET /v3/labs/locations_and_languages, free). 2840 = United States
Example: 2840
language_codeRequiredstringone of language_code | language_name; must be a language Labs supports for that location (pairs from GET /v3/labs/locations_and_languages, free). An unsupported pair returns 40501 Invalid Field, e.g. Mexico or Colombia with en (both take es) or Brazil with en (pt)
Example: en
depthinteger0-4, default 1. Breadth of the related-search crawl: 0 = seed only, 1 = ~8 keywords, 2 = ~72, 3 = ~584, 4 = ~4680
Example: 1
limitinteger1-1000; default 100
Example: 2
offsetintegerdefault 0
include_seed_keywordbooleandefault false
include_serp_infobooleanattach SERP data per keyword; default false
include_clickstream_databooleanDOUBLES the cost; default false
ignore_synonymsbooleandrop near-duplicate keywords; default false
Other ways to do it
Same job, other sources, cheapest first.
