Skip to content

Get an analytics dataset

Request

Returns the dataset card: its description, time kind, time axis, build status, the columns that can be selected, grouped and filtered, and the measures. An unknown dataset answers 404 resource_not_found; a dataset the acting user may not read answers 403 permission_denied.

Security
OAuth2(Required scopes: analytics:read) or ApiKey
Path
location_idintegerrequired

Identifier of the Location. Verified against the credential on every call — a Location the credential cannot access responds with 404.

datasetstringrequired

Dataset name from the catalog, e.g. visits.

curl -i -X GET \
  'https://developer.alteg.io/_mock/en/b2b-v3/openapi/locations/{location_id}/analytics/datasets/{dataset}' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

The dataset card.

Headers
RateLimit-Remaininginteger, (int32), >= 0

Requests left in the most constrained policy window that applies to this request.

RateLimit-Resetinteger, (int32), >= 0

On 429, seconds until the most constrained policy frees up; it equals Retry-After there. On a successful response it reports the length of that policy's window rather than the time left in the current one, so treat it as the window size, not as a countdown — the counter to pace against is RateLimit-Remaining.

RateLimit-Policystring

Most constrained policy applied to the request, as <limit>;w=<window in seconds>.

Example:"10;w=60"
X-Request-Idstring

Request identifier for support and log correlation.

Bodyapplication/json
objectstringrequired
Value:"analytics_dataset"
datasetstringrequired
titlestringrequired
descriptionstringrequired
grainstring or nullrequired
time_kindstring(AnalyticsTimeKind)required

period — rows belong to dates and are queried for a date range; snapshot — the current state without a date range.

Enum:"period""snapshot"
time_axisstring or nullrequired

Column the period of a period dataset is applied to; null for a snapshot dataset.

statusobject(AnalyticsDatasetStatus)required

Build status of a dataset for the Location. Times are UTC.

columnsArray of objects(AnalyticsDatasetColumn)required
measuresArray of objects(AnalyticsDatasetMeasure)required
Response
{ "object": "analytics_dataset", "dataset": "visits", "title": "Visits", "description": "Visits of the location", "grain": "One row per visit", "time_kind": "period", "time_axis": "visit_date", "status": { "state": "ready", "generation_id": "0199f3a2-7c1e-7b40-9d2a-5e8f1c3b6a90", "built_at": "2026-11-16T14:20:52.767Z", "source_as_of": "2026-11-16T14:20:52.123Z", "source_lag_seconds": 0, "period_from": "2024-11-16", "period_to": "2026-11-16", "rows_count": 1250 }, "columns": [ { … } ], "measures": [ { … } ] }