Call it
curl https://api.peume.com/v1/call/browse-targeting-categories \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"accountId": "your accountId",
"adAccountId": "your adAccountId"
}
}'const res = await fetch("https://api.peume.com/v1/call/browse-targeting-categories", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"accountId": "your accountId",
"adAccountId": "your adAccountId"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/browse-targeting-categories",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"accountId": "your accountId",
"adAccountId": "your adAccountId"
}
},
)
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: browse-targeting-categories.
Parameters
accountIdRequiredstringA connected Meta account (metaads, facebook or instagram). Any other ad platform returns 501 platform_not_supported.
adAccountIdRequiredstringThe Meta ad account to browse as, in the form "act_<digits>".
typestringOnly the nodes of this Meta type (e.g. interests, behaviors, life_events, income), plus the organizational nodes leading to them. A type that is not in the catalog returns 400.
parentNodeIdstringOnly the descendants (every depth) of this organizational node, e.g. `Demographics > Financial`. A nodeId that is not an organizational node of the catalog returns 400.
selectableboolean`true` for selectable entities only, `false` for organizational nodes only.
