Docs
Search docs...⌘K

Backlinks

API + MCP
GET/v3/site-explorer/all-backlinks

Query parameters

selectstringRequired

A comma-separated list of fields to return.

wherestring

A JSON filter expression.

order_bystring

A comma-separated list of sort fields. Append :asc or :desc to set the direction.

Example:field_a,field_b:asc,field_c:desc
limitinteger

The number of results to return.

Min:1
Default:1000
timeoutinteger

A manual timeout duration in seconds.

Min:0
aggregationstring

The backlinks grouping mode.

Allowed values:similar_links1_per_domainall
Default:similar_links
historystring

A time frame to add lost backlinks to the report. Choose between live (no history), since:<date> (history since a specified date), and all_time (full history). The date should be in YYYY-MM-DD format.

Default:all_time
modestring

The scope of the search based on the target you entered.

Allowed values:exactprefixdomainsubdomains
Default:subdomains
targetstring (url)Required

The target of the search: a domain or a URL.

portfolio_idinteger

The unique identifier of the portfolio. When provided, it takes precedence over target.

protocolstring

The protocol of your target.

Allowed values:bothhttphttps
Default:both
outputstring

The output format.

Allowed values:jsoncsvxmlphp

Responses

backlinksarray<object>
ahrefs_rank_source1 unitinteger

The strength of the referring domain's backlink profile compared to the other websites in our database, with rank #1 being the strongest.

ahrefs_rank_target1 unitinteger

The strength of the target domain's backlink profile compared to the other websites in our database, with rank #1 being the strongest.

alt1 unitstring or null

The alt attribute of the link.

anchor1 unitstring

The clickable words in a link that point to a URL.

broken_redirect_new_target1 unitstring or null

The new destination of a modified redirect.

broken_redirect_reason1 unitstring or null

The reason the redirect was considered broken during the last crawl.

Allowed values:droppedmanualdroppedtooolddroppedcodechangednxdomainrobotsdisallowedcurlerrorinvalidtargetnomorecanonicalisnowparkedtargetchangednull
broken_redirect_source1 unitstring or null

The redirecting URL that was modified, causing the redirect to become broken.

class_c5 unitsinteger

The number of unique class_c subnets linking to the referring page.

discovered_status1 unitstring or null

The reason the link was discovered during the last crawl: the page was crawled for the first time, the link was added to the page, or the link re-appeared after being removed.

Allowed values:pagefoundlinkfoundlinkrestorednull
domain_rating_source1 unitnumber (float)

The strength of the referring domain's backlink profile compared to the others in our database on a 100-point scale.

domain_rating_target1 unitnumber (float)

The strength of the referring domain's backlink profile compared to the others in our database on a 100-point scale.

drop_reason1 unitstring or null

The reason we removed the link from our index.

Allowed values:manualnoratingunusednotoptoooldoldunavailablerescursiveduplicatenxdomainmalformedblockedportdisallowedunlinkedlowvalueothernull
encoding1 unitstring

The character set encoding of the referring page HTML.

first_seen1 unitstring (date-time)

The date the referring page URL was first discovered.

first_seen_link1 unitstring (date-time)

The date we first found a backlink to your target on a given referring page.

http_code1 unitinteger

The return code from HTTP protocol returned during the referring page crawl.

http_crawl1 unitboolean

The link was discovered without executing javascript and rendering the page.

ip_source1 unitstring or null

The referring domain IP address.

is_alternate1 unitboolean

The link with the rel=“alternate” attribute.

is_canonical1 unitboolean

The link with the rel=“canonical” attribute.

is_content1 unitboolean

The link was found in the biggest piece of content on the page.

is_dofollow1 unitboolean

The link has no special nofollow attribute.

is_form1 unitboolean

The link was found in a form HTML tag.

is_frame1 unitboolean

The link was found in an iframe HTML tag.

is_image1 unitboolean

The link is a regular link that has an image inside their href attribute.

is_lost1 unitboolean

The link currently does not exist anymore.

is_new1 unitboolean

The link was discovered on the last crawl.

is_nofollow1 unitboolean

The link or the referring page has the nofollow attribute set.

is_redirect1 unitboolean

The link pointing to your target via a redirect.

is_redirect_lost1 unitboolean

The redirected link currently does not exist anymore.

is_root_source1 unitboolean

The referring domain name is a root domain name.

is_root_target1 unitboolean

The target domain name is a root domain name.

is_rss1 unitboolean

The link was found in an RSS feed.

is_spam1 unitboolean

Indicates whether the backlink comes from a known spammy domain.

is_sponsored1 unitboolean

The link has the Sponsored attribute set in the referring page HTML.

is_text1 unitboolean

The link is a standard href hyperlink.

is_ugc1 unitboolean

The link has the User Generated Content attribute set in the referring page HTML.

js_crawl1 unitboolean

The link was discovered after executing javascript and rendering the page.

languages1 unitarray<string>

The languages listed in the referring page metadata or detected by the crawler to appear in the HTML.

last_seen1 unitstring (date-time) or null

The date we discovered that the link was lost.

last_visited1 unitstring (date-time)

The date we last verified a live link to your target page.

link_group_count1 unitinteger

The number of backlinks that were grouped together based on the aggregation parameter. This field cannot be used with aggregation 'all'.

link_type1 unitstring

The kind of the backlink.

Allowed values:redirectframetextformcanonicalalternaterssimage
linked_domains_source_domain1 unitinteger

The number of unique root domains linked from the referring domain.

linked_domains_source_page1 unitinteger

The number of unique root domains linked from the referring page.

linked_domains_target_domain1 unitinteger

The number of unique root domains linked from the target domain.

links_external1 unitinteger

The number of external links from the referring page.

links_internal1 unitinteger

The number of internal links from the referring page.

lost_reason1 unitstring or null

The reason the link was lost during the last crawl.

Allowed values:removedfromhtmlnotcanonicalnoindexpageredirectedpageerrorlostredirectnotfoundnull
name_source1 unitstring

The complete referring domain name, including subdomains.

name_target1 unitstring

The complete target domain name, including subdomains.

noindex1 unitboolean

The referring page has the noindex meta attribute.

page_category_source1 unitstring or null

Comma-separated list of AI-predicted hierarchical category paths for the referring page. Each value is a slash-prefixed path (e.g. /Business_and_Industrial/Advertising_and_Marketing/Marketing). See Page type and category classifications for the taxonomy and filtering examples.

page_size1 unitinteger

The size in bytes of the referring page content.

page_type_source1 unitstring or null

Comma-separated list of AI-predicted hierarchical page type paths for the referring page. Each value is a slash-prefixed path (e.g. /Article/How_to). See Page type and category classifications for the taxonomy and filtering examples.

port_source1 unitinteger

The network port of the referring page URL.

port_target1 unitinteger

The network port of the target page URL.

positions1 unitinteger

The number of keywords that the referring page ranks for in the top 100 positions.

powered_by1 unitarray<string>

Web technologies used to build and serve the referring page content.

redirect_code1 unitinteger or null

The HTTP status code of a referring page pointing to your target via a redirect.

redirect_kind1 unitarray<integer>

The HTTP status codes returned by the target redirecting URL or redirect chain.

refdomains_source5 unitsinteger

The number of unique referring domains linking to the referring page.

refdomains_source_domain5 unitsinteger

The number of unique referring domains linking to the referring domain.

refdomains_target_domain5 unitsinteger

The number of unique referring domains linking to the target domain.

root_name_source1 unitstring

The root domain name of the referring domain, not including subdomains.

root_name_target1 unitstring

The root domain name of the target domain, not including subdomains.

snippet_left1 unitstring

The snippet of text appearing just before the link.

snippet_right1 unitstring

The snippet of text appearing just after the link.

source_page_author1 unitstring or null

The author of the referring page.

source_page_publish_date1 unitstring (date) or null

the date we identified the page was published

title1 unitstring

The html title of the referring page.

tld_class_source1 unitstring

The top level domain class of the referring domain.

Allowed values:govedunormal
tld_class_target1 unitstring

The top level domain class of the target domain.

Allowed values:govedunormal
traffic10 unitsinteger

The referring page's estimated monthly organic traffic from Google.

traffic_domain10 unitsinteger

The referring domain's estimated monthly organic traffic from Google.

url_from1 unitstring (url)

The URL of the page containing a link to your target.

url_from_plain1 unitstring

The referring page URL optimized for use as a filter.

url_rating_source1 unitnumber (float)

The strength of the referring page's backlink profile compared to the others in our database on a 100-point scale.

url_redirect1 unitarray<string (url)>

A redirect chain the target URL of the link points to.

url_redirect_with_target1 unitarray<string>

The target URL of the link with its redirect chain.

url_to1 unitstring (url)

The URL the backlink points to.

url_to_plain1 unitstring

The target page URL optimized for use as a filter.