viakite
Dashboard

API/Reports/Google Search queries and pages

Google Search queries and pages

GET/v1/projects/{project}/analytics/search

What Search Console reported about the site in the range, in whole days of the project's time zone: the totals (Google's own, which count what the rows leave out for privacy), the totals of each day, and the rows grouped by dimension, most clicked first. With compare, the comparison's totals and each row's measures in it. Reads what was imported, also after disconnecting.

Secret keyNeeds analytics.viewus.api.vk.viabio.me

Path parameters

projectstringrequired
The project's id (prj_…).

Query parameters

dimensionstring
What the rows are grouped by; query when not given. Countries are ISO 3166-1 alpha-3 codes (USA, IND).
querypagecountrydevice
presetstring
todayyesterday7d30d90dthis_monthlast_monththis_yearall
fromstring
A date (2026-11-01) or an RFC 3339 time.
tostring
A date (included) or an RFC 3339 time (excluded).
comparestring
Compare with the period before or the year before.
previous_periodprevious_year
compare_fromstring
A custom comparison's first day.
compare_tostring
A custom comparison's last day.
limitinteger1–1000
How many rows; 100 when not given.

Responses

The report.

dimensionstringrequired
querypagecountrydevice
totalsobjectrequired
Show 4 fields
clicksintegerrequired
impressionsintegerrequired
ctrnumberrequired
Clicks ÷ impressions, 0 to 1.
positionnumberrequired
The average position, weighed by impressions; 1 is the top, 0 without impressions.
previousobject
Show 4 fields
clicksintegerrequired
impressionsintegerrequired
ctrnumberrequired
Clicks ÷ impressions, 0 to 1.
positionnumberrequired
The average position, weighed by impressions; 1 is the top, 0 without impressions.
seriesany[]required
dataany[]required
date_rangeobjectrequired
A resolved range [from, to) in UTC.
Show 2 fields
fromstring · date-timerequired
A time in UTC, ISO 8601.
tostring · date-timerequired
A time in UTC, ISO 8601.
compare_rangeobject
A resolved range [from, to) in UTC.
Show 2 fields
fromstring · date-timerequired
A time in UTC, ISO 8601.
tostring · date-timerequired
A time in UTC, ISO 8601.
Example response
1{
2 "dimension": "query",
3 "totals": {
4 "clicks": 1,
5 "impressions": 1,
6 "ctr": 1.5,
7 "position": 1.5
8 },
9 "previous": {
10 "clicks": 1,
11 "impressions": 1,
12 "ctr": 1.5,
13 "position": 1.5
14 },
15 "series": [
16 {
17 "clicks": 1,
18 "impressions": 1,
19 "ctr": 1.5,
20 "position": 1.5,
21 "day": "2026-11-21"
22 }
23 ],
24 "data": [
25 {
26 "clicks": 1,
27 "impressions": 1,
28 "ctr": 1.5,
29 "position": 1.5,
30 "value": "string",
31 "previous": {
32 "clicks": 1,
33 "impressions": 1,
34 "ctr": 1.5,
35 "position": 1.5
36 }
37 }
38 ],
39 "date_range": {
40 "from": "2026-11-21T09:30:00Z",
41 "to": "2026-11-21T09:30:00Z"
42 },
43 "compare_range": {
44 "from": "2026-11-21T09:30:00Z",
45 "to": "2026-11-21T09:30:00Z"
46 }
47}

Errors

Every error has the same shape: error.code, a message for people and details.

StatusCode
422validation_error
503clickhouse_not_configured