Call it
curl https://api.peume.com/v1/call/llm-mention-metrics-for-a-keyword-or-domain-older \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"target": [
{
"domain": "hubspot.com"
}
],
"location_code": 2840,
"language_code": "en",
"platform": "google",
"internal_list_limit": 3
}
}'const res = await fetch("https://api.peume.com/v1/call/llm-mention-metrics-for-a-keyword-or-domain-older", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"target": [
{
"domain": "hubspot.com"
}
],
"location_code": 2840,
"language_code": "en",
"platform": "google",
"internal_list_limit": 3
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/llm-mention-metrics-for-a-keyword-or-domain-older",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"target": [
{
"domain": "hubspot.com"
}
],
"location_code": 2840,
"language_code": "en",
"platform": "google",
"internal_list_limit": 3
}
},
)
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: llm-mention-metrics-for-a-keyword-or-domain-older.
Parameters
targetRequiredarrayup to 10 entities, each one domain ({"domain": "hubspot.com", "search_filter": "include|exclude", "search_scope": ["any|sources|search_results"], "include_subdomains": false}) or one keyword ({"keyword": "crm", "search_filter": "include|exclude", "search_scope": ["any|question|answer|brand_entities|fan_out_queries"], "match_type": "word_match|partial_match"}); all entities are AND-combined into one filter
Example: [{"domain":"hubspot.com"}]
location_codeintegerdefault 2840 (United States); with platform chat_gpt only 2840 is valid (task status 40501 otherwise)
Example: 2840
language_codestringdefault en; with platform chat_gpt only en is valid
Example: en
platformstringgoogle (AI Overviews, the default) or chat_gpt
Example: google
initial_dataset_filtersarrayfilters applied to the raw mentions before aggregation, up to 8
internal_list_limitintegerelements per internal array (sources_domain, search_results_domain), 1-20
Example: 3
