API reference
Read published Search Console data
POST /v1/query/search-console
The query IR of POST /v1/query, restricted to the Search Console profiles
(search-console.site_daily and search-console.page_daily), answered with the same
result envelope (QueryResult) plus a freshness footer. The request, its bounds
(10,000 rows, 5 MB, a 4 KiB body, a window of at most 28 days, no cursors) and its error
vocabulary are those of POST /v1/query; a profile of another connector is
400 invalid_query and nothing is read.
Only published, finalized days are read. A day is read only if report_heads names a
published run for it, and only if that head is finalized (settled); a day Google has
not finalized has no head, so a window that contains one is 409 data_incomplete (or
data_not_ready when no day is published) and names the missing dates. Nothing
unpublished, and nothing from a run that did not finish loading, is ever returned.
Metrics. clicks and impressions are sums. ctr is the summed clicks divided by
the summed impressions, never an average of row rates, and position is weighted by
impressions; each is null, never 0, when there are no impressions. A day Google
reported no rows for is not a zero: an empty page is dataState: no_reported_data.
page_daily rows are Google’s limited per-page detail and do not sum to the property’s
totals (provider_limited_detail in provenance.flags).
Source mode. sourceMode is the identity of the data path that served the result:
search_analytics_api, the Search Analytics API, one value per profile. It is
not dataState and not the window’s state. It is always present on this route.
Footer. freshness.label is Finalized daily data; checked daily.
freshness.lastCheckedAt is when the latest completed check of this site and profile
ended, and freshness.newestDate the newest date with a published, finalized head for
it, whatever the window asked for. Search Console data is not faster on a higher plan.
No data yet. The live extraction has not run on staging, so until it does a site has no
published day and every window is 409 data_not_ready, or 404 connection_unavailable
for a workspace with no selected property. Nothing here calls Google.
This route reads one site, because its freshness footer is one site’s: a body that
names sources, or account in dimensions, is 400 invalid_query (detail
invalid_sources) before a connection is looked up or anything is read. POST /v1/query
reads several sites with the same profiles.
Authorization is checked before the read and again before the response is released, so a key revoked while ClickHouse is in flight yields 401 and no data. Workspace headers are ignored: the workspace is the key’s own.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”object
The query IR v1 body of POST /v1/query, strict: an unknown field is refused. The
workspace is not a field; it is the API key’s own. A profile’s metrics, dimensions, allowed
dimension sets and longest window are not listed by any HTTP route yet; a request outside them is invalid_query. A profile’s metric is
computed from sums (a ratio is never an average of row ratios), and a metric that
cannot be summed over the requested dimensions or window is non_additive_metric.
GA4 coverage beyond sessions (ga4.users_daily, ga4.events_daily) is switched off on
this route in production (GA4_COVERAGE_SERVING and the deployment’s rollout row, the same shape):
403 serving_disabled before the body is validated or anything is read. The staging deployment
serves them since its run was recorded; ga4.sessions_daily is not affected. The account
is the numeric property id. Where they are on: the only dimension set is
[date] on the property’s own calendar; total_users counts distinct users per day and is
never summed across days (a request without date is 400 invalid_query); event_count and
key_events are sums; purchase_revenue is in the property’s currency, which the result
states in provenance.accounts[0].currency, never converted, and is 503 query_unavailable
when the pinned days name none or two. A window GA4 marked as thresholded publishes no new day:
a day no run has published makes the query 409 data_incomplete (or data_not_ready when no
day of the window is published) with the missing dates, and a day an earlier run published keeps
that earlier value. provenance.flags carries the profiles’ limitations:
bounded_to_date, provider_may_revise_recent_data, withheld_when_thresholded and
not_independently_reconciled.
Several accounts in one query (sources, GA4 and Search Console profiles only): name 2
to 25 distinct { connectionId, account } pairs instead of connectionId and accounts.
Every pair must be an active account of this workspace, or the whole request is
404 connection_unavailable; one account named under two connections is
400 invalid_query (detail invalid_sources), as are sources on another profile and a
list beside connectionId or accounts. Each pair is pinned as it would be alone, all or
nothing: a day one pair has not published makes the request 409, naming that date once.
Without the account dimension the accounts are summed (a ratio is recomputed from the
summed parts); a distinct count such as total_users is then 400 non_additive_metric,
accounts in two time zones are 409 timezone_conflict and money of two currencies is
409 currency_conflict, all before any analytics read. With account in dimensions,
each row is one account’s, in its own time zone and currency, and provenance.flags
carries account_local_dates when the zones differ. The same account dimension groups a
one-account request too. The 4 KiB body cap bounds how many long site URLs fit.
asOf and currency are not accepted in this version.
object
The dataset to read. Search Console profiles are accepted, but they have no ClickHouse view
yet, so a Search Console query cannot be answered today: a workspace with no Search Console
connection gets connection_unavailable. youtube.channel_daily is switched off on this
route in production and is answered 403 serving_disabled there (on in staging only); its account is the channel id
(UC and 22 characters). klaviyo.campaign_daily and klaviyo.flow_daily are
switched off on this route (KLAVIYO_SERVING) and are answered 403 serving_disabled; their
account is the Klaviyo account id. They are also profiles of the one MCP tool query_metrics, which lists them only while the Klaviyo MCP switch is on.
google-ads.campaign_daily is served (and is a profile of the MCP tool query_metrics): its account is the Google Ads customer id (ten digits), its money is in
the account’s currency (currency_code is a dimension) and its windows are at most 93 days.
hubspot.pipeline_snapshot_daily and salesforce.pipeline_snapshot_daily are switched off on this route
(CRM_SERVING) and are answered 403 serving_disabled; their account is the CRM account id (the HubSpot
portal id, the Salesforce organization id). They are also profiles of the one MCP tool query_metrics, which lists them only
while the CRM MCP switch is on.
shopify.sales_daily and shopify.product_sales_daily are switched off on this route
(SHOPIFY_COMMERCE_SERVING) and are answered 403 serving_disabled; their account is the
shop GID. Their MCP tool is query_commerce_orders, listed only while the Shopify MCP switch is on;
query_metrics never serves them.
ga4.users_daily and ga4.events_daily are switched off on this route in production
(GA4_COVERAGE_SERVING and the deployment’s rollout row) and are answered 403 serving_disabled
there; the staging deployment serves them. Their account is the numeric property id. The MCP tool
query_metrics lists them only while the deployment’s GA4 coverage MCP switch is on.
The ten organic-social profiles (<platform>.account_daily and <platform>.post_snapshot for facebook-pages, instagram,
linkedin-pages, x and google-business-profile) are switched off on this route for every platform
(SOCIAL_SERVING) and are answered 403 serving_disabled; the switch is read per platform, and their account is the
platform’s own account id. They are the profiles of the MCP tool query_social_performance, which is listed only while
some platform’s MCP switch is on, and whose profile enum (like explain_metric’s) lists only the profiles of the platforms
whose MCP switch is on.
stripe.balance_transactions_daily, stripe.refunds_daily, stripe.payouts_daily and stripe.invoices_daily are
switched off on this route (STRIPE_QUERY_SERVING) and are answered 403 serving_disabled; no MCP tool lists them and
GET /v1/connectors/stripe/schema carries no query catalogue for them. Their definitions follow a draft that is not signed
and nothing in them is reconciled with Stripe.
Exactly one account (for GA4 the numeric property id; for Search Console the site). Several accounts are sources.
Several accounts of the profile’s connector, instead of connectionId and accounts
(GA4 and Search Console profiles only). Each pair names a connection and one account
of it; an account appears once, whatever the connection.
object
Metric ids of the profile, each once. Result columns follow this order, after the dimensions.
The dimensions to group by; exactly one of the profile’s dimension sets, in any order.
On a GA4 or Search Console profile each set may also take account (one row group per
account), within the three dimensions.
The closed window, in the account’s reporting calendar. At most the profile’s longest window (GA4 31 days, Search Console 28).
object
At most five, each on a different filterable dimension, at most 100 values in all.
object
One value for eq, one to 100 for in.
Only requested columns. The default is the requested dimensions, ascending.
object
The page size, 1 to 10,000 (default 1,000). It is a bound, not a window onto a larger
result: if the full result has more rows than limit, the answer is
413 result_too_large, not the first limit rows.
Reserved. Cursors are not issued yet, so every cursor is refused with
400 cursor_invalid; omit it.
Accepted only when it equals the profile’s own reporting timezone; refused otherwise.
Examples
Site totals by day
{ "profile": "search-console.site_daily", "connectionId": "your_connection", "accounts": [ "sc-domain:example.com" ], "metrics": [ "clicks", "impressions", "ctr", "position" ], "dimensions": [ "date" ], "dateRange": { "start": "2026-08-31", "end": "2026-09-04" }}Responses
Section titled “ Responses ”Every requested day has a published, finalized snapshot, and the page is whole
(page.truncated is always false). The envelope is QueryResult, and sourceMode
and freshness are always present.
object
The gateway-generated id of this request, the same value as the X-Request-Id response header.
The profile id the request named.
The columns of every row, in order, the requested dimensions then the requested metrics.
object
The dimension or metric id; the key of each row’s value.
The column’s name in the stored result. Not meaningful to a caller.
At most 10,000 rows, in the requested order. A key is a column id. A ratio or weighted
average over a zero denominator is null, never 0. A date is YYYY-MM-DD; an integer
is a JSON number within the safe range. A row of a <platform>.post_snapshot profile also has
windowComplete (below), which is never a column id.
object
Present on the rows of the organic-social <platform>.post_snapshot profiles only. false when
a post the row covers is older than the platform’s metric window, so its counters are not whole
(the view’s window_complete is 0). Such a row is returned and flagged, never dropped; provenance.flags
then carries post_window_incomplete. Do not read an incomplete row’s counters as whole.
object
Always false in a 200. A cut page is 413 result_too_large.
zero when there are rows and every metric is 0 or empty, no_reported_data when there
are no rows, observed otherwise. Never how missing data is represented (409) or a
refused read (4xx, 5xx).
Where the values of a YouTube result come from. Present on every 200 result of a YouTube profile
(youtube.channel_daily, always one channel; YouTube is never read over several sources) and absent from every other result and from every error. Show label with the values wherever
they are shown, and link a YouTube logo, if one is shown, to channelUrl or analyticsUrl. It is a
statement of source only: SignalBraid is not affiliated with YouTube. Not the same field as a Klaviyo
account’s attribution, which is a conversion-attribution fingerprint.
object
The channel the values were read from (the request’s account).
The channel’s public YouTube page.
The channel’s analytics page in YouTube Studio.
The source mode: the identity of the data path that served the result,
read from the query profile. Present only on POST /v1/query/search-console, where it
is always present, and on the MCP tool query_metrics for one Search Console site;
the IR route of POST /v1/query and a multi-source result never carry it.
Present only on POST /v1/query/search-console, where it is always present; the IR route
of POST /v1/query never carries it. The footer for finalized daily data.
object
When the latest completed check of this site and profile ended.
The newest date with a published
invalid_json — the body is absent, not valid JSON, or not valid UTF-8.
invalid_query — the body is not a supported query (unknown field, malformed
date, a window outside the profile’s bounds, a metric, dimension or filter the
profile does not offer, a limit outside 1–10,000, a workspaceId, a profile
that is not a Search Console one), or the URL carried a query delimiter,
including a bare ?.
non_additive_metric — the metric cannot be combined with the requested
dimensions or window without summing what must not be summed.
window_too_large — the window needs more published snapshots than one query
can pin; narrow it.
cursor_invalid — a cursor was sent. No cursor is issued yet.
A refusal the query validator raised (invalid_query, non_additive_metric,
window_too_large, cursor_invalid) also carries detail: one member of a closed
vocabulary that says which rule refused the request, such as unknown_metric,
unknown_dimension_set, distinct_dimension_set, snapshot_over_time or
mixed_attribution (a ratio or weighted average whose parts the profile attributes
under different rules). A distinct_dimension_set refusal also carries
suggestedDimensionSets: the dimension sets the metric is readable at, as lists of
the profile’s dimension ids. Both are fixed vocabulary from the profile and never
repeat the request; invalid_json and a refusal of another layer carry neither.
object
object
Which rule refused the request. Closed vocabulary; one member.
Only with detail: distinct_dimension_set: the dimension sets the refused metric
is readable at, each a list of the profile’s dimension ids. Never empty.
object
unauthorized — missing, unknown, expired or revoked key.
object
object
object
Headers
Section titled “Headers ”forbidden — the key lacks query:read. (serving_disabled, which the schema
shares with POST /v1/query, is not raised on this route: Search Console has no
serving switch.)
history_not_entitled — as on POST /v1/query: the window starts before the plan’s
history. Nothing was read; earliestDate is the first day the plan includes.
object
object
object
The 403 for a window that starts before the workspace plan’s history. A separate closed object because
composing Error with allOf would reject earliestDate under Error.properties.error.additionalProperties.
object
object
The first day of the oldest month the plan includes. Absent when the allowance is custom and set per workspace.
connection_unavailable — no active connection matches this workspace,
connection and account, or it was disconnected mid-read.
object
object
object
method_not_allowed — Allow names the method this route accepts.
object
object
object
Headers
Section titled “Headers ”data_not_ready when nothing in the window is published, data_incomplete when
some days are; both name the missing dates, in ascending order, so a caller can
narrow the window or wait. At most 31 dates are listed: if more are missing, the
list is the earliest 31 and missingDatesTruncated is true. A list the gateway
cannot vouch for is never released without its dates: the answer is a 503 with
code query_unavailable instead. timezone_conflict means published dates use
different property timezones: re-sync every requested date using the property’s
current timezone. No analytics read occurs for that conflict, and it does not
include missingDates. currency_conflict (query IR only) means a money metric
spans more than one currency: group by the currency dimension. It is raised by
the read itself, and carries no missingDates either. attribution_conflict (query
IR only) means the published data of the window was attributed under more than one
provider setting (the pinned report heads carry two attribution fingerprints), so one
figure would follow two rules: narrow the window to dates published under one
setting. It is raised before any analytics read, names no setting, and carries no
missingDates.
The two missing-publication 409 forms; timezone_conflict, currency_conflict and attribution_conflict have no missingDates. This is a separate closed object because composing Error with allOf would reject missingDates under Error.properties.error.additionalProperties.
object
object
The dates with no published snapshot, in ascending order, so a truncated list is the earliest 31. Never empty: a list the gateway cannot vouch for is a 503.
Present, and true, only when more than 31 dates are missing and missingDates lists the earliest 31.
object
object
object
object
The window’s pinned report heads carry two attribution fingerprints. One figure under two provider settings is refused whole; the message is fixed and names no setting, and there are no missingDates.
object
object
Examples
{ "error": { "code": "data_incomplete", "message": "Complete data is not available for every requested day.", "missingDates": [ "2026-09-03", "2026-09-04" ] }}{ "error": { "code": "timezone_conflict", "message": "Published data uses different property timezones. Re-sync every requested date using the property's current timezone." }}request_too_large — REST bodies are capped at 4 KiB.
result_too_large — the result does not fit one response: it has more than 10,000
rows, or the limit is smaller than the full result, or it is over 5 MB. The page
is never cut and returned. The message says which when the service can tell (a
refusal it cannot attribute gets the rows text): for rows it says “The result has
more rows than the limit allows or one response can carry (at most 10,000)”, and to
narrow the window or the filters or raise the limit; for size it says “The result
is too large for one response (about 5 MB)”, and to narrow the window or the
filters or ask for fewer metrics or dimensions. Both end by pointing to scheduled
exports (today, a Google Sheets destination, with its own row limits) as the way to
receive data regularly in bulk; that is not a promise to deliver the refused result.
The text is fixed and never echoes the request.
unsupported_media_type unless the body is application/json, or
unsupported_encoding for any Content-Encoding other than identity.
object
object
object
rate_limited — the key’s or its workspace’s per-plan request allowance for this route’s class is used up.
It is answered after authentication, on every API-key operation in this document and on MCP, and never on /health. A download link is
limited the same way, after its lookup, by the key that issued it and the export’s workspace.
Retry-After is the window in seconds and RateLimit-Limit is the limit of the bucket that refused. No remaining
count is returned. The limits themselves are not published here.
object
object
object
Headers
Section titled “Headers ”query_unavailable — a backend is unreachable or timed out, or a stored row
failed an integrity check. The boundary fails closed rather than returning a
result it cannot vouch for, and never passes a database or provider message
through.
auth_unavailable — the authorization store could not be reached. Pilot
operations report this condition as automation_unavailable.