Ahrefs Site Explorer Metrics History

API docs
https://api.sandbase.ai/v1/api/ahrefs/site-explorer-metrics-history

Track a target's organic and paid traffic estimates over time.

Price
From $0.013545USD / call
Method
POST
Response
Async JSON
Parameters
2 required · 5 optional

Playground

Input
The target of the report: a domain ('example.com') or a URL ('https://example.com/page').
Start date of the historical period in YYYY-MM-DD format.
Scope of the target: exact (this URL only), prefix (URLs starting with the target), domain (the domain without subdomains), or subdomains (default — the domain and all its subdomains).
Two-letter country code (ISO 3166-1 alpha-2), e.g. 'us'.
End date of the historical period in YYYY-MM-DD format. Defaults to today.
Protocol of the target: both (default), http, or https.
Time bucket size for history rows: daily, weekly, or monthly (default). Each bucket is one charged row.
OutputReady

Your output will appear here

Complete the inputs, then click Run.

API README

Ahrefs Site Explorer Metrics History

Track a target's organic and paid traffic estimates over time.

Pricing

  • Inspect reference unit price: $0.013545 USD per result.
  • Final settlement uses the provider-reported actual cost after strict validation; the reference price is not used to infer the final charge.

Explore more

Related APIs

All APIs
APIPriceResponse
AhrefsFrom $0.013545 per callAsync JSON
AhrefsFrom $0.013545 per callAsync JSON
Ahrefs$0.08 per callJSON
AhrefsFrom $0.01419 per callAsync JSON
AhrefsFrom $0.02709 per callAsync JSON
AhrefsFrom $0.01419 per callAsync JSON

Questions

FAQ

How do I use the Ahrefs Site Explorer Metrics History API?

Send a POST request to https://api.sandbase.ai/v1/api/ahrefs/site-explorer-metrics-history with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

How much does the Ahrefs Site Explorer Metrics History API cost?

From $0.013545 per call, billed from your SandBase balance. You are only charged for calls you make; there is no subscription.

What parameters does the Ahrefs Site Explorer Metrics History API accept?

Required: target (string) and date_from (string). Optional: scope (one of exact, prefix, domain, subdomains), country (string), date_to (string), protocol (one of both, http, https) and history_grouping (one of daily, weekly, monthly). The Parameters table and the Playground on this page list every field.

What does the Ahrefs Site Explorer Metrics History API return?

A JSON result. This endpoint runs asynchronously, so the response tells you how to fetch the finished result.

Do I need a Ahrefs developer account or API key?

No. Ahrefs Site Explorer Metrics History runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for Ahrefs API access separately.