Domain rating free | Ahrefs for Developers**Authentication required starting August 10th, 2026**<br>>This endpoint currently works without authentication, but from August 10th, 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.<br>>You can migrate now — there's no need to wait for the switch date:<br>>1. [Sign up](https://ahrefs.com/) for a free Ahrefs account (if you don't have one)<br>>2. Generate an API key in [Account settings → API keys](https://app.ahrefs.com/account/api-keys)<br>>3. Add it to your requests: `Authorization: Bearer `
>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/)."/>**Authentication required starting August 10th, 2026**<br>>This endpoint currently works without authentication, but from August 10th, 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.<br>>You can migrate now — there's no need to wait for the switch date:<br>>1. [Sign up](https://ahrefs.com/) for a free Ahrefs account (if you don't have one)<br>>2. Generate an API key in [Account settings → API keys](https://app.ahrefs.com/account/api-keys)<br>>3. Add it to your requests: `Authorization: Bearer `
>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/)."/>**Authentication required starting August 10th, 2026**<br>>This endpoint currently works without authentication, but from August 10th, 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.<br>>You can migrate now — there's no need to wait for the switch date:<br>>1. [Sign up](https://ahrefs.com/) for a free Ahrefs account (if you don't have one)<br>>2. Generate an API key in [Account settings → API keys](https://app.ahrefs.com/account/api-keys)<br>>3. Add it to your requests: `Authorization: Bearer `
>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/)."/><br>Search docs...⌘K
Products
Reference
API
Reference<br>IntroductionLimits consumptionFree test queriesAPI keys creation and managementParametersFilter syntaxChangelogAPI<br>Site Explorer
Keywords Explorer
Site Audit
Rank Tracker
SERP Overview
Batch Analysis
Subscription Information
Management
Brand Radar
Web Analytics
GSC Insights
Social Media
Public
Domain rating free<br>API + MCP<br>GET/v3/public/domain-rating-free
Authentication required starting August 10th, 2026
This endpoint currently works without authentication, but from August 10th, 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
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<br>targetstring (url)Required<br>The target of the search: a domain or a URL.
outputstring<br>The output format.
Allowed values:jsoncsvxmlphp
Responses<br>200400401403429500<br>domain_ratingobject<br>domain_ratingnumber (float)<br>Current strength of your target's backlink profile compared to the other websites in our database on a 100-point logarithmic scale.
licensestring (url)<br>URL of the license terms that apply to use of Domain Rating data.
warningstring or null<br>Warning about unauthenticated access.
errorstring
errorstring
errorstring
errorstring
errorstring
Parameters<br>targetRequired<br>output
API keyRequired<br>Send
cURLPythonNode.jsGoResponse<br>Request
curl "https://api.ahrefs.com/v3/public/domain-rating-free" \<br>-H "Accept: application/json"
import requests
url = "https://api.ahrefs.com/v3/public/domain-rating-free"<br>headers = {<br>"Accept": "application/json"
response = requests.get(url, headers=headers)<br>print(response.json())
const response = await fetch("https://api.ahrefs.com/v3/public/domain-rating-free", {<br>method:...