Skip to Content

Top Pages

Get the pages on a domain that attract the most inbound links.

GEThttps://api.rankparse.com/v1/top-pages2 creditsAPI key

Returns the pages on a domain (including its subdomains) ranked by number of inbound links, with the number of distinct linking domains and the page's HTTP status and content type where known. Use it to find the content that earns links. 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. Subdomains are included.

limitintegerdefault 100

Number of pages to return. Clamped to 1 to 1000. A non-numeric value falls back to 100. There is no offset. Results are ranked after all matching pages are aggregated, so a smaller limit does not make a large-domain query faster.

Response

domainstring

The normalized (lowercased) domain you queried.

dataarray

Pages sorted by inbound_links descending, then URL. Empty when the domain has no data.

Show properties
urlstring

Absolute URL of the page (always starts with http).

inbound_linksinteger

Number of links pointing to this page. Always at least 1.

referring_domainsinteger

Number of distinct domains linking to this page. Always at least 1.

status_codeinteger | null

HTTP status recorded for the page, or null when unknown.

mimestring | null

Content type recorded for the page, or null when unknown.

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 is incomplete (see below).

credits_usedinteger

Always 2.

credits_remaininginteger

Your balance after this call.

Large domains and partial results

The lookup has a 65 second budget. For domains with very large link graphs the query can exceed it and fail with 503 and code: "query_timeout". One retry may succeed. If the same domain keeps timing out, try a narrower subdomain, because the endpoint may not currently support the full domain. Failed requests are refunded.

If the aggregating query fails but a simpler fallback completes in the remaining time, the response includes partial: true. That result is incomplete because counts for the same URL are not summed (only the first row per URL is kept), so treat it as a preview rather than a full ranking. Partial responses are billed normally but are not cached.

Behavior and limits

  • Credits: 2 per call, charged before the lookup. Server errors 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_timeoutThe query exceeded its time budget. Retry once, then try a subdomain. Includes retry: true and a Retry-After header. Credits are refunded.
503upstream_errorTransient data store problem. Retry after the Retry-After header. Credits are refunded.

See Errors for the error body format.

MCP tool: get_top_pages (accepts domain, limit).