Call it
curl https://api.peume.com/v1/call/google-autocomplete-keyword-suggestions-for-a-seed-term \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"engine": "google_autocomplete",
"q": "coffee",
"gl": "us",
"hl": "en"
}
}'const res = await fetch("https://api.peume.com/v1/call/google-autocomplete-keyword-suggestions-for-a-seed-term", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"engine": "google_autocomplete",
"q": "coffee",
"gl": "us",
"hl": "en"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/google-autocomplete-keyword-suggestions-for-a-seed-term",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"engine": "google_autocomplete",
"q": "coffee",
"gl": "us",
"hl": "en"
}
},
)
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-autocomplete-keyword-suggestions-for-a-seed-term.
Parameters
engineRequiredstringExample: google_autocomplete
qRequiredstringthe seed keyword
Example: coffee
glstringcountry code
Example: us
hlstringinterface language code
Example: en
cpintegercursor position within `q`, which changes what Google suggests
clientstringwhich autocomplete client to emulate
Other ways to do it
Same job, other sources, cheapest first.
Get related keyword ideasBest sourceGet related keyword ideas. Checks the cheapest source first and moves to the next one until it finds an answer.Google AutocompleteGet Google search autocomplete suggestions for a partial query (keyword ideas).Related keyword ideas by seed keyword — search volume, CPCKeywords semantically related to a seed, with volume, CPC, difficulty and weightRelated keyword ideas for a seed — volume, CPC, difficultyRelated keyword ideas from Google's related-searches graph, with volume, CPC, difficultyRelated keyword ideas by seed keyword — search volume, CPCKeywords related to a seed, each with volume, CPC, difficulty and relevance
