Data APIs / SEO metrics

SEO Data API — domain authority, backlinks, organic keywords

Ahrefs Domain Rating plus organic-search overview and backlink counts from a major SEO index — the domain-level SEO metrics you would otherwise pull from two dashboards, as three endpoints. Live Google results and AI Overviews have their own APIs.

From 1 credit per call · cache hits free · failed calls refunded · no card for the free tier

One request, structured data and markdown

Every endpoint accepts format=json, markdown, or both. Use the JSON to filter and store; drop the markdown straight into a prompt.

  • Domain Rating (Ahrefs) with license attribution
  • Organic keywords, estimated organic traffic, and organic rank
  • Backlink and referring-domain counts
  • Domain input normalised from any URL
  • Cached 24 hours — repeat lookups are free
request
curl 'https://scrapewhale.dev/api/v1/seo/authority?domain=nike.com&format=json' \
  -H 'Authorization: Bearer <api-key>'
response · json
{
  "extractor": "domain-rating",
  "creditsCharged": 1,
  "data": {
    "domain_rating": {
      "domain_rating": 91.0,
      "license": "http://ahrefs.com/legal/domain-rating-license"
    }
  }
}

Endpoints

3 endpoints in this family. Full parameter reference and a try-it console are in the API docs.

get/api/v1/seo/authority1 credit

Domain authority (Ahrefs Domain Rating)

The domain's Ahrefs Domain Rating (0–100). The response includes Ahrefs' license link, which must be preserved when the metric is displayed.

domain *
The domain to rate. Accepts a bare domain or a full URL.
get/api/v1/seo/organic1 credit

Organic search footprint

The domain's organic-search footprint from a major SEO index (US database): number of organic keywords it ranks for, estimated monthly organic visits, traffic cost (what the same traffic would cost in Google Ads, USD/month), and organic rank. A domain the index has never seen fails with empty_result (refunded).

domain *
The domain to analyze. Accepts a bare domain or a full URL.

What teams use it for

Bulk domain qualification

Score 1,000 prospects by DR and organic traffic in one script.

Link-prospect filtering

Drop low-authority domains before outreach.

Competitor benchmarking

Track DR, organic traffic, and referring domains for your category monthly.

Frequently asked questions