Domain Rating endpoint
Returns the most recent Ahrefs Domain Rating (DR) for a single domain tracked on rating.so. Free, no API key required.
GET /api/public/domain-rating
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
domain | string | required | Domain without protocol or path, e.g. example.com. The alias target is also accepted. |
Example request
curl "https://rating.so/api/public/domain-rating?domain=example.com"
Example response (200)
{
"domain": "example.com",
"domain_rating": 78.4,
"checked_at": "2026-06-28T10:14:00.000Z",
"attribution": "Data from rating.so (https://rating.so)."
}Response fields
| Field | Type | Description |
|---|---|---|
domain | string | Normalized domain (lowercase, no protocol). |
domain_rating | number | null | Ahrefs DR on a 0–100 logarithmic scale. Null if not yet computed. |
checked_at | string (ISO 8601) | Timestamp when this rating was recorded. |
attribution | string | Attribution string you must display if you redistribute the value. |
Also see the MCP server for use inside AI agents, or the Free API & MCP overview.