Skip to main content
GET
/
vectors
/
list
from pinecone import Pinecone

pc = Pinecone(api_key="YOUR_API_KEY")

# To get the unique host for an index, 
# see https://docs.pinecone.io/guides/manage-data/target-an-index
index = pc.Index(host="INDEX_HOST")

for ids in index.list(namespace="example-namespace"):
    print(ids)

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 import Pinecone

pc = Pinecone(api_key="YOUR_API_KEY")

# To get the unique host for an index, 
# see https://docs.pinecone.io/guides/manage-data/target-an-index
index = pc.Index(host="INDEX_HOST")

for ids in index.list(namespace="example-namespace"):
    print(ids)

Authorizations

Api-Key
string
header
required

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

Headers

X-Pinecone-Api-Version
string
default:202601-alpha
required

Required date-based version header

Query Parameters

prefix
string

The vector IDs to fetch. Does not accept values containing spaces.

limit
integer<int64>
default:100

Max number of IDs to return per page.

paginationToken
string

Pagination token to continue a previous listing operation.

namespace
string

The namespace to list vectors from. If not provided, the default namespace is used.

Response

A successful response.

The response for the list operation.

vectors
A list of ids · object[]
Example:
[
{ "id": "document1#abb" },
{ "id": "document1#abc" }
]
pagination
object
namespace
string

The namespace of the vectors.

Example:

"example-namespace"

usage
object