linked_domains - Ahrefs API

Ahrefs API v2 will stop working on March 1st, 2024

This documentation is for the legacy version of our API (v2), which has been discontinued. All active API v2 subscriptions will stop working on March 1st, 2024. Existing Integration apps will continue to work as before until further notice, but new submissions are no longer accepted.

To switch from API v2 to v3, please contact our Enterprise team. Read about API v3.

Documentation - linked_domains

Contains the external domains that the target has links to.

Each request to linked_domains costs 1 row.
Each result in the response costs 1 row.
Using 'where' costs 5 rows.
Using 'having' costs 5 rows.

domains

Column Type Where Having Description
domain_from string + Target of the request.
domain_to string + External domain that has links from the target.
links int + Number of external links from the target that link to the external domain.
unique_pages int + Number of unique pages from the target that link to the external domain.
domain_to_rating int + Domain Rating of the external domain.
domain_to_ahrefs_top int + Ahrefs rank of the external domain.

Examples



Request

https://apiv2.ahrefs.com?from=linked_domains&target=ahrefs.com&mode=domain&limit=3&output=json

Response

{
  "domains":[
    {
      "domain_from":"ahrefs.com",
      "domain_to":"negocioseninternet.com.ve",
      "links":2,
      "unique_pages":2,
      "domain_to_rating":46,
      "domain_to_ahrefs_top":34
    },
    {
      "domain_from":"ahrefs.com",
      "domain_to":"wedigg.co.uk",
      "links":1,
      "unique_pages":1,
      "domain_to_rating":50,
      "domain_to_ahrefs_top":36
    },
    {
      "domain_from":"ahrefs.com",
      "domain_to":"stokedseo.co.uk",
      "links":2,
      "unique_pages":2,
      "domain_to_rating":50,
      "domain_to_ahrefs_top":36
    }
  ]
}