DescribeIndexStats

The DescribeIndexStats operation returns statistics about the index's contents. For example: The vector count per namespace and the number of dimensions.

Request
Security:
ApiKeyAuth
Responses
200

A successful response.

default

An unexpected error response.

get/describe_index_stats
Request samples
import pinecone

pinecone.init(api_key="YOUR_API_KEY", environment="us-west1-gcp")
index = pinecone.Index("example-index")

index_stats_response = index.describe_index_stats()
Response samples
application/json
{
  • "namespaces": {
    },
  • "dimension": 1024
}