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 - refips
Returns the referring IP addresses that have at least one link to the target.
Each request to refips costs 1 row.
Each result in the response costs 1 row.
Using 'where' costs 5 rows.
Using 'having' costs 5 rows.
• refdomains
Column | Type | Where | Having | Description |
---|---|---|---|---|
refip | string | + | + | The referring IP address that links to the target. |
refdomain | string | + | + | The domain name for the referring IP address. |
backlinks | int | + | + | The number of backlinks from the referring IP address with particular domain name. |
Examples
Request
https://apiv2.ahrefs.com?from=refips&target=ahrefs.com&mode=domain&limit=5&order_by=backlinks%3Adesc&output=json
Response
{ "refdomains":[ { "refip":"204.225.190.144", "refdomain":"nydailynews.com", "backlinks":960541 }, { "refip":"204.225.190.144", "refdomain":"torontosun.com", "backlinks":260570 }, { "refip":"161.111.47.11", "refdomain":"webometrics.info", "backlinks":246135 }, { "refip":"204.225.190.144", "refdomain":"enidnews.com", "backlinks":126253 }, { "refip":"65.254.53.187", "refdomain":"netinfo.org.ua", "backlinks":120625 } ] }