Ahrefs API v2 has been deprecated
This documentation is for the legacy version of our API (v2), which was fully discontinued on November 1, 2025. All remaining API v2 integrations and apps built on it no longer have access to Ahrefs data.
To build new integrations, please use Ahrefs API v3 and the Ahrefs Connect program.
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
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
}
]
}