Skip to main content
GET
Search keywords

Authorizations

Authorization
string
header
required

An API key that starts with cs_sk_, created under API and MCP, API keys. A key covers every site of its workspace or a chosen list, and carries permissions per resource (Analytics, Revenue and payments, Goals and events, Funnels, Sites, Notes, Alerts) and extras (Visitor details, Raw events export, Team members, Workspace name, See API keys, Manage API keys). A change acts for the key's creator, with their current role. A request outside them answers 403 naming the missing permission.

Path Parameters

siteId
string
required

The site's id, from GET /sites. demo is a public demo site.

Query Parameters

range
enum<string>

Preset period: today (today), yesterday (yesterday), 24h (last 24 hours), 7d (last 7 days), 30d (last 30 days), 90d (last 90 days), wtd (week to date), mtd (month to date), last_month (last month), ytd (year to date), 12m (last 12 months), all (all time). Defaults to 30d. Use either this or from and to.

Available options:
today,
yesterday,
24h,
7d,
30d,
90d,
wtd,
mtd,
last_month,
ytd,
12m,
all
from

Start of a custom period: a day, YYYY-MM-DD, inclusive, in the timezone; or an exact ISO-8601 timestamp with its offset, such as 2026-12-01T09:30:00Z. Requires to.

Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$
to

End of a custom period: a day, YYYY-MM-DD, inclusive, in the timezone; or an exact ISO-8601 timestamp with its offset (exclusive). Requires from.

Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$
timezone
string

IANA timezone the period's days and buckets are counted in, such as America/New_York. Defaults to the site's timezone.

Maximum string length: 64
compare
enum<string>

Also return the comparison period: "previous" (the period just before, same length), "year" (same period a year earlier) or "custom" (the days in compareFrom and compareTo). Defaults to none.

Available options:
previous,
year,
custom,
none
compareFrom
string<date>

First day of a custom comparison, YYYY-MM-DD, inclusive, in the site's timezone. Only with compare "custom"; requires compareTo.

Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$
compareTo
string<date>

Last day of a custom comparison, YYYY-MM-DD, inclusive, in the site's timezone. Only with compare "custom"; requires compareFrom.

Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$
filter
string[]

Narrow the data. Repeat the parameter to add filters; all must match. Format: dimension:op:value, for example country:is:DE. Dimensions: page, entry_page, exit_page, hostname, channel, source, referrer, utm_source, utm_medium, utm_campaign, utm_term, utm_content, country, region, city, browser, os, device, language, event, ai_assistant. Operators: is, is_not, contains.

Only queries that contain this text. Case does not matter.

Required string length: 1 - 200
sort
enum<string>
default:clicks

clicks (default), impressions, ctr, position or revenue (the estimate).

Available options:
clicks,
impressions,
ctr,
position,
revenue
dir
enum<string>

Default desc, except asc for position (1 is the top of Google's results).

Available options:
asc,
desc
limit
integer
default:50

How many queries to return (1 to 500, default 50).

Required range: 1 <= x <= 500
offset
integer
default:0

Queries to skip.

Required range: 0 <= x <= 100000

Response

Done.

Search keywords.

connected
boolean
currency
string
lastDay
string<date> | null
totals
object

Over every query that matches.

keywords
object[]
pagination
object

The one paging object every list carries. Ask for the next page with offset + limit while hasMore is true.