# Retrieve all vector IDs

**URL:** <https://community.pinecone.io/t/retrieve-all-vector-ids/3421>\
**Category:** Feature Requests\
**Created:** [October 17, 2023, 5:26pm UTC](https://community.pinecone.io/t/retrieve-all-vector-ids/3421 "2023-10-17T17:26:33Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cory\_Pinecone](https://sea2.discourse-cdn.com/flex020/user_avatar/community.pinecone.io/cory_pinecone/32/1712_2.png) [@Cory\_Pinecone](https://community.pinecone.io/u/Cory_Pinecone)\
**Post date:** [October 17, 2023, 5:26pm UTC](https://community.pinecone.io/t/retrieve-all-vector-ids/3421/1 "2023-10-17T17:26:33Z")

</div>

An endpoint to retrieve all of the vector IDs stored in the index without supplying a query vector first.

---

<div class="post-metadata">

**Author:** ![jyjayr5](https://sea2.discourse-cdn.com/flex020/user_avatar/community.pinecone.io/jyjayr5/32/1196_2.png) [@jyjayr5](https://community.pinecone.io/u/jyjayr5)\
**Post date:** [November 7, 2023, 1:26am UTC](https://community.pinecone.io/t/retrieve-all-vector-ids/3421/2 "2023-11-07T01:26:23Z")

</div>

should have optional namespace parameter

---

<div class="post-metadata">

**Author:** ![drainedouticedout](https://sea2.discourse-cdn.com/flex020/user_avatar/community.pinecone.io/drainedouticedout/32/1671_2.png) [@drainedouticedout](https://community.pinecone.io/u/drainedouticedout)\
**Post date:** [November 17, 2023, 6:03pm UTC](https://community.pinecone.io/t/retrieve-all-vector-ids/3421/3 "2023-11-17T18:03:46Z")

</div>

PLEASE add this, including a way to filter by metadata. Currently users are forced to do [absurd workarounds](https://community.pinecone.io/t/how-to-retrieve-list-of-ids-in-an-index/380/11) like looping random query vectors in hopes to collect all of the matching vectors, or just deleting and reindexing.

---

<div class="post-metadata">

**Author:** ![nsartor](https://sea2.discourse-cdn.com/flex020/user_avatar/community.pinecone.io/nsartor/32/835_2.png) [@nsartor](https://community.pinecone.io/u/nsartor)\
**Post date:** [November 30, 2023, 3:41pm UTC](https://community.pinecone.io/t/retrieve-all-vector-ids/3421/4 "2023-11-30T15:41:11Z")

</div>

Please guys, my workaround is now taking 10-15 minutes to find all the records in my DB.

---

<div class="post-metadata">

**Author:** ![gdj0nes](https://sea2.discourse-cdn.com/flex020/user_avatar/community.pinecone.io/gdj0nes/32/223_2.png) [@gdj0nes](https://community.pinecone.io/u/gdj0nes)\
**Post date:** [December 1, 2023, 2:25pm UTC](https://community.pinecone.io/t/retrieve-all-vector-ids/3421/5 "2023-12-01T14:25:08Z")

</div>

@nsartor thanks for commenting. Would you be able to tell me a bit more about your use case? How large if an index are you exporting, how often are you doing this, and why? Thanks!

---

<div class="post-metadata">

**Author:** ![nsartor](https://sea2.discourse-cdn.com/flex020/user_avatar/community.pinecone.io/nsartor/32/835_2.png) [@nsartor](https://community.pinecone.io/u/nsartor)\
**Post date:** [December 1, 2023, 2:54pm UTC](https://community.pinecone.io/t/retrieve-all-vector-ids/3421/6 "2023-12-01T14:54:29Z")

</div>

Sure. Currently in the 100k, but growing fast, some 5-10k a day.

I have IDs from another database that are stored in pinecone as they are created/edited.

I have a daily batch process that makes sure the two dbs are aligned, as sometimes the 1by1 process fails.

Currently I have the random vector workaround, batching 6 calls in parallel and iterating until all the vectors are found.

For some reasons the last hundred or so are always impossible to find and forcing it to find them all would require more than 100 calls to do so.

Luckily it’s not a time sensitive task, but I’d rather not do all these useless calls.

---

<div class="post-metadata">

**Author:** ![gdj0nes](https://sea2.discourse-cdn.com/flex020/user_avatar/community.pinecone.io/gdj0nes/32/223_2.png) [@gdj0nes](https://community.pinecone.io/u/gdj0nes)\
**Post date:** [December 1, 2023, 3:48pm UTC](https://community.pinecone.io/t/retrieve-all-vector-ids/3421/7 "2023-12-01T15:48:16Z")

</div>

Ok got it so it is avoid skew between your “source” database and Pinecone. We are trying to simplify the keeping Pinecone What sort of database is upstream (mongo, mysql, etc.). How do you do the syncing? Is there a reason that skew emerges?

---

<div class="post-metadata">

**Author:** ![nsartor](https://sea2.discourse-cdn.com/flex020/user_avatar/community.pinecone.io/nsartor/32/835_2.png) [@nsartor](https://community.pinecone.io/u/nsartor)\
**Post date:** [December 1, 2023, 5:31pm UTC](https://community.pinecone.io/t/retrieve-all-vector-ids/3421/8 "2023-12-01T17:31:57Z")

</div>

Salesforce 😁  
Errors or temporary exceptions on the functions gathering the info to be saved in pinecone as embedding. And the unreliability of the trigger.

---

<div class="post-metadata">

**Author:** ![dhruv.anand](https://sea2.discourse-cdn.com/flex020/user_avatar/community.pinecone.io/dhruv.anand/32/1662_2.png) [@dhruv.anand](https://community.pinecone.io/u/dhruv.anand)\
**Post date:** [February 2, 2024, 1:46pm UTC](https://community.pinecone.io/t/retrieve-all-vector-ids/3421/9 "2024-02-02T13:46:24Z")

</div>

I have built a script to carry out the export using a combination of random searches and metadata filtering.  
Library: [GitHub - AI-Northstar-Tech/vector-io: Use the universal VDF format for vector datasets to easily export and import data from all vector databases](https://github.com/ai-northstar-tech/vector-io)  
Please try it out using the commands here:  
[Dhruv Anand on LinkedIn: Quick Migration to Pinecone Serverless I've been working on a library of…](https://www.linkedin.com/posts/dhruv-anand-ainorthstartech_quick-migration-to-pinecone-serverless-ive-activity-7153321637247868928--kVm)

---

<div class="post-metadata">

**Author:** ![rafal1](https://sea2.discourse-cdn.com/flex020/user_avatar/community.pinecone.io/rafal1/32/2397_2.png) [@rafal1](https://community.pinecone.io/u/rafal1)\
**Post date:** [April 16, 2024, 10:20am UTC](https://community.pinecone.io/t/retrieve-all-vector-ids/3421/10 "2024-04-16T10:20:26Z")

</div>

Any news on retrieving vector IDs?

Migrating pod → serverless is impossible without it.

And workarounds with random search fail when going above 100k vectors.

---

<div class="post-metadata">

**Author:** ![perry](https://sea2.discourse-cdn.com/flex020/user_avatar/community.pinecone.io/perry/32/1729_2.png) [@perry](https://community.pinecone.io/u/perry)\
**Post date:** [August 16, 2024, 8:45am UTC](https://community.pinecone.io/t/retrieve-all-vector-ids/3421/11 "2024-08-16T08:45:38Z")

</div>

Migrating from pod-\>Serverless can be done natively within the Console: [Migrate a pod-based index to serverless - Pinecone Docs](https://docs.pinecone.io/guides/indexes/migrate-a-pod-based-index-to-serverless)

And once you’re in Serverless, you can list the vectors by their ID with optional prefix: [List vector IDs - Pinecone Docs](https://docs.pinecone.io/reference/api/2024-07/data-plane/list)
