All Collections
API
Why do I get different results in the Ahrefs interface vs. the API?
Why do I get different results in the Ahrefs interface vs. the API?

Find out why results you get via API may differ from those you see with Site Explorer report

Anna avatar
Written by Anna
Updated over a week ago

This article references the legacy version of our API (v2). Our newest API version (v3) was released on Sep. 7, 2022 and is available for Enterprise users.

Note: Legacy API plans can no longer be purchased, and the legacy API is scheduled to sunset on 1st March 2024. API via Integrations will also no longer work by this date. The new API is available now, and only on the Enterprise plan.

Please feel free to contact [email protected] for more details.


In order not to get confused by different stats reported, make sure you are using the same parameters, modes and targets for your queries:

API:

Site Explorer:

In above examples I analysed target ahrefs.com in 'subdomains' mode and got the same numbers for both requests.

Moreover, it is worth mentioning that API data is currently available for Live index only, so consider that when comparing results as well.

Did this answer your question?