Call it
curl https://api.peume.com/v1/call/organic-keywords \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"target": "your target",
"date": "your date",
"mode": "subdomains",
"protocol": "both",
"limit": 100
}
}'const res = await fetch("https://api.peume.com/v1/call/organic-keywords", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"target": "your target",
"date": "your date",
"mode": "subdomains",
"protocol": "both",
"limit": 100
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/organic-keywords",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"target": "your target",
"date": "your date",
"mode": "subdomains",
"protocol": "both",
"limit": 100
}
},
)
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: organic-keywords.
Parameters
targetRequiredstringThe target of the report: a domain ('example.com') or a URL ('https://example.com/page').
dateRequiredstringReport date in YYYY-MM-DD format. Use today's date for current values.
countrystringTwo-letter country code (ISO 3166-1 alpha-2), e.g. 'us'. Optional, but set it for a readable list: without it the rows come from every country's database together, a keyword or URL can repeat with different metrics, and no row says which country it is from.
modestringScope of the target: exact (this URL only), prefix (URLs starting with the target), domain (the domain without subdomains), or subdomains (default — the domain and all its subdomains). exact and prefix match the target as written, so example.com and www.example.com are different targets there, even when one redirects to the other; a near-zero result under one spelling is not proof of zero, so retry with the other spelling, or with the bare domain (no www) under subdomains.
exact · prefix · domain · subdomains
Example: subdomains
protocolstringProtocol of the target: both (default), http, or https.
both · http · https
Example: both
limitintegerMaximum number of rows to return (the cost budget — billing is per row). Defaults to 100; max 100.
Example: 100
wherestringJSON filter expression (see the filter syntax docs). Filterable fields: keyword, best_position, best_position_url, volume, sum_traffic, cpc.
order_bystringSort order: 'field' or 'field:desc', comma-separated. Sortable fields: keyword, best_position, best_position_url, volume, sum_traffic, cpc.
