Skip to main content
You can fetch data using the Pinecone console.
Fetches consume read units (RUs). See Understanding cost for how fetch cost is calculated.

Fetch records by ID

To fetch records from a namespace based on their IDs, use the fetch operation with the following parameters:
  • namespace: The namespace containing the records to fetch. To use the default namespace, set this to "__default__".
  • ids: The IDs of the records to fetch. Maximum of 1000.
For on-demand indexes, since vector values are retrieved from object storage, fetch operations may have increased latency. If you only need metadata or IDs, consider using the query operation with include_values set to false instead. See Decrease latency for more details.
The response looks like this:

Fetch records by metadata

To fetch records from a namespace based on their metadata values, use the fetch_by_metadata operation with the following parameters: For example, the following code fetches 2 records with a genre field set to Action/Adventure from the default namespace:
The response looks like this:
To fetch the next page of results, pass the pagination token from the previous response. For example:
When there are more results available, the response includes a pagination object with a next token. When there are no more results, the response does not include a pagination object.

Fetch limits

Fetch by ID limits: Fetch by metadata limits: To retrieve more than 10,000 matching records, paginate through results using the paginationToken parameter. See Fetch records by metadata.

Data freshness

Pinecone is eventually consistent, so there can be a slight delay before new or changed records are visible to queries. You can view index stats to check data freshness.