CLIENT API / V1 GOOGLE ANALYTICS 4

List stored GA4 dataset dimensions and metrics

GET/sites/{site_id}/ga4/datasetsanalytics:read

List stored GA4 dataset dimensions and metrics. Only explicitly granted sites and permissions are accessible. No credentials or raw worker payloads are returned.

RequestGET https://satelliteai.io/api/v1/sites/{site_id}/ga4/datasets
Permissionanalytics:read
ResponseA single object: data is Ga4DatasetsData.
Operation IDgetGa4Datasets

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/datasets' \
  -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_idrequiredpathintegerAuthorized site id. Parent and site grants must also match.
min 1 · max 9223372036854775807

Unknown or repeated query parameters return 400.

Data dictionary

Scoped result. Lists return pagination metadata; unavailable records return 404.

[] 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.datasetsarray of object
data.datasets[].namestringCanonical dataset name.
data.datasets[].dimensionsarray of string
data.datasets[].metricsarray of string
data.datasets[].definition_versionintegerCurrent storage definition version.
data.datasets[].corebooleanWhether the dataset belongs to the core collection set.
data.datasets[].supports_exact_rangebooleanSupports exact interval publication.
data.datasets[].supports_public_preparebooleanMay be requested by the public preparation call.
data.datasets[].requires_page_filterbooleanRequires an explicit page group, unavailable through the public preparation tool.

Response metadata

Fields in meta
FieldTypeDescription
meta.request_idstringalways presentRequest identifier; also returned in X-Request-ID. Include it in support requests.
meta.api_versionstringalways presentAPI version that produced the response.
one of: v1
meta.limitintegerMaximum records per page applied to this request.
min 1 · max 100
meta.has_morebooleanTrue when another page is available.
meta.next_cursorstringnullableOpaque cursor for the next page; send as cursor. Null on the last page.
meta.availabilitystringavailable 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

Error responses

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

HTTPWhen
400Invalid parameters
401Invalid credentials
403Missing permission
404Missing or inaccessible resource