API Documentation

Domain authority API documentation for Seo Era: check Ahrefs DR, Moz DA, Majestic TF and Semrush AS in bulk with a single REST endpoint — up to 100 domains per request, fresh data every call.

Authentication

All API requests require an API key in the Authorization header:

Authorization: Bearer YOUR_API_KEY

Get your API key from the dashboard after signing up.

Subscribed via RapidAPI? Send your RapidAPI key in the X-RapidAPI-Key header as shown in the RapidAPI console — no Bearer token needed.

Base URL

https://api.seoera.io

Endpoints

Full Authority (DR, DA, TF, AS)

POST

Get all four metrics in a single request.

/v1/authority

Request Body

{
  "domains": ["example.com", "google.com"]
}

Response

{
  "request_id": "req_abc123",
  "results": [
    {
      "domain": "example.com",
      "metrics": {
        "dr": 42,
        "da": 45,
        "tf": 21,
        "as": 67
      },
      "errors": {}
    }
  ],
  "summary": {
    "submitted": 2,
    "unique": 2,
    "successful_metrics": 8,
    "failed_metrics": 0,
    "charged_credits": 2
  },
  "attribution": {
    "dr": "Domain Rating by Ahrefs"
  }
}

Core Authority (DR, DA, TF)

POST

Get DR, DA, and TF in a single request (bundled pricing).

/v1/authority/core

Domain Rating (DR)

POST
/v1/dr

Domain Authority (DA)

POST
/v1/da

Trust Flow (TF)

POST
/v1/tf

Rate Limiting

  • 100 requests per minute per API key (1,000 domains per minute)
  • Maximum 100 domains per request
  • Every response includes X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset headers
  • A 429 response includes Retry-After (seconds) and is never charged

Idempotency

To prevent duplicate charges, include an Idempotency-Key header:

Idempotency-Key: unique-request-id

Requests with the same idempotency key (within 24 hours) return the original result with an Idempotent-Replayed: true header, without charging again. Keys are private to your API key. Reusing a key for a different endpoint or domain list returns 422; retrying while the first request is still running returns 409. If a request fails, its key is released so you can safely retry.

Error Codes

CodeErrorDescription
400invalid_request / invalid_jsonMalformed JSON or invalid parameters
400invalid_domainsOne or more entries are not valid domains (listed in invalid_domains); nothing is charged
401missing_auth / invalid_keyMissing, invalid or revoked API key
402insufficient_creditsBalance is below the number of unique domains; checked before any lookup
409request_in_progressA request with this Idempotency-Key is still running
413payload_too_largeRequest body is too large
422idempotency_key_reusedIdempotency-Key was used for a different request
429rate_limitedRate limit exceeded; see Retry-After
500server_errorInternal server error; quote the request_id when contacting support
503service_unavailableService temporarily unavailable

Check domain authority with curl, JavaScript or Python

CURL
curl -X POST https://api.seoera.io/v1/authority/core \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"domains": ["example.com"]}'