Call it
curl https://api.peume.com/v1/call/keywords-a-domain-ranks-for-in-google-position-volume \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"target": "moz.com",
"location_code": 2840,
"language_code": "en",
"limit": 2,
"order_by": [
"keyword_data.keyword_info.search_volume,desc"
]
}
}'const res = await fetch("https://api.peume.com/v1/call/keywords-a-domain-ranks-for-in-google-position-volume", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"target": "moz.com",
"location_code": 2840,
"language_code": "en",
"limit": 2,
"order_by": [
"keyword_data.keyword_info.search_volume,desc"
]
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/keywords-a-domain-ranks-for-in-google-position-volume",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"target": "moz.com",
"location_code": 2840,
"language_code": "en",
"limit": 2,
"order_by": [
"keyword_data.keyword_info.search_volume,desc"
]
}
},
)
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: keywords-a-domain-ranks-for-in-google-position-volume.
Parameters
targetRequiredstringdomain without scheme or www, or a full page URL
Example: moz.com
location_codeRequiredintegerone of location_code | location_name; codes from the Labs locations list (GET /v3/labs/locations_and_languages, free). 2840 = United States. 2076 is Brazil (not Morocco); Morocco is 2504
Example: 2840
language_codeRequiredstringone of language_code | language_name; must be a language available for that location (pair from GET /v3/labs/locations_and_languages, free). Invalid Field language_code usually means an unsupported pair — e.g. 2076+fr fails (Brazil is pt); Morocco French is 2504+fr (also ar)
Example: en
limitinteger1-1000; default 100
Example: 2
offsetintegerdefault 0
item_typesarraySERP element types to count as ranking, e.g. ["organic","paid","featured_snippet"]
historical_serp_modestringlive (default) | lost | all
load_rank_absolutebooleaninclude absolute SERP position; default false
filtersarraymax 8 conditions
order_byarraymax 3 rules. Flat array of comma-separated "field,direction" strings (asc or desc). Field names match filters. Nested [["field","desc"]] (the filters-array shape) returns 40501 Invalid Field: 'order_by'.
Example: ["keyword_data.keyword_info.search_volume,desc"]
Other ways to do it
Same job, other sources, cheapest first.
