Skip to content
DomDetailer
Backlinks API Current

Backlinks API

The individual links behind the numbers: anchor text, source page, target URL and follow status, with a profile summary alongside them. Served from our own index, which is why it costs what it does.

What you get

One request returns two things: a summary of the domain's link profile, and the individual links that summary was calculated from. That second part is the point — you can check the reasoning rather than take a score on trust.

5,000
rows maximum
per request
1
credit
for the whole response
Yes
de-duplication
one per referring domain, optionally

Using it well

Send bare domains

Pass example.com rather than a full URL. Protocols, a leading www. and any path are stripped for you, but sending them wastes a round trip if the result is not what you expected.

Use onePerDomain for outreach

A hundred links from one site is one relationship, not a hundred prospects. onePerDomain=1 collapses them so 5,000 rows means up to 5,000 distinct referring domains.

Read anchor with a fallback

anchor can legitimately be empty - image links carry no text. Fall back to title before treating it as missing data.

Treat counts as a floor

Our crawl coverage is deep but not total. A Pretty count is a firm lower bound on what exists, not an exact total, and should be read that way when comparing against Majestic.

Cache, and throttle

This endpoint is heavier than domain metrics. Five concurrent requests is a sensible ceiling, and a backlink profile is worth caching for days rather than minutes.

Errors

The same status codes and error slugs as the rest of the API. A failed request is never charged.

Status error When it happens
400 missing_parameter A required parameter is absent, or the domain could not be parsed as a hostname.
401 invalid_api_key The key is missing, malformed, or not attached to an account.
402 not_enough_credits The account has no credits left. Nothing was charged.
404 account_not_found The key or email did not match any account.
429 rate_limited Too many requests. The body carries retry_after in seconds - wait that long rather than retrying immediately.
502 upstream_error A data source failed to respond. Safe to retry after a short pause.
500 server_error Something went wrong on our side. If it persists, tell us what you sent.

Questions

How many backlinks can one request return?

Up to 5,000 rows. For domains with larger profiles, use onePerDomain=1 to get one link per referring domain, which usually tells you more per row than 5,000 links from a handful of sites.

Is the order of the rows meaningful?

No. Row order is not guaranteed and should not be treated as a ranking. Sort on whatever matters to you after you receive them.

Can I page through more than 5,000 links?

Not yet. Paginated link lists are part of the Pretty V2 work described on the dataset page.

Start at 25,000 lookups for $34.

One balance covers the browser tools, the desktop app and the API. Nothing renews, nothing expires, and you can stop using it for six months without losing anything.