Skip to main content
Pinecone Docs

Search documentation

Type to search this documentation.

On this pageOverview

List indexes

Python
# pip install "pinecone[grpc]"
from pinecone.grpc import PineconeGRPC as Pinecone

pc = Pinecone(api_key="YOUR_API_KEY")
pc.list_indexes()
JavaScript
// npm install @pinecone-database/pinecone
import { Pinecone } from '@pinecone-database/pinecone'

const pc = new Pinecone({ apiKey: 'YOUR_API_KEY' })

await pc.listIndexes();
Java
import io.pinecone.clients.Pinecone;
import org.openapitools.client.model.*;

public class ListIndexesExample {
    public static void main(String[] args) {
        Pinecone pc = new Pinecone.Builder("YOUR_API_KEY").build();
        IndexList indexList = pc.listIndexes();
        System.out.println(indexList);
    }
}
curl
PINECONE_API_KEY="YOUR_API_KEY"

curl -i -X GET "https://api.pinecone.io/indexes" \
  -H "Api-Key: $PINECONE_API_KEY" \
  -H "X-Pinecone-Api-Version: 2024-04"

GET /indexes

  • 200 — This operation returns a list of all the indexes that you have previously created, and which are associated with the given project
  • 401
  • 500
Suggest an edit

Propose a replacement for this page. The site team reviews it before applying any changes.

Export
Documentation menu