# Contact Lists Pagination

**URL:** <https://community.hubspot.com/t/contact-lists-pagination/75033>\
**Category:** APIs & Integrations\
**Tags:** professional\
**Created:** [February 13, 2023, 5:22am UTC](https://community.hubspot.com/t/contact-lists-pagination/75033 "2023-02-13T05:22:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JoelHendy](https://avatars.discourse-cdn.com/v4/letter/j/848f3c/32.png) [@JoelHendy](https://community.hubspot.com/u/JoelHendy)\
**Post date:** [February 13, 2023, 5:22am UTC](https://community.hubspot.com/t/contact-lists-pagination/75033/1 "2023-02-13T05:22:59Z")

</div>

Hello,

I’m trying to pull in all lists for a client using this endpoint but I believe pagination isn’t working as intended.

[https://api.hubapi.com/contacts/v1/lists](https://api.hubapi.com/contacts/v1/lists)

From what I can tell our client has over 2500 unqiue lists.

When I make the above request with the following params

{“count”: 1, “vidOffset”: 10} # I’ve also tried “offset” param which doesn’t work either

I find that I get the same list constantly as if the offset param doesn’t work.

Also in the response it gives the offset and it is never the same as what I set it to.  
In general I believe there is a flaw in the pagination logic.

I can still get all the lists but it takes over 60 seconds and 90 different calls to get them all

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [February 13, 2023, 10:45pm UTC](https://community.hubspot.com/t/contact-lists-pagination/75033/2 "2023-02-13T22:45:35Z")

</div>

Hey, @JoelHendy 👋 Thanks for reaching out. For questions like this, adding a simple example of how your request is set up helps the community understand what might be the root issue.

Here’s my quick test:

- I have a portal with 52 Lists

- Using this endpoint — Get all contact lists, I set my _count_ to be 5 so that I will get back 5/52 lists per call

- Request

- Response

- I grabbed the offset value returned — “18” in this case, and add it as a query parameter for my next request (which returned list IDs 6-10 for my portal). (PS it’s not documented what determines the value for the offset, in case you are looking for a logic there)  
`GET https://api.hubapi.com/contacts/v1/lists?count=5&offset=18​`  

- From here, we could use the offset value of “30” to return lists 11-15 for my portal, etc. for

Have fun building! — Jaycee

---

<div class="post-metadata">

**Author:** ![JoelHendy](https://avatars.discourse-cdn.com/v4/letter/j/848f3c/32.png) [@JoelHendy](https://community.hubspot.com/u/JoelHendy)\
**Post date:** [February 14, 2023, 1:20am UTC](https://community.hubspot.com/t/contact-lists-pagination/75033/3 "2023-02-14T01:20:32Z")

</div>

Hey [@Jaycee\_Lewis](https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074) thank you for your response.

I was assuming the offset param worked like most other APIs for pagination.

I’ve got it working correctly now thank you
