Domain rating free
API + MCPAuthentication required starting September 1, 2026
This endpoint currently works without authentication, but from September 1, 2026 all requests must include an API key. API keys are free. The endpoint remains completely free and does not consume API units. Unauthenticated requests will receive 401 Unauthorized after this date.
You can migrate now — there's no need to wait for the switch date:
- Sign up for a free Ahrefs account (if you don't have one)
- Generate an API key in Account settings → API keys
- Add it to your requests:
Authorization: Bearer <token>
Requests to this endpoint are free and do not consume any API units.
Use of this data is subject to the Domain Rating License at http://ahrefs.com/legal/domain-rating-license. Attribution required: "Domain Rating by Ahrefs" (https://ahrefs.com/).
Query parameters
The target of the search: a domain or a URL.
The output format.
Responses
Current strength of your target's backlink profile compared to the other websites in our database on a 100-point logarithmic scale.
URL of the license terms that apply to use of Domain Rating data.
Warning about unauthenticated access.