GET
/
indexes
from pinecone.grpc import PineconeGRPC as Pinecone

pc = Pinecone(api_key="YOUR_API_KEY")

index_list = pc.list_indexes()

print(index_list)
{
    "indexes": [
        {
            "name": "example-index2",
            "metric": "cosine",
            "dimension": 1536,
            "status": {
                "ready": true,
                "state": "Ready"
            },
            "host": "example-index2-govk0nt.svc.aped-4627-b74a.pinecone.io",
            "spec": {
                "serverless": {
                    "region": "us-east-1",
                    "cloud": "aws"
                }
            },
            "deletion_protection": "disabled",
            "tags": {
                "environment": "production",
                "example": "tag2"
            },
			"vector_type": "dense"
        },
        {
            "name": "example-index1",
            "metric": "cosine",
            "dimension": 1536,
            "status": {
                "ready": true,
                "state": "Ready"
            },
            "host": "example-index1-govk0nt.svc.aped-4627-b74a.pinecone.io",
            "spec": {
                "serverless": {
                    "region": "us-east-1",
                    "cloud": "aws"
                }
            },
            "deletion_protection": "disabled",
            "tags": {
                "environment": "development",
                "example": "tag"
            },
			"vector_type": "dense"
        }
    ]
}
from pinecone.grpc import PineconeGRPC as Pinecone

pc = Pinecone(api_key="YOUR_API_KEY")

index_list = pc.list_indexes()

print(index_list)
{
    "indexes": [
        {
            "name": "example-index2",
            "metric": "cosine",
            "dimension": 1536,
            "status": {
                "ready": true,
                "state": "Ready"
            },
            "host": "example-index2-govk0nt.svc.aped-4627-b74a.pinecone.io",
            "spec": {
                "serverless": {
                    "region": "us-east-1",
                    "cloud": "aws"
                }
            },
            "deletion_protection": "disabled",
            "tags": {
                "environment": "production",
                "example": "tag2"
            },
			"vector_type": "dense"
        },
        {
            "name": "example-index1",
            "metric": "cosine",
            "dimension": 1536,
            "status": {
                "ready": true,
                "state": "Ready"
            },
            "host": "example-index1-govk0nt.svc.aped-4627-b74a.pinecone.io",
            "spec": {
                "serverless": {
                    "region": "us-east-1",
                    "cloud": "aws"
                }
            },
            "deletion_protection": "disabled",
            "tags": {
                "environment": "development",
                "example": "tag"
            },
			"vector_type": "dense"
        }
    ]
}

Authorizations

Api-Key
string
header
required

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

Response

200
application/json
This operation returns a list of all the indexes that you have previously created, and which are associated with the given project

The list of indexes that exist in the project.

indexes
object[]

The IndexModel describes the configuration and status of a Pinecone index.

Was this page helpful?