Call it
curl https://api.peume.com/v1/call/competitor-link-gaps \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"positive_targets": [
{
"target": "moz.com",
"scope": "root_domain"
}
],
"limit": 1
}
}'const res = await fetch("https://api.peume.com/v1/call/competitor-link-gaps", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"positive_targets": [
{
"target": "moz.com",
"scope": "root_domain"
}
],
"limit": 1
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/competitor-link-gaps",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"positive_targets": [
{
"target": "moz.com",
"scope": "root_domain"
}
],
"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: competitor-link-gaps.
Parameters
positive_targetsRequiredarrayobjects of {target, scope}; scope is page|subdomain|root_domain; max 6 targets across positive+negative
Example: [{"target":"moz.com","scope":"root_domain"}]
negative_targetsarraysame shape; sources linking to any of these are excluded
min_matching_targetsnumberonly return sources matching at least this many positive targets
source_scopestringpage (default) | root_domain
sortstringmatching_target_count (default) | source_domain_authority | source_spam_score
limitinteger1-50, default 25 — expensive, keep low
Example: 1
next_tokenstring