Skip to Content

Anchor Text

Get the anchor text phrases used in links to a domain, ranked by how often they appear.

GEThttps://api.rankparse.com/v1/anchor-text2 creditsAPI key

Returns 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

domainstringrequired

Domain to query, for example stripe.com. No scheme or path. Must contain a dot. Links to subdomains of the domain are included.

limitintegerdefault 100

Number 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

domainstring

The normalized (lowercased) domain you queried.

dataarray

Anchor phrases sorted by link_count descending. Empty when the domain has no data.

Show properties
anchor_textstring

The anchor phrase.

link_countinteger

Number of links using this phrase.

domain_countinteger

Number of distinct domains using this phrase.

totalinteger

Number of rows returned in data.

limitinteger

The limit value you sent, echoed back as received.

partialboolean

Only present, and always true, when the result covers the exact domain only (see below).

credits_usedinteger

Always 2.

credits_remaininginteger

Your 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_domain is refused before any charge.
  • Caching: complete results are cached for 30 days per crawl release and per combination of domain and limit. A cache hit is billed the same as a fresh lookup.
  • Empty results: a domain with no data returns 200 with data: [], never 404.
  • Rate limit: 60 requests per minute per key. See Rate limiting.

Errors

HTTPCodeWhen
400invalid_domaindomain is missing or not a valid domain. Checked before the charge: nothing is charged.
401invalid_api_keyMissing, invalid or revoked API key.
402insufficient_creditsBalance is lower than the call cost.
402spend_cap_reachedYour monthly spend cap is reached.
429rate_limitedMore than 60 requests in a minute.
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_anchor_text (accepts domain, limit).