Get index stats
Return statistics about the contents of an index, including the vector count per namespace, the number of dimensions, and the index fullness.
Serverless indexes scale automatically as needed, so index fullness is relevant only for pod-based indexes.
# To get the unique host for an index,
# see https://docs.pinecone.io/guides/manage-data/target-an-index
PINECONE_API_KEY="YOUR_API_KEY"
INDEX_HOST="YOUR_INDEX_HOST"
curl -X POST "https://$INDEX_HOST/describe_index_stats" \
-H "Api-Key: $PINECONE_API_KEY" \
-H "X-Pinecone-Api-Version: 2025-10"// EXAMPLE RESPONSE 1: Serverless index (on-demand)
{
"namespaces": {
"example-namespace": {
"vectorCount": 10000
}
},
"indexFullness": 0,
"totalVectorCount": 10000,
"dimension": 1024,
"metric": "cosine",
"vectorType": "dense",
"memoryFullness": 0,
"storageFullness": 0
}
// EXAMPLE RESPONSE 2: Serverless index (dedicated read nodes)
{
"namespaces": {
"example-namespace": {
"vectorCount": 705000
}
},
"indexFullness": 0.01,
"totalVectorCount": 705000,
"dimension": 1536,
"metric": "cosine",
"vectorType": "dense",
"memoryFullness": 0.01,
"storageFullness": 0.01
}POST /describe_index_stats
Authorizations
Section titled “Authorizations”Api-KeystringrequiredAn API Key is required to call Pinecone APIs. Get yours from the console.
Headers
Section titled “Headers”X-Pinecone-Api-VersionstringrequiredRequired date-based version header
filter?objectIf this parameter is present, the operation only returns statistics for vectors that satisfy the filter. See Understanding metadata. Serverless indexes do not support filtering describe_index_stats by metadata.
Response
Section titled “Response”200 — A successful response.
The response for the describe_index_stats operation.
namespaces?objectA mapping for each namespace in the index from the namespace name to a summary of its contents. If a metadata filter expression is present, the summary will reflect only vectors matching that expression.
dimension?integerThe dimension of the indexed vectors. Not specified if sparse index.
Example: 1024
indexFullness?numberExample: 0.4
The fullness of the index, regardless of whether a metadata filter expression was passed. The granularity of this metric is 10%. Serverless indexes scale automatically as needed, so index fullness is relevant only for pod-based indexes. The index fullness result may be inaccurate during pod resizing; to get the status of a pod resizing process, use describe_index.
totalVectorCount?integerThe total number of vectors in the index, regardless of whether a metadata filter expression was passed
Example: 80000
metric?stringThe metric used to measure similarity.
Example: cosine
vectorType?stringThe type of vectors stored in the index.
Example: dense
memory_fullness?numberThe amount of memory used by a dedicated index
storage_fullness?numberThe amount of storage used by a dedicated index