Site Explorer
Refdomains history
Changed onget/site-explorer/refdomains-history
Request
- Base URLhttps://api.ahrefs.com/v3
- URLhttps://api.ahrefs.com/v3/site-explorer/refdomains-history
- AuthHTTP bearer
Query parameters
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.
date_fromstring date required
The start date of the historical period in YYYY-MM-DD format.
date_tostring date
The end date of the historical period in YYYY-MM-DD format.
history_grouping'daily' | 'weekly' | 'monthly'
The time interval used to group historical data.
output'json' | 'csv' | 'xml' | 'php'
The output format.
Response
OK
Changes
- info
added the new optional
queryrequest parameterportfolio_id
- info