CLIENT API / V1 GOOGLE ANALYTICS 4

Read a stored GA4 report or query the connected property live

GET/sites/{site_id}/ga4/reports/{report_type}analytics:read

Requires analytics:read and a granted site. Satellite chooses the connected property and mandatory hostname/business-unit path scope. Property IDs and arbitrary metrics, dimensions, or filters are not accepted. Stored mode matches the exact current property, scope, report, and window in the canonical store; it never reads the retired snapshot cache or falls back to live. Stored results include coverage, publication provenance, all collected metric/dimension columns, and the total stored row count. Missing data returns 202 with state pending; partial daily coverage returns 200 with state partial and missing_days. POST this path with the same parameters as JSON to prepare missing data on the regular async worker; poll returned job IDs and repeat GET. Live uses the saved Google connection and one upstream request per page. OAuth refresh may persist credentials; dashboard caches and monthly rollups are not updated. Live is aggregate reporting, not realtime events. Existing keys do not gain analytics:read automatically.

RequestGET https://satelliteai.io/api/v1/sites/{site_id}/ga4/reports/{report_type}
Permissionanalytics:read
ResponseA single object: data is Ga4Report, or null when nothing is stored.
Operation IDgetGa4Report

Upstream reference: Underlying Google Analytics Data API runReport.

More context and worked examples are in the developer guide.

Example request

cURL · Bash
curl --fail-with-body \
  'https://satelliteai.io/api/v1/sites/123/ga4/reports/sessions_over_time' \
  -H "Authorization: Bearer $SATELLITE_API_KEY"

Replace the example IDs with values returned by the discovery endpoints. Example values are placeholders, not real records.

Parameters

NameInTypeDescription
site_idrequiredpathintegerID from GET /sites.
min 1
report_typerequiredpathstring
one of: summary_kpis, sessions_over_time, channel_summary, page_traffic, landing_page, device_split, geo, new_vs_returning, audience_funnel, audience_by_source, audience_by_channel, campaign_summary, audience_by_campaign, events_by_page, utm_breakdown, file_downloads
sourcequerystringStored reads published GA4 facts without calling Google. Live queries Google once per page.
one of: stored, live · default stored
daysqueryintegerInstead of explicit start_date/end_date, select this many completed property-local days for stored reports (days=28 spans 28 dates). For live reports the interval remains today minus this many days through today inclusive. Cannot be combined with explicit dates.
default 28 · min 1 · max 365
start_datequerystring (date)Strict YYYY-MM-DD. Stored reports accept only completed days in the property timezone. Supply with end_date instead of days; maximum 366 inclusive dates.
pattern ^\d{4}-\d{2}-\d{2}$
end_datequerystring (date)Strict YYYY-MM-DD, on or after start_date. Stored reports exclude today in the property timezone; live allows today. Both dates are required together.
pattern ^\d{4}-\d{2}-\d{2}$
snapshot_datequerystring (date)Retired cache selector. Returns 400; use explicit dates and report_set_id instead.
pattern ^\d{4}-\d{2}-\d{2}$
report_set_idqueryinteger (int64)Pin an exact-range stored report for pagination. Not used for daily sessions_over_time or audience_funnel, or for live reports.
min 1
limitqueryintegerMaximum rows per page.
default 50 · min 1 · max 100
offsetqueryintegerZero-based row offset. Use meta.next_offset with unchanged filters; no cursor is accepted.
default 0 · min 0 · max 100000

Unknown or repeated query parameters return 400.

Data dictionary

Matching GA4 report, including an available report with zero rows or partial daily coverage. Stored reports come from the canonical GA4 store. Missing intervals return a pending object; available reports can have an empty rows array. Use report_set_id to pin exact-range pages. Daily history and live Google results can change during pagination.

202: Requested stored interval is pending. POST the same parameters to prepare it, poll collection jobs if present, and repeat GET.

[] marks an array element. nullable means the value can be null; treat it as unknown, not zero. always present means the key is always included in the object.

Fields in data
FieldTypeDescription
data.site_idintegeralways presentSatellite site ID (from GET /sites).
min 1
data.report_typestringalways present
data.sourcestringalways present
one of: stored, live
data.date_rangeobjectalways present
data.date_range.start_datestring (date)nullablealways present
data.date_range.end_datestring (date)nullablealways present
data.snapshot_datestring (date)nullablealways presentNull; canonical reports use explicit intervals and optional report_set_id.
data.fetched_atstring (date-time)nullablealways presentUTC publication or live fetch timestamp; null when no rows have been published.
data.stalebooleanalways presentTrue when the store identifies a pinned report as stale. False for live requests.
data.rowsarray of map of stringalways present
data.row_countintegeralways presentTotal matching published rows for stored; Google's matching rowCount for live. Consult coverage for missing dates.
min 0
data.row_count_is_totalbooleanalways presentTrue for the stored matching row count and live Google rowCount. Incomplete daily coverage does not imply complete interval data; consult state and missing_days.
data.report_metadataobjectnullablealways presentAllowlisted stored provenance/coverage or Google quality fields. Unrecorded metadata is unknown.
data.report_metadata.statestring
one of: ready, pending, partial, unsupported, empty_period
data.report_metadata.sourcestring
data.report_metadata.datasetstring
data.report_metadata.definition_versioninteger
data.report_metadata.binding_idinteger
data.report_metadata.connection_revisioninteger
data.report_metadata.timezonestring
data.report_metadata.startstring (date)
data.report_metadata.endstring (date)
data.report_metadata.currency_codestringnullable
data.report_metadata.report_set_idintegernullable
data.report_metadata.report_statestringnullable
data.report_metadata.publication_watermarkstringnullable
data.report_metadata.aggregationstring
data.report_metadata.missing_daysinteger
data.report_metadata.reasonstring
data.report_metadata.qualityarray of object
data.report_metadata.collectionobject
data.report_metadata.collection.statestring
data.report_metadata.collection.jobsarray of object
data.report_metadata.collection.jobs[].job_idstring
data.report_metadata.collection.jobs[].statusstring
data.report_metadata.collection.jobs[].status_urlstring
data.report_metadata.dataLossFromOtherRowboolean
data.report_metadata.subjectToThresholdingboolean
data.report_metadata.emptyReasonstring
data.report_metadata.currencyCodestring
data.report_metadata.timeZonestring
data.report_metadata.samplingMetadatasarray of object
data.report_metadata.samplingMetadatas[].samplesReadCountstring
data.report_metadata.samplingMetadatas[].samplingSpaceSizestring

Response metadata

Fields in meta
FieldTypeDescription
meta.request_idstringRequest identifier; also returned in X-Request-ID. Include it in support requests.
meta.api_versionstringAPI version that produced the response.
one of: v1
meta.limitintegeralways presentMaximum records per page applied to this request.
min 1 · max 100
meta.has_morebooleanalways presentAnother page is available within the API offset bound.
meta.next_cursorstringnullableOpaque cursor for the next page; send as cursor. Null on the last page.
meta.availabilitystringalways presentavailable when stored data exists; not_available when it does not.
one of: available, not_available
meta.billingobjectPresent for paid live SERP requests; replayed receipts describe the original debit, not an additional charge.
meta.billing.operationstringalways present
one of: client_api_serp_refresh
meta.billing.credits_chargedintegeralways present
min 0
meta.billing.transaction_idintegeralways present
meta.billing.replayedbooleanalways present
meta.statestring
one of: ready, pending, partial, unsupported, empty_period
meta.offsetintegeralways present
min 0 · max 100000
meta.next_offsetintegernullablealways presentNext allowed row offset, or null when traversal stops.
min 0 · max 100000
meta.offset_limit_reachedbooleanalways presentMore rows remain beyond the API offset cap; narrow the date range.

Error responses

Errors return {"error": {"code", "message", "request_id"}}. See error handling for retry guidance.

HTTPWhen
400Invalid query, unsupported report type, dates, limit, or offset.
401Missing, invalid, expired, or revoked API credential.
403Missing analytics:read, disabled integration, or disabled company API access.
404Missing or inaccessible site, or the feature is globally disabled.
409GA4 connection needs attention. Codes are ga4_not_connected, ga4_property_required, ga4_reconnect_required, ga4_connection_changed, or ga4_scope_unavailable.
413Report or response exceeds the configured retrieval size limit.
429Satellite request or shared GA4 property quota exceeded, including Google's quota. Honor Retry-After. Codes include rate_limit_exceeded and ga4_quota_exceeded.
502ga4_upstream_error or ga4_invalid_report; Google failed or a report was unusable.
503A required dependency is unavailable.
504ga4_timeout; the Google request exceeded its deadline.