Google Search Console
Get Search Console Performance
Read your site's measured clicks, impressions, click-through rate and average position from Google Search Console, by query, page, country, device or date, and compare two periods.
Endpoint
Parameters
| Name | Type | Required | Note |
|---|---|---|---|
| identifieraccount · required | account | required | — |
| siteUrlstring · required | string | required | Pick a property, or type it as Search Console names it: sc-domain:example.com for a Domain property, or the full address with the trailing slash, such as https://www.example.com/, for a URL-prefix property. |
| rangestring · optional | string | optional | A period ending three days ago, where complete data ends. Ignored when a start and end date are given. One of: Default: |
| startDatestring · optional | string | optional | First day, written YYYY-MM-DD, in Pacific Time. Give it together with End date. Example: |
| endDatestring · optional | string | optional | Last day, written YYYY-MM-DD, included. Example: |
| dimensionsarray · optional | array | optional | What each row is. Several give one row per combination. Leave empty for one row of totals for the property. One of: |
| filtersrepeating-group · optional | repeating-group | optional | Conditions a row must all pass, for example Page contains /blog/. A country is its three-letter code (usa, gbr, fra); a device is DESKTOP, MOBILE or TABLET. |
| compareTostring · optional | string | optional | Also read an earlier period and return the change for each row. Cannot be combined with Group by Date. One of: Default: |
| compareStartDatestring · optional | string | optional | First day of a comparison period of your own, YYYY-MM-DD. Give it together with Comparison end date. Example: |
| compareEndDatestring · optional | string | optional | Last day of that comparison period, YYYY-MM-DD. Example: |
| sortBystring · optional | string | optional | Default: clicks, highest first (by date: oldest first). With a comparison: change in clicks, largest losses first. One of: |
| sortDirectionstring · optional | string | optional | For a change, ascending puts losses first and descending puts gains first. For position, ascending is best first. One of: |
| limitnumber · optional | number | optional | Most rows to return, 1 to 1000. Default 50. Default: |
| offsetnumber · optional | number | optional | Rows to skip, to read the next page. |
| searchTypestring · optional | string | optional | Which Google results to report on. One of: Default: |
| dataStatestring · optional | string | optional | Complete days only, or also the newest days, which Google may still revise. One of: Default: |
Response schema
{
"type": "object",
"properties": {
"rows": {
"type": "array",
"description": "Each row: its dimension values by name, then clicks, impressions, ctr (0 to 1) and position (average, 1 is the top). With a comparison also previousClicks, previousImpressions, previousCtr, previousPosition, clicksChange, impressionsChange, ctrChange and positionChange (positive means it moved down)"
},
"notes": {
"type": "array",
"description": "Limits of this answer worth repeating to the reader"
},
"source": {
"type": "string",
"description": "Always Google Search Console"
},
"endDate": {
"type": "string",
"description": "Last day covered, YYYY-MM-DD"
},
"hasMore": {
"type": "boolean",
"description": "True when more rows may follow; read on with nextOffset"
},
"siteUrl": {
"type": "string"
},
"measured": {
"type": "boolean",
"description": "True: these are Google's recorded numbers for the property, not estimates"
},
"rowCount": {
"type": "number"
},
"startDate": {
"type": "string",
"description": "First day covered, YYYY-MM-DD, Pacific Time"
},
"totalRows": {
"type": "number",
"description": "Rows found before Limit, when all rows were read"
},
"dimensions": {
"type": "array"
},
"nextOffset": {
"type": "number"
},
"searchType": {
"type": "string"
},
"comparedWith": {
"type": "object",
"description": "The earlier period (startDate, endDate), when two periods were compared"
}
}
}