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/metrics

Body parameters

ParameterTypeDescription
domainsrequiredstring[]Domains to look up (max 10), e.g. `["ahrefs.com", "semrush.com"]`.
fetch_uncachedbooleanIf `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
ParameterTypeDescription
domainstringThe normalised domain.
domain_ratingintegerDomain rating / authority, 0-100.
backlinksintegerTotal known backlinks to the domain.
referring_domainsintegerCount of unique referring domains.
spam_scoreintegerSpam score, 0-100 (higher is riskier).
fetched_atstringISO-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.