Domain metrics
Returns authority metrics for one or more domains - domain rating, total backlinks, referring domains and spam score. Submit up to 10 domains per request. Recently-queried domains are served from cache and cost no credits.
POST
/domains/metricsBody parameters
| Parameter | Type | Description |
|---|---|---|
domainsrequired | string[] | Domains to look up (max 10), e.g. `["ahrefs.com", "semrush.com"]`. |
fetch_uncached | boolean | If `true`, fetch fresh metrics for domains not in cache (consumes credits). If `false`, only cached results are returned. Defaults to `true`. |
Example request
cURL
curl -X POST "https://api.oneclickseo.ai/v1/domains/metrics" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "domains": ["ahrefs.com", "semrush.com"] }'Response
200Domain metrics
Response
{
"data": [
{
"domain": "ahrefs.com",
"domain_rating": 91,
"backlinks": 28400000,
"referring_domains": 84200,
"spam_score": 2,
"fetched_at": "2026-06-14T22:10:00Z"
}
],
"meta": { "request_id": "req_8f2c1a", "credits_charged": 1 }
}Response fields
| Parameter | Type | Description |
|---|---|---|
domain | string | The normalised domain. |
domain_rating | integer | Domain rating / authority, 0-100. |
backlinks | integer | Total known backlinks to the domain. |
referring_domains | integer | Count of unique referring domains. |
spam_score | integer | Spam score, 0-100 (higher is riskier). |
fetched_at | string | ISO-8601 timestamp of when the metrics were collected. |
Credit cost
You are charged 1 credit per domain that has to be fetched fresh. Domains served from cache are free; `meta.credits_charged` reflects only the uncached fetches.