---
title: "Get All Data Items"
method: GET
path: "/collections/{collectionId}/items"
tags: ["Data Item"]
---

# Get All Data Items

`GET /collections/{collectionId}/items`

## Request

- Base URL: `https://data.lucid.app`
- URL: `https://data.lucid.app/collections/{collectionId}/items`
- Auth: OAuth 2
  - Authorization code: `https://lucid.app/oauth2/authorize`
  - Token URL: `https://api.lucid.co/oauth2/token` scopes: `data-service.admin`

This endpoint returns all data items within a collection that the user has access to. The results will be paginated. If the number of data items exceeds the pagination limit, links will be provided to get the next set of results or the previous set of results (if applicable). The range of returned values can be determined by optional start and end parameters. If the difference between the end and start values is greater than the pagination limit, the endpoint returns collections in the range from start to start + pagination limit. Items in the response are determined based on their creation order.

This endpoint also supports an optional filter string that can be used to filter down the data items returned based off the items' fields' values. If a filter is included, the start and end parameters only refer to items which satisfy the filter; this is also true of the total value in the response. For more details, see Data Item Filters.

## Path parameters

- `collectionId` integer, required

## Query parameters

- `start` integer
- `end` integer
- `filter` string

## Response `200`

OK with paginated list of Data Items

- object
  - `items` object[]: List of data items
    - `uri` string, required: Link to self
    - `collection` string, required: Link to the collection the item belongs to
    - `fields` object, required: Mapping of field names found in schema to this specific item's values
  - `total` integer: Total number of data items in the collection
  - `prev` string: Link to get the previous set of data items
  - `next` string: Link to get the next set of data items

---

[API](https://skmtc.dev/lucid/apis/lucid-data-api.md) - [All operations](https://skmtc.dev/lucid/apis/lucid-data-api/llms.txt) - [OpenAPI document](https://skmtc.dev/lucid/apis/lucid-data-api/revisions/c14ed29dbeab?raw)
