Backlink Gap API
Find the local directories and link sources your competitors have but you don't.
Link gap analysis used to mean exporting CSVs from Ahrefs and Semrush, diffing them in a spreadsheet, and manually vetting opportunities. Ahrefs (Link Intersect at $129/mo) locks this analysis behind a dashboard. Semrush (Backlink Gap at $139.95/mo) caps you at 4 competitors. Moz Link Intersect ($99/mo) charges per-seat. We built the endpoint: your domain plus up to 5 competitor domains in, a list of high-authority referring sites you're missing out. 10 credits per analysis. Your agent does the rest.
POST /v1/backlinks/gap · 10 credits per analysis
"Austin's top-rated plumbers"
"ABC Plumbing"
"Visit website"
"best plumbers in austin"
"ABC Plumbing - BBB"
These prompts are the new link-building workflow.
Connect Local SEO Data as an MCP server once (60 seconds, below). Then your agent finds link opportunities. Replace bracketed domains with your own.
Run a backlink gap analysis for [mybusiness.com] vs [competitor1.com], [competitor2.com], and [competitor3.com]. Flag any referring domains with domain rank >50 where we're missing a link.
Pull backlink gap for [mybusiness.com] vs top 3 competitors. Filter results to show only local domains (chambers, directories, association sites) we're missing.
Compare [our plumbing company] vs [top 2 competitors] for backlink gaps. Pair with Backlinks API to rank opportunities by domain authority and identify sites gaining new links.
Run a gap analysis for a prospect's domain [prospectsite.com] vs their 2 strongest local competitors. Show me the top 10 referring domains they're missing. That's my outreach list.
What you get back
Live response for a local plumbing company comparing against two competitors. Real API response, May 2026.
{
"status": "success",
"credits_used": 10,
"data": {
"your_domain": "abcplumbing.com",
"competitor_domains": ["competitor1.com", "competitor2.com"],
"opportunities": [
{
"referring_domain": "austinchamber.org",
"domain_rank": 68,
"links_to_competitors": [
{"domain": "competitor1.com", "backlinks": 142},
{"domain": "competitor2.com", "backlinks": 89}
],
"links_to_you": false
},
{
"referring_domain": "austinmonthly.com",
"domain_rank": 52,
"links_to_competitors": [
{"domain": "competitor1.com", "backlinks": 67}
],
"links_to_you": false
},
{
"referring_domain": "bbb.org/austin",
"domain_rank": 75,
"links_to_competitors": [
{"domain": "competitor2.com", "backlinks": 201}
],
"links_to_you": false
}
],
"total_opportunities": 34
}
}The gap analysis metrics that identify link-building targets
Domains you're missing that link to competitors
Complete list of unique domains that link to at least one of your competitors but not to you. These are your most qualified link-building targets because they already link to similar businesses in your space.
Authority score of each link source (0-100)
Authority metric for every referring domain, so you can prioritize your outreach. A domain-rank 70 chamber of commerce is worth more than a domain-rank 25 blog. Focus on high-authority opportunities first.
Which competitors have which links
For each gap domain, see which of your competitors they link to and how many backlinks they point to that domain. Reveals which competitors are already well-positioned and which links are most popular.
Compare against up to 5 competitors at once
Analyze the collective gap across your entire competitive set. If 3 out of 5 competitors all have links from the same chamber, that's your #1 priority. Pair with Backlinks API to rank these gaps by total referring domain count.
What link operators ship with this endpoint
Pre-pitch link opportunity lists for consultants
Before the sales call, run a gap analysis for the prospect's domain vs their 2-3 top competitors. Walk in with a concrete list of 'here are the 15 directories and local sites where you can get links.' Closes deals with a concrete action plan instead of hand-waving.
→ For consultantsCompetitive link benchmarking for agencies
Monthly gap analysis for all client sites vs their local competitors. Your agent flags new gap opportunities (competitor acquired a link, you haven't) and surfaces them in a ranked list. Build once, run monthly on cron, surface priority targets automatically.
→ For agenciesLink-building campaign targeting
Run gap analysis, get your top 20 opportunities, then pair with [Backlinks API](/backlinks-api) to pull full link details for each. Now you know not just 'they link to your competitor' but 'how many links, from what anchor text, when did they acquire it.' Use that intelligence to craft hyper-targeted outreach.
→ Backlinks APIMulti-location business reporting
For MSBs with 10+ locations, batch gap analysis across all locations in one agent run. Each location gets compared against local competitors in that market. Agent surfaces the top opportunities for each location, builds a prioritized outreach spreadsheet. No dashboard login required.
→ For local operatorsWhy not use Ahrefs Link Intersect, Semrush Backlink Gap, or Moz Link Intersect?
Link gap analysis tools are locked behind SaaS subscriptions. Here's why the API model is fundamentally better for agents doing real link-building work.
| Tool | Cost model | Competitor limit | Setup | AI-agent ready |
|---|---|---|---|---|
| Ahrefs Link Intersect ($129/mo) | $129–299/mo per seat, $1,548–3,588/year | Up to 10 competitors | Dashboard login | API available but dashboard-first |
| Semrush Backlink Gap ($139.95/mo) | $139.95–499.95/mo per seat | Up to 4 competitors only | Dashboard login | API available but dashboard-first |
| Moz Link Intersect ($99/mo) | $99–599/mo (Moz Standard+) | Up to 5 competitors | Dashboard login | No MCP integration |
| SE Ranking Gap Analyzer ($159/mo) | $159/mo for Core, $299+ Enterprise | Varies by plan | Dashboard or API | API but credit system opaque |
| DataForSEO Link Gap API ($0.10 per domain pair) | $0.10 per domain pair + base cost | Up to 5 competitors | REST API only | REST-only, no MCP |
| LocalSEOData Backlink Gap API | $0.05 per analysis (10 credits), no seats | Up to 5 competitors | API key + 1-line MCP config | Native MCP + REST, agent-first |
Use it from your agent
Two integration surfaces: MCP for clients that speak MCP, REST API for everything else.
Direct MCP integration
Drop-in support in Claude Desktop, OpenClaw, Hermes Agent, and any MCP-aware client.
Add to your client's MCP config (e.g. claude_desktop_config.json):
{
"mcpServers": {
"localseodata": {
"url": "https://mcp.localseodata.com",
"headers": {
"Authorization": "Bearer sk_live_..."
}
}
}
}REST API
For Perplexity Computer, ChatGPT Custom GPTs, custom agents, and any platform that calls REST endpoints directly.
Base URL:
api.localseodata.comSee the docs for endpoint reference and auth.
Your first call in three lines
Two parameters: `your_domain` (your site) and `competitor_domains` (array of 1-5 competitor domains). Optional: `limit` to cap results (default 50). One call returns all gap opportunities with domain rank for each referring site. One call = 10 credits (~$0.05).
curl -X POST https://api.localseodata.com/v1/backlinks/gap \
-H "Authorization: Bearer sk_live_..." \
-H "Content-Type: application/json" \
-d '{
"your_domain": "abcplumbing.com",
"competitor_domains": ["competitor1.com", "competitor2.com"],
"limit": 20
}'$0.05 per analysis (up to 5 competitors)
10 credits per backlink gap call. Free tier on signup includes 50 credits (5 gap analyses). Monthly plans start at $19 and never expire. No per-seat fees, no competitor caps.
Common questions
What is the Backlink Gap API?+
POST /v1/backlinks/gap; one call costs 10 credits (~$0.05). This is the data layer underneath outreach targeting, opportunity prioritization, and competitive link intelligence.How many competitors can I compare against?+
How does this compare to Ahrefs Link Intersect or Semrush Backlink Gap?+
Where does the data come from?+
How fresh is the backlink gap data?+
Can I filter results by domain authority or link type?+
limit to cap your results and you'll get the top opportunities first (ranked by domain authority, highest to lowest). You can also pair this with the Backlinks API to pull the full link profile for each gap domain — then filter further by dofollow/nofollow, anchor text, or link velocity in your agent logic. The gap API gives you the opportunities; the Backlinks API gives you the details to prioritize.Can my AI agent use this directly?+
claude_desktop_config.json (or any MCP-compatible client like OpenClaw or Hermes Agent), and Claude calls this endpoint from your prompt without you writing integration code. You just say 'find link gaps for my site vs my competitors' and it happens. REST: Any agent that can make HTTPS calls (ChatGPT Custom GPTs, Perplexity Computer, custom Python agents) hits api.localseodata.com with Authorization: Bearer sk_live_.... The agent receives the gap list and can reason about it — sorting by domain rank, filtering for local directories, flagging quick wins.What does it cost?+
Does this pair with the Backlinks API?+
What changed in 2026 that made this category exist?+
Can I use this to analyze my own domain plus a large competitive set?+
How do I prioritize which gap opportunities to target?+
What's a 'referring domain'?+
Often used in the same agent prompt
Backlinks API
Get backlink counts, referring domains, domain rank, and spam score for any site.
POST /v1/report/competitor-gapCompetitor Gap API
Rankings, reviews, and links vs your local competitors. Composite.
GET /v1/keywords/siteKeywords for Site API
What keywords a competitor ranks for. Find their link targets.
POST /v1/pages/auditPage Audit API
On-page SEO audit, Core Web Vitals, schema markup.
Build your first gap analysis in 60 seconds.
50 free credits on signup. Compare your domain against competitors in your first agent prompt. Get a prioritized outreach list instead of a spreadsheet export.