Top Pages
Get the pages on a domain that attract the most inbound links.
https://api.rankparse.com/v1/top-pages2 creditsAPI keyReturns 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
domainstringrequiredDomain to query, for example stripe.com. No scheme or path. Must contain a dot. Subdomains are included.
limitintegerdefault 100Number 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
domainstringThe normalized (lowercased) domain you queried.
dataarrayPages sorted by inbound_links descending, then URL. Empty when the domain has no data.
Show propertiesHide properties
urlstringAbsolute URL of the page (always starts with http).
inbound_linksintegerNumber of links pointing to this page. Always at least 1.
referring_domainsintegerNumber of distinct domains linking to this page. Always at least 1.
status_codeinteger | nullHTTP status recorded for the page, or null when unknown.
mimestring | nullContent type recorded for the page, or null when unknown.
totalintegerNumber of rows returned in data.
limitintegerThe limit value you sent, echoed back as received.
partialbooleanOnly present, and always true, when the result is incomplete (see below).
credits_usedintegerAlways 2.
credits_remainingintegerYour 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_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 | The query exceeded its time budget. Retry once, then try a subdomain. Includes retry: true and a Retry-After header. Credits are refunded. |
| 503 | 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_top_pages (accepts domain, limit).