refips - Ahrefs API

Ahrefs API v2 has been deprecated

This documentation is for the legacy version of our API (v2), which was discontinued on March 1st, 2024. Existing API v2 integration apps are not affected and continue to work as before, but new submissions are no longer accepted.

To switch to API 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
    }
  ]
}