Skip to main content
GET
/
v1
/
analytics
/
export
/
raw-events
Export raw events
curl --request GET \
  --url https://api.oneofnone.io/v1/analytics/export/raw-events \
  --header 'x-api-key: <api-key>'
{
  "meta": [
    {
      "name": "<string>",
      "type": "<string>"
    }
  ],
  "data": [
    {
      "timestamp": "<string>",
      "user_id": "<string>",
      "session_id": "<string>",
      "action": "<string>",
      "version": "<string>",
      "team_id": "<string>",
      "collection_id": "<string>",
      "payload": "<string>",
      "cursor": "<string>",
      "total_in_page": 123
    }
  ],
  "rows": 123,
  "statistics": {
    "elapsed": 123,
    "rows_read": 123,
    "bytes_read": 123
  }
}

Authorizations

x-api-key
string
header
required

The API key required for accessing protected routes. It should be included in the request headers as x-api-key.

Query Parameters

collection_id
string<uuid>

Filter by collection ID.

collection_slug
string

Filter by collection slug.

date_from
string<date>
required

Start date in ISO 8601 format (required).

date_to
string<date>

End date in ISO 8601 format.

action
string

Filter by event action type.

limit
integer

Number of events to return (max 10000).

Required range: 1 <= x <= 10000
after_cursor
string

Cursor for pagination. Pass the last event's cursor to fetch the next page.

Response

Successfully exported raw events.

Tinybird response envelope for export/raw_events.

meta
object[]
required
data
object[]
required
rows
integer
required
statistics
object
required

Query execution statistics returned in every Tinybird API response.