Anchor Text
Get the anchor text phrases used in links to a domain, ranked by how often they appear.
https://api.rankparse.com/v1/anchor-text2 creditsAPI keyReturns the anchor text distribution for links pointing at a domain: which phrases other websites use, how many links use each, and from how many distinct domains. Useful for spotting over-optimized profiles and branded versus generic mixes. Data comes from the pre-processed link graph snapshot (see Response format).
Query parameters
domainstringrequiredDomain to query, for example stripe.com. No scheme or path. Must contain a dot. Links to subdomains of the domain are included.
limitintegerdefault 100Number of phrases to return. Clamped to 1 to 1000. A non-numeric value falls back to 100. There is no offset: raise limit to see more phrases.
Response
domainstringThe normalized (lowercased) domain you queried.
dataarrayAnchor phrases sorted by link_count descending. Empty when the domain has no data.
Show propertiesHide properties
anchor_textstringThe anchor phrase.
link_countintegerNumber of links using this phrase.
domain_countintegerNumber of distinct domains using this phrase.
totalintegerNumber of rows returned in data.
limitintegerThe limit value you sent, echoed back as received.
partialbooleanOnly present, and always true, when the result covers the exact domain only (see below).
credits_usedintegerAlways 2.
credits_remainingintegerYour balance after this call.
Behavior and limits
- What is excluded: empty anchors, whitespace-only anchors and anchors that start with
<(raw markup) are left out. - Partial results: the endpoint first answers for the exact domain, then widens to include subdomains. If the wider query runs out of time and the exact-domain query found rows, you get those rows with
partial: true. Partial responses are billed normally but are not cached, so repeating the request later can return the full answer. The whole lookup has a 65 second budget. - Credits: 2 per call, charged before the lookup. If the lookup fails with a server error, the credits are refunded. A request rejected with
invalid_domainis refused before any charge. - Caching: complete results are cached for 30 days per crawl release and per combination of
domainandlimit. A cache hit is billed the same as a fresh lookup. - Empty results: a domain with no data returns
200withdata: [], never404. - Rate limit: 60 requests per minute per key. See Rate limiting.
Errors
| HTTP | Code | When |
|---|---|---|
| 400 | invalid_domain | domain is missing or not a valid domain. Checked before the charge: nothing is charged. |
| 401 | invalid_api_key | Missing, invalid or revoked API key. |
| 402 | insufficient_credits | Balance is lower than the call cost. |
| 402 | spend_cap_reached | Your monthly spend cap is reached. |
| 429 | rate_limited | More than 60 requests in a minute. |
| 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_anchor_text (accepts domain, limit).