Skip to main content
GET
/
datasets
/
{dataset_id}
/
sample
Sample a dataset
curl --request GET \
  --url https://api-dev.narrative.io/datasets/{dataset_id}/sample \
  --header 'Authorization: Bearer <token>'
{
  "records": [
    {
      "idValue": "9a200747-86ea-4ab3-a5c5-ce384e4f93dc",
      "idType": "ADID",
      "timestamp": "2021-12-10T00:00:00Z"
    },
    {
      "idValue": "6657fa10-4e5f-4ff5-8e46-53ffb1df692f",
      "idType": "ADID",
      "timestamp": "2021-12-10T00:00:01Z"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

dataset_id
integer
required

Unique identifier for a dataset.

Query Parameters

size
integer

The number of rows to sample from the dataset.

Required range: x <= 1000

Response

OK

records
object[]

A list of rows from the dataset encoded as JSON objects.