searchconsole.searchanalytics.query
POST Query your data with filters and parameters that you define. Returns zero or more rows grouped by the row keys that you define. You must define a date range of one or more days. When date is one of the group by values, any days without data are omitted from the result list. If you need to know which
| Parameter | Type | Required | Repeated | Location | Description | Enum values |
|---|---|---|---|---|---|---|
siteUrl | string | yes | — | path | The site's URL, including protocol. For example: `http://www.example.com/`. | — |
https://www.googleapis.com/auth/webmasters.readonly least privilege 2 scopes
https://www.googleapis.com/auth/webmasters https://www.googleapis.com/auth/webmasters.readonly
grr searchconsole searchanalytics query --site-url <site-url> --body-file ./body.json