Call it
curl https://api.peume.com/v1/call/backlinks-by-domain-or-url-source-and-target-metrics \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"target": "moz.com/blog",
"target_scope": "page",
"limit": 1
}
}'const res = await fetch("https://api.peume.com/v1/call/backlinks-by-domain-or-url-source-and-target-metrics", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"target": "moz.com/blog",
"target_scope": "page",
"limit": 1
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/backlinks-by-domain-or-url-source-and-target-metrics",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"target": "moz.com/blog",
"target_scope": "page",
"limit": 1
}
},
)
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: backlinks-by-domain-or-url-source-and-target-metrics.
Parameters
targetRequiredstringURL to get links for
Example: moz.com/blog
target_scopestringpage | subdomain | root_domain (default page)
Example: page
filterstringdefault 'external'; combine with '+', e.g. external+follow, external+nofollow, external+deleted, external+not_redirect
sortstringdefault source_page_authority; also source_domain_authority, source_spam_score, source_link_propensity, root_domains_to_source_page/_root_domain
anchor_textstringonly links whose normalised anchor text equals this; "\u0000" matches empty anchor text
source_root_domainstringonly links from this source root domain
source_scopestringpage | subdomain | root_domain (default page) — at subdomain/root_domain returns only the best link per source
subdomains_limited_to_onearrayreturn only the best link from each listed subdomain
limitinteger1-50, default 25 — this is the cost dial
Example: 1
next_tokenstringcursor from a previous response's next_token
Other ways to do it
Same job, other sources, cheapest first.
