YepAPI

Command Palette

Search for a command to run...

POST/v1/seo/backlinks/domain-intersection

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.

POST/v1/seo/backlinks/domain-intersection
Response
Example response — hit "Send Request" to see a live result
{
  "ok": true,
  "data": [
    {
      "domain": "techcrunch.com",
      "domainAuthority": 93,
      "targets": {
        "1": true,
        "2": true
      }
    },
    {
      "domain": "producthunt.com",
      "domainAuthority": 91,
      "targets": {
        "1": false,
        "2": true
      }
    }
  ]
}

Features

Compare up to 20 domains simultaneously

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.

Find referring domains unique to specific targets

Each result's targets map (e.g. {"1": true, "2": false}) shows exactly which compared domains a referrer links to, surfacing the sites that link your rivals but not you.

Authority scores for each intersecting domain

Every intersecting domain returns its domainAuthority, so you can sort the link-gap list by value and pursue the strongest untapped referrers first.

Configurable result limit

The limit field (default 100) sets how many intersecting domains return; with $0.006 per 100 rows on top of the $0.04 call, a full gap analysis stays affordable.

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
  }),
});
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 domainAuthority 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.04 + $0.006 per 100 rows

Each comparison costs $0.04 plus $0.006 per 100 intersecting domains returned, so a 100-row gap analysis across all 20 targets is about five 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 domainAuthority scores 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.

Marcus T.

SEO Platform Founder

One API key for AI models, SERP data, and web scraping. Saved us from managing 4 separate providers.

Priya S.

Full-Stack Developer

The $5 free credit let us prototype our entire rank tracking feature before committing. No other API does that.

Jake R.

Indie Hacker

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.

Each API call costs $0.04 (+$0.006 per 100 rows). 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 apis endpoints