Data
Fetch data
This page shows you how to use the fetch endpoint to fetch documents by ID from a collection.
Parameter | Description | Type | Required | Default |
---|---|---|---|---|
ids | The document IDs to fetch up to 1,000. | string[] | ✓ | |
includeVectors | Indicates whether vector values are included in the response. | boolean | false | |
consistentRead | Determines the read consistency model: If set to true, then the operation uses strongly consistent reads; otherwise, the operation uses eventually consistent reads. | boolean | false |
To fetch documents, specify the document IDs.
python
The response will look like this: