List vectors
Last updated Apr 21, 2026 The list-vectors operation allows you to enumerate all vector identifiers in a Vectorize index using paginated requests. This guide covers best practices for efficiently using this operation.
Python SDK availability
The client.vectorize.indexes.list_vectors() method is not yet available in the current release of the Cloudflare Python SDK ↗︎. While the method appears in the API reference, it has not been included in a published SDK version as of v4.3.1. In the meantime, you can use the REST API or the Wrangler CLI to list vectors.
When to use list-vectors
Use list-vectors for:
- Bulk operations: To process all vectors in an index
- Auditing: To verify the contents of your index or generate reports
- Data migration: To move vectors between indexes or systems
- Cleanup operations: To identify and remove outdated vectors
Pagination behavior
The list-vectors operation uses cursor-based pagination with important consistency guarantees:
Snapshot consistency
Vector identifiers returned belong to the index snapshot captured at the time of the first list-vectors request. This ensures consistent pagination even when the index is being modified during iteration:
- New vectors: Vectors inserted after the initial request will not appear in subsequent paginated results
- Deleted vectors: Vectors deleted after the initial request will continue to appear in the remaining responses until pagination is complete
Starting a new iteration
To see recently added or removed vectors, you must start a new list-vectors request sequence (without a cursor). This captures a fresh snapshot of the index.
Response structure
Each response includes:
count: Number of vectors returned in this responsetotalCount: Total number of vectors in the indexisTruncated: Whether there are more vectors availablenextCursor: Cursor for the next page (null if no more results)cursorExpirationTimestamp: Timestamp of when the cursor expiresvectors: Array of vector identifiers
Cursor expiration
Cursors have an expiration timestamp. If a cursor expires, you'll need to start a new list-vectors request sequence to continue pagination.
Performance considerations
Take care to have sufficient gap between consecutive requests to avoid hitting rate-limits.
Example workflow
Here's a typical pattern for processing all vectors in an index:
# Start iteration
wrangler vectorize list-vectors my-index --count=1000
# Continue with cursor from response
wrangler vectorize list-vectors my-index --count=1000 --cursor="<cursor-from-response>"
# Repeat until no more results
Was this helpful?
YesNo
On this page
{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/vectorize/best-practices/list-vectors/#page","headline":"List vectors","description":"Enumerate vector identifiers in a Vectorize index using paginated list operations.","url":"https://developers.cloudflare.com/vectorize/best-practices/list-vectors/","inLanguage":"en","image":"https://developers.cloudflare.com/vectorize/best-practices/list-vectors/og.png?v=b97ecfaf75ac4cf0","dateModified":"2026-04-21","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}
description: Search a Vectorize index for similar vectors using queries, metadata filters, and namespaces. title: Query vectors image: https://developers.cloudflare.com/vectorize/best-practices/query-vectors/og.png?v=65dc26582428bb0f
Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/vectorize/llms.txt
Use this file to discover all available pages before exploring further.
Docs