Call it
curl https://api.peume.com/v1/call/compare-llm-mention-metrics-across-brands-older-path \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"targets": [
{
"aggregation_key": "hubspot",
"target": [
{
"domain": "hubspot.com"
}
]
},
{
"aggregation_key": "salesforce",
"target": [
{
"domain": "salesforce.com"
}
]
}
],
"location_code": 2840,
"language_code": "en",
"platform": "google",
"internal_list_limit": 3
}
}'const res = await fetch("https://api.peume.com/v1/call/compare-llm-mention-metrics-across-brands-older-path", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"targets": [
{
"aggregation_key": "hubspot",
"target": [
{
"domain": "hubspot.com"
}
]
},
{
"aggregation_key": "salesforce",
"target": [
{
"domain": "salesforce.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/compare-llm-mention-metrics-across-brands-older-path",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"targets": [
{
"aggregation_key": "hubspot",
"target": [
{
"domain": "hubspot.com"
}
]
},
{
"aggregation_key": "salesforce",
"target": [
{
"domain": "salesforce.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: compare-llm-mention-metrics-across-brands-older-path.
Parameters
targetsRequiredarrayup to 10 groups, each {"aggregation_key": "<label>", "target": [<entities as in the target field of the single-target routes>]}
Example: [{"aggregation_key":"hubspot","target":[{"domain":"hubspot.com"}]},{"aggregation_key":"salesforce","target":[{"doma
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_filtersarrayinternal_list_limitintegerelements per internal array, 1-10, default 5
Example: 3
