Metrics history
Changed onRequest
- Base URLhttps://api.ahrefs.com/v3
- URLhttps://api.ahrefs.com/v3/site-explorer/metrics-history
- AuthHTTP bearer
Query parameters
A comma-separated list of columns to return. See response schema for valid column identifiers.
The scope of the target.
The target of the search: a domain or a URL.
The unique identifier of the portfolio. When provided, it takes precedence over target.
The protocol of your target.
A two-letter country code (ISO 3166-1 alpha-2).
The start date of the historical period in YYYY-MM-DD format.
The end date of the historical period in YYYY-MM-DD format.
The time interval used to group historical data.
The search volume calculation mode: monthly or average. It affects volume, traffic, and traffic value.
The organic traffic calculation mode: static or adaptive. It affects organic traffic and traffic value.
The output format.
Response
OK
Changes
- info
added the new optional
queryrequest parameterportfolio_id
- info
- breaking
for the
queryrequest parametertraffic_mode, default value was changed fromstatictoadaptive
- breaking