refips - Ahrefs API

Ahrefs API v2 has been discontinued

This documentation is for the legacy version of our API (v2), which you can no longer subscribe to. If you already have an active API v2 subscription, it will still work as before. Read about our latest 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
    }
  ]
}