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_KEYGet 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.ioEndpoints
Full Authority (DR, DA, TF, AS)
POSTGet all four metrics in a single request.
/v1/authorityRequest 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)
POSTGet DR, DA, and TF in a single request (bundled pricing).
/v1/authority/coreDomain Rating (DR)
POST/v1/drDomain Authority (DA)
POST/v1/daTrust Flow (TF)
POST/v1/tfRate 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-idRequests 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
| Code | Error | Description |
|---|---|---|
| 400 | invalid_request / invalid_json | Malformed JSON or invalid parameters |
| 400 | invalid_domains | One or more entries are not valid domains (listed in invalid_domains); nothing is charged |
| 401 | missing_auth / invalid_key | Missing, invalid or revoked API key |
| 402 | insufficient_credits | Balance is below the number of unique domains; checked before any lookup |
| 409 | request_in_progress | A request with this Idempotency-Key is still running |
| 413 | payload_too_large | Request body is too large |
| 422 | idempotency_key_reused | Idempotency-Key was used for a different request |
| 429 | rate_limited | Rate limit exceeded; see Retry-After |
| 500 | server_error | Internal server error; quote the request_id when contacting support |
| 503 | service_unavailable | Service temporarily unavailable |
Check domain authority with curl, JavaScript or Python
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"]}'