Competitor Gap
Find domains that link to a competitor but not to your domain, ranked as link-building prospects.
https://api.rankparse.com/v1/competitor-gap5 creditsAPI keyReturns 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
domainstringrequiredYour domain, for example smartify.in. No scheme or path. Must contain a dot. Matched exactly.
vsstringrequiredThe competitor domain, same format as domain. Must be different from domain, or the call fails with same_domain.
limitintegerdefault 50Number 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 falseSend 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
domainstringYour domain, normalized.
vsstringThe competitor domain, normalized.
dataarrayProspect rows, best first. Empty when the competitor has no referring domains or all were excluded.
Show propertiesHide properties
from_domainstringA domain that links to vs but not to domain.
total_linksintegerNumber of links from this domain to vs.
from_domain_scoreintegerAuthority score (0 to 100) of from_domain, 0 when unknown. Meaningless when scored is false: it is 0 on every row.
totalintegerNumber of gap domains found. A lower bound when partial is true.
returnedintegerNumber of rows in data (at most limit).
partialbooleantrue when the result is incomplete or unscored (see below). Always present.
scoredbooleantrue when rows were ranked by from_domain_score. Always present.
budget_msintegerThe time budget for the whole request, in milliseconds (currently 25000).
credits_usedintegerAlways 5.
credits_remainingintegerYour balance after this call.
crawl_releasestringThe 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
scoredisfalse, rows are ordered bytotal_links, andfrom_domain_scoreis0on 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_domainsorsame_domainis 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,limitandinclude_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
200withdata: []. - Rate limit: 60 requests per minute per key. See Rate limiting.
Errors
| HTTP | Code | When |
|---|---|---|
| 400 | invalid_domains | domain or vs is missing or not a valid domain. Checked before the charge: nothing is charged. |
| 400 | same_domain | domain and vs are identical. Checked before the charge: nothing is charged. |
| 401 | invalid_api_key | Missing, invalid or revoked API key. |
| 402 | insufficient_credits | Balance is lower than 5 credits. |
| 402 | spend_cap_reached | Your monthly spend cap is reached. |
| 429 | rate_limited | More than 60 requests in a minute. |
| 503 | deterministic_timeout | No 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. |
| 503 | query_timeout, upstream_error | Transient data store problem. Retry after the Retry-After header. Credits are refunded. |
See Errors for the error body format.
Related
MCP tool: get_competitor_gap (accepts domain, vs, limit from 1 to 200, default 50; it does not expose include_generic).