Domain Intersection API
Find domains that link to competitors but not to you. Uncover link building opportunities your rivals already have from $0.05/call.
Compare up to 20 domains and discover which referring domains link to some targets but not others. The ultimate tool for competitive link gap analysis — find untapped backlink sources that already link to your rivals.
Try it live
Fill in the fields and hit Run to see a real response.
{
"ok": true,
"data": {
"intersections": [
{
"domain": "tracknow.io",
"targets": {
"1": false,
"2": true,
"3": true
},
"links": {
"2": {
"backlinks": 29,
"referringPages": 27,
"rank": 490,
"spamScore": 0,
"firstSeen": "2024-05-20"
},
"3": {
"backlinks": 2,
"referringPages": 2,
"rank": 0,
"spamScore": 2,
"firstSeen": "2025-05-26"
}
}
}
]
}
}Features
The targets JSON accepts numbered entries so you can pit your domain against many competitors at once and see which sites link across the set in a single call.
With intersection_mode set to partial, each result's targets map (e.g. {"1": false, "2": true}) shows exactly which compared domains a referrer links to, surfacing the sites that link your rivals but not you.
Each result's links map gives backlinks, referring pages, rank and spam score per target, so you can sort the link-gap list by value and pursue the strongest untapped referrers first.
The limit field (default 100) sets how many intersecting domains return; with $0.01 per 100 rows on top of the $0.05 call, a full gap analysis stays affordable.
Pricing
$0.05 per call + $0.01 per 100 rows — so a call returning 1,000 rows costs $0.15.
| Rows returned | Price per call |
|---|---|
| 10 | $0.06 |
| 100 | $0.06 |
| 500 | $0.10 |
| 1,000 | $0.15 |
Billed on results actually returned. Failed calls are never charged.
Use cases
Competitive Link Gap
Discover high-authority sites linking to every competitor but not to you, creating a prioritized outreach list.
Link Building Strategy
Identify the most common link sources across your industry to understand which sites are most receptive to outreach.
Quick start
Copy this snippet and start making calls.
const res = await fetch('https://api.yepapi.com/v1/seo/backlinks/domain-intersection', {
method: 'POST',
headers: {
'x-api-key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"targets": {
"1": "example.com",
"2": "competitor.com"
},
"limit": 100,
"intersection_mode": "all"
}),
});
const data = await res.json();
console.log(data);The link gap API for developers — find domains linking to competitors but not you
The Domain Intersection API compares up to 20 domains and reports, for every referring domain, which of your targets it links to. Pass your site plus your competitors and instantly see the high-authority sites linking everyone but you — your prioritized link-building list.
It is the competitive end of YepAPI's backlink suite. While Referring Domains lists who links one site, this endpoint cross-references many sites at once; the Page Intersection endpoint does the same at the URL level under the same key.
What is a link gap (domain intersection) API?
A link gap API cross-references the backlink profiles of several domains to find referrers shared — or not shared — across them. You supply a numbered set of targets, and each result is a referring domain plus a targets map showing which of your inputs it links to. The classic use is putting your domain first and competitors after: any high-authority site with targets like {"1": false, "2": true, "3": true} links your rivals but not you. YepAPI serves it at /v1/seo/backlinks/domain-intersection, accepting up to 20 targets as JSON and returning the intersection as scored rows.
Build your own link gap tool
Build a competitive-gap dashboard where a user enters their domain and a few rivals and gets a ranked list of sites to pitch — those linking the competition but not them. Use the targets map to compute a "links to N of M competitors" score and surface the sites that link the most rivals, since those are the most receptive in your niche. Sort by the backlink counts and rank in the links map so outreach starts with the highest-value gaps. Layer in the Referring Domains API to enrich each gap with contact-worthy detail.
Link gap API pricing — $0.05 + $0.01 per 100 rows
Each comparison costs $0.05 plus $0.01 per 100 intersecting domains returned, so a 100-row gap analysis across all 20 targets is about six cents total. Competitor link-gap tooling typically lives in $999/mo Ahrefs plans or enterprise Semrush tiers at $0.25–$0.30 per equivalent call; here a full multi-competitor gap report costs less than a dime.
Reverse-engineer competitor link strategies
Run all your main competitors through one intersection call and read the targets map across results. Domains linking every competitor reveal the resource pages, directories, and round-ups that define link-building in your category — the playbook your rivals followed. The per-target link stats let you weight that playbook, and the gaps where you are the only false flag show exactly where you are behind. One call replaces hours of manually diffing separate backlink exports.
Try the link gap API free
Start with $5 of free credit, no credit card. That covers many multi-competitor intersections — enough to map your real link gaps, confirm the targets map matches your competitive set, and validate the workflow before committing spend.
Start making API calls in 30 seconds
$5 free credit on signup. No credit card required. Pay per call.
What developers say
“Switched from SerpAPI and cut our SERP costs by 80%. Same data quality, way simpler billing.”
“One API key for AI models, SERP data, and web scraping. Saved us from managing 4 separate providers.”
“The $5 free credit let us prototype our entire rank tracking feature before committing. No other API does that.”
Frequently asked questions
Compare up to 20 domains and discover which referring domains link to some targets but not others. The ultimate tool for competitive link gap analysis — find untapped backlink sources that already link to your rivals.
Pricing is $0.05 per call + $0.01 per 100 rows, billed on the number of rows actually returned — a call returning 1,000 rows costs $0.15. Failed calls are never charged. No monthly minimums or subscriptions — you only pay for what you use.
Sign up for a free API key, then send a POST request to /v1/seo/backlinks/domain-intersection. Check the code example above for a ready-to-use snippet in JavaScript, cURL, or Python.
YepAPI bundles SEO, AI, and web scraping APIs under one key with no monthly minimums. You get lower per-call pricing, a unified dashboard, and one billing account instead of managing multiple providers.
Ready to integrate?
Get your API key and start making calls in 30 seconds. $5 free credit on signup — no credit card required.
More SEO API endpoints
Page Intersection API
from $0.05Find specific pages that link to competitor URLs but not yours. Page-level link gap analysis for targeted outreach from $0.05/call.
Backlinks List API
from $0.05Every backlink pointing to any URL or domain with anchor text, authority scores, and follow/nofollow status. Bulk link data from $0.05/call.
Backlinks Summary API
$0.05Backlink profile summary — total links, referring domains, dofollow ratio, and authority distribution in one call. Quick link audits from $0.05/call.
Backlinks Anchors API
from $0.05Anchor text distribution analysis for any backlink profile. Detect over-optimization and plan natural link building from $0.05/call.
Referring Domains API
from $0.05All referring domains linking to any target with authority scores, link counts, and first-seen dates. Link prospecting from $0.05/call.
Top Linked Pages API
from $0.05The pages of any domain ranked by backlinks, with referring domains, rank and spam score per page. Find link magnets from $0.05/call.