Call it
curl https://api.peume.com/v1/call/trust-flow-and-citation-flow-by-domain-or-url \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"cmd": "GetIndexItemInfo",
"items": 1,
"item0": "https://www.example.com/",
"datasource": "fresh"
}
}'const res = await fetch("https://api.peume.com/v1/call/trust-flow-and-citation-flow-by-domain-or-url", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"cmd": "GetIndexItemInfo",
"items": 1,
"item0": "https://www.example.com/",
"datasource": "fresh"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/trust-flow-and-citation-flow-by-domain-or-url",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"cmd": "GetIndexItemInfo",
"items": 1,
"item0": "https://www.example.com/",
"datasource": "fresh"
}
},
)
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: trust-flow-and-citation-flow-by-domain-or-url.
Parameters
cmdRequiredstringExample: GetIndexItemInfo
itemsRequiredintegerhow many item0..itemN params you are sending; 1 to 100
Example: 1
item0Requiredstringthe first target — a URL, subdomain or root domain. Additional targets go in item1, item2 … up to item(items-1)
Example: https://www.example.com/
datasourcestringfresh | historic (default historic) — send it explicitly, the two indexes disagree
Example: fresh
DesiredTopicsintegerhow many Trust Flow topics to return per item; default 3, max 30 for root domains, 20 for subdomains, 10 for URLs
AddAllTopicsinteger1 adds the full TrustCategories column
EnableResourceUnitFailoverinteger1 lets the call fall back to Analysis + Retrieval units when Index Item Units run out; default 0
Other ways to do it
Same job, other sources, cheapest first.
