Rank Tracker
Competitors metrics
Requests to this endpoint are free and do not consume any API units.
get/rank-tracker/competitors-stats
Request
- Base URLhttps://api.ahrefs.com/v3
- URLhttps://api.ahrefs.com/v3/rank-tracker/competitors-stats
- AuthHTTP bearer
Query parameters
selectstring required
A comma-separated list of columns to return. See response schema for valid column identifiers.
volume_mode'monthly' | 'average'
The search volume calculation mode: monthly or average. It affects volume, traffic, and traffic value.
project_idinteger required
The unique identifier of the project. You can find it in the URL of your Rank Tracker project in Ahrefs: https://app.ahrefs.com/rank-tracker/overview/#project_id#
device'desktop' | 'mobile' required
Choose between mobile and desktop rankings.
datestring date required
A date to report metrics on in YYYY-MM-DD format.
output'json' | 'csv' | 'xml' | 'php'
The output format.
Response
OK
Changes
No recorded changes to this operation across all 26 revisions of this API.