Skip to main content
GET
/
datasets
/
{dataset_id}
/
stats
Get dataset statistics
curl --request GET \
  --url https://api-dev.narrative.io/datasets/{dataset_id}/stats \
  --header 'Authorization: Bearer <token>'
{
  "dataset_id": 1,
  "records": [
    {
      "snapshot_id": 1111111111111111200,
      "est_total_dataset_stored_files": 999,
      "est_total_dataset_stored_records": 9999,
      "est_total_dataset_stored_bytes": 999999,
      "active_dataset_stored_files": 999,
      "active_dataset_stored_records": 9999,
      "active_dataset_stored_bytes": 999999,
      "snapshot_added_files": 9,
      "snapshot_added_records": 999,
      "snapshot_deleted_records": 9,
      "snapshot_added_bytes": 9999,
      "snapshot_deleted_files": 9,
      "snapshot_added_delete_files": 9,
      "snapshot_removed_delete_files": 9,
      "snapshot_removed_bytes": 9
    }
  ]
}

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

all_records
boolean

If true will return 100 records. If false, only returns the most recent record. Pagination api with per_page and offset parameters should be used instead of this one.

per_page
integer

Number of records to return.

offset
integer

Number of records to skip (it's usually page_number * per_page).

Response

200 - application/json

OK

dataset_id
integer
required

A valid existing active dataset id

records
object[]
required