refips - Ahrefs API

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