Skip to Content

Competitor Gap

Find domains that link to a competitor but not to your domain, ranked as link-building prospects.

GEThttps://api.rankparse.com/v1/competitor-gap5 creditsAPI key

Returns domains that link to the competitor (vs) but not to your domain (domain), ranked by authority so the strongest prospects come first. It is the quickest way to build an outreach list. Data comes from the pre-processed link graph snapshot (see Response format).

Query parameters

domainstringrequired

Your domain, for example smartify.in. No scheme or path. Must contain a dot. Matched exactly.

vsstringrequired

The competitor domain, same format as domain. Must be different from domain, or the call fails with same_domain.

limitintegerdefault 50

Number of rows to return. Clamped to 1 to 200 and rounded down to a whole number. A non-numeric value or 0 falls back to 50.

include_genericbooleandefault false

Send include_generic=true to keep generic hosting platforms in the results. Only the exact value true enables it.

Generic hosting platforms, such as blogspot.com, wordpress.com, wixsite.com, myshopify.com, github.io, vercel.app, medium.com and link shorteners like bit.ly, are excluded by default (the apex domain and any subdomain of it). Every website hosted on one rolls up to the platform's domain, so those arrive with enormous link counts and a maximum authority score and crowd out the real prospects. Pass include_generic=true for the unfiltered set.

Response

domainstring

Your domain, normalized.

vsstring

The competitor domain, normalized.

dataarray

Prospect rows, best first. Empty when the competitor has no referring domains or all were excluded.

Show properties
from_domainstring

A domain that links to vs but not to domain.

total_linksinteger

Number of links from this domain to vs.

from_domain_scoreinteger

Authority score (0 to 100) of from_domain, 0 when unknown. Meaningless when scored is false: it is 0 on every row.

totalinteger

Number of gap domains found. A lower bound when partial is true.

returnedinteger

Number of rows in data (at most limit).

partialboolean

true when the result is incomplete or unscored (see below). Always present.

scoredboolean

true when rows were ranked by from_domain_score. Always present.

budget_msinteger

The time budget for the whole request, in milliseconds (currently 25000).

credits_usedinteger

Always 5.

credits_remaininginteger

Your balance after this call.

crawl_releasestring

The snapshot the data comes from.

How the gap is built

The endpoint reads the competitor's referring domains from the top of the list by link count, in pages of 100 (at most 10 pages, so 1,000 candidates). From each page it removes every domain that already links to you and, unless include_generic=true, generic hosting platforms. It stops once it has 250 gap domains or the competitor's list runs out. It then scores up to 250 of them and sorts by from_domain_score, then total_links, then domain name. Competitors with very large link profiles are therefore sampled from their strongest linkers, not exhaustively.

Partial and unscored results

The request runs under a fixed time budget (budget_ms). partial is true whenever the answer may not cover every gap domain.

  • Scored but partial: the competitor has more candidates than were examined. The rows are correctly ranked, drawn from the strongest candidates.
  • Unscored: time ran out after some gap domains were found, the 1,000 candidates gave fewer than 250 gap domains before the list ran out, or authority scoring failed. Then scored is false, rows are ordered by total_links, and from_domain_score is 0 on every row. Retrying the same request usually returns a fully scored answer.

A partial response with rows is billed normally and is not cached. A partial response with no rows is not an answer: it is not charged (credits_used is 0) and not cached. If no gap domain is found before the budget or the 1,000 candidates run out, the call fails with 503 deterministic_timeout instead, and that is refunded too.

Behavior and limits

  • Credits: 5 per call, charged before the lookup. A request rejected with invalid_domains or same_domain is refused before any charge. Any error response is refunded, and so is a partial response with no rows. A partial response with rows, and a cache hit, are charged in full.
  • Caching: complete results are cached for 30 days per crawl release and per combination of domain, vs, limit and include_generic. A cache hit is billed the same as a fresh lookup.
  • Empty results: if the competitor's whole list is read and nothing qualifies, you get 200 with data: [].
  • Rate limit: 60 requests per minute per key. See Rate limiting.

Errors

HTTPCodeWhen
400invalid_domainsdomain or vs is missing or not a valid domain. Checked before the charge: nothing is charged.
400same_domaindomain and vs are identical. Checked before the charge: nothing is charged.
401invalid_api_keyMissing, invalid or revoked API key.
402insufficient_creditsBalance is lower than 5 credits.
402spend_cap_reachedYour monthly spend cap is reached.
429rate_limitedMore than 60 requests in a minute.
503deterministic_timeoutNo usable result was found for this exact pair within the budget or the candidate limit. Retrying unchanged will fail the same way, so it comes with retry: false and no Retry-After. Credits are refunded. Try a different or less-linked competitor.
503query_timeout, upstream_errorTransient data store problem. Retry after the Retry-After header. Credits are refunded.

See Errors for the error body format.

MCP tool: get_competitor_gap (accepts domain, vs, limit from 1 to 200, default 50; it does not expose include_generic).