Vector Operations
Fetch records
Look up and return records by ID from a single namespace. The returned records include the vector data and/or metadata. 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 includeValues set to false instead. For guidance and examples, see Fetch data.
get/vectors/fetch
Query parameters
idsstring[] required
The vector IDs to fetch. Does not accept values containing spaces.
namespacestring
The namespace to fetch records from. If not provided, the default namespace is used.
Headers
X-Pinecone-Api-Versionstring required
Required date-based version header
Response
A successful response.
Example response
{
"namespace": "example-namespace",
"usage": {
"readUnits": 1
},
"vectors": {
"id-1": {
"id": "id-1",
"values": [
1,
1.5
]
},
"id-2": {
"id": "id-2",
"values": [
2,
1
]
}
}
}