refips - Ahrefs API

Ahrefs API v3 is releasing soon

Since API v3 for Enterprise plans is coming soon, API v2 is being discontinued and you can no longer subscribe to it. If you already have an active API v2 subscription, it will still work as before.
Please contact support if you have questions.

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
    }
  ]
}