Skip to main content
GET
/
collections
from pinecone.grpc import PineconeGRPC as Pinecone

pc = Pinecone(api_key='YOUR_API_KEY')

active_collections = pc.list_collections()
{ "collections": [ { "name": "small-collection", "size": 3126700, "status": "Ready", "dimension": 3, "vector_count": 99, "environment": "us-east1-gcp" }, { "name": "small-collection-new", "size": 3126700, "status": "Initializing", "dimension": 3, "vector_count": 99, "environment": "us-east1-gcp" }, { "name": "big-collection", "size": 160087040000000, "status": "Ready", "dimension": 1536, "vector_count": 10000000, "environment": "us-east1-gcp" } ] }

Documentation Index

Fetch the complete documentation index at: https://docs.pinecone.io/llms.txt

Use this file to discover all available pages before exploring further.

from pinecone.grpc import PineconeGRPC as Pinecone

pc = Pinecone(api_key='YOUR_API_KEY')

active_collections = pc.list_collections()

Authorizations

Api-Key
string
header
required

An API Key is required to call Pinecone APIs. Get yours from the console.

Response

This operation returns a list of all the collections in your current project.

The list of collections that exist in the project.

collections
object[]