CTR by position
API + MCPGET/v3/gsc/ctr-by-position
Requests to this endpoint are free and do not consume any API units.
Query parameters
project_idinteger
Project ID. Required when portfolio_id is not provided.
portfolio_idinteger
Portfolio ID. When provided, aggregates data across all GSC-connected projects in the portfolio.
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.
countrystring
A two-letter country code (ISO 3166-1 alpha-2).
Allowed values:adaeafagaialamaoarasatauawazba…
devicestring
Filter by device type (DESKTOP, MOBILE, TABLET). If not specified, all devices are included.
Allowed values:desktopmobiletablet
outputstring
The output format.
Allowed values:jsoncsvxmlphp
Responses
metricsarray<object>
average_ctr_percentnumber (float)
keyword_countinteger
positioninteger
errorstring
errorstring
errorstring
errorstring
errorstring