Performance by position
Requests to this endpoint are free and do not consume any API units.
Request
- Base URLhttps://api.ahrefs.com/v3
- URLhttps://api.ahrefs.com/v3/gsc/performance-by-position
- AuthHTTP bearer
Query parameters
Project ID. Required when portfolio_id is not provided.
Portfolio ID. When provided, aggregates data across all GSC-connected projects in the portfolio.
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 type of search results to return (web, image, video, news).
A two-letter country code (ISO 3166-1 alpha-2).
Filter by device type (DESKTOP, MOBILE, TABLET). If not specified, all devices are included.
Supported fields:
url
type: url
Filter is a JSON string that represents a boolean expression, it should follow the following structure:
<bool_filter> ::= { "and" : <bool_filter>+ }
| { "or" : <bool_filter>+ }
| { "not" : <bool_filter> }
| <expr>
<expr> ::= {
"field" : <dimension|metric>,
? "is": <condition>,
}
<condition> ::= [ "eq", <value> ]
| [ "neq", <value> ]
| [ "gt", <value> ]
| [ "gte", <value> ]
| [ "lt", <value> ]
| [ "lte", <value> ]
| [ "substring", <value> ]
| [ "isubstring", <value> ]
| [ "phrase_match", <value> ]
| [ "iphrase_match", <value> ]
| [ "prefix", <value> ]
| [ "suffix", <value> ]
The output format.
Response
OK
Changes
No recorded changes to this operation across all 26 revisions of this API.