Site Explorer
Metrics by country
Changed onget/site-explorer/metrics-by-country
Request
- Base URLhttps://api.ahrefs.com/v3
- URLhttps://api.ahrefs.com/v3/site-explorer/metrics-by-country
- AuthHTTP bearer
Query parameters
selectstring
A comma-separated list of columns to return. See response schema for valid column identifiers.
limitinteger
The number of results to return.
datestring date required
A date to report metrics on in YYYY-MM-DD format.
mode'exact' | 'prefix' | 'domain' | 'subdomains'
The scope of the target.
targetstring url required
The target of the search: a domain or a URL.
portfolio_idinteger
The unique identifier of the portfolio. When provided, it takes precedence over target.
protocol'both' | 'http' | 'https'
The protocol of your target.
volume_mode'monthly' | 'average'
The search volume calculation mode: monthly or average. It affects volume, traffic, and traffic value.
traffic_mode'static' | 'adaptive'
The organic traffic calculation mode: static or adaptive. It affects organic traffic and traffic value.
output'json' | 'csv' | 'xml' | 'php'
The output format.
Response
OK
Changes
- info
added the new optional
queryrequest parameterportfolio_id
- info
- info
added the new optional
queryrequest parameterlimit
- info