# Get all Tickets API returning incorrect offset

**URL:** <https://community.hubspot.com/t/get-all-tickets-api-returning-incorrect-offset/11736>\
**Category:** APIs & Integrations\
**Created:** [October 20, 2018, 8:25am UTC](https://community.hubspot.com/t/get-all-tickets-api-returning-incorrect-offset/11736 "2018-10-20T08:25:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [October 20, 2018, 8:25am UTC](https://community.hubspot.com/t/get-all-tickets-api-returning-incorrect-offset/11736/1 "2018-10-20T08:25:31Z")

</div>

There is an issue where the offset param in the get all tickets is returning the same offset param used in the API call:

Here is what is happening from my end (using python):

```auto
>>> response = requests.get('https://api.hubapi.com/crm-objects/v1/objects/tickets/paged?hapikey=HAPIKEY')
>>> response.json()
>>> {'hasMore': True, 'objects': [{'isDeleted': False, 'objectId': 911191, 'objectType': 'TICKET', 'portalId': 1960791, 'properties': {}}, {'isDeleted': False, 'objectId': 911196, 'objectType': 'TICKET','portalId': 1960791,'properties': {}}],'offset': 914346}
>>> new_response = requests.get('https://api.hubapi.com/crm-objects/v1/objects/tickets/paged?hapikey=HAPIKEYoffset=914346')
>>> new_response.json()
>>> {'hasMore': True,
'objects': [{'isDeleted': False,
'objectId': 911191,
'objectType': 'TICKET',
'portalId': 1960791,
'properties': {}},
{'isDeleted': False,
'objectId': 911196,
'objectType': 'TICKET',
'portalId': 1960791,
'properties': {}}],
'offset': 914346}
>>> new_response = requests.get('https://api.hubapi.com/crm-objects/v1/objects/tickets/paged?hapikey=HAPIKEYoffset=914346')
>>> new_response.json()
>>> {'hasMore': True,
'objects': [{'isDeleted': False,
'objectId': 911191,
'objectType': 'TICKET',
'portalId': 1960791,
'properties': {}},
{'isDeleted': False,
'objectId': 911196,
'objectType': 'TICKET',
'portalId': 1960791,
'properties': {}}],
'offset': 914346}

```

And do so - this gets us stuck in an infinite loop where we never get the next page of results

Any advice on what I am doing wrong? This looks like a bit of a bug?

---

<div class="post-metadata">

**Author:** ![cbarley](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cbarley/32/82559_2.png) [@cbarley](https://community.hubspot.com/u/cbarley)\
**Post date:** [October 22, 2018, 10:42pm UTC](https://community.hubspot.com/t/get-all-tickets-api-returning-incorrect-offset/11736/2 "2018-10-22T22:42:57Z")

</div>

Hi [@RafaelAMello](https://community.hubspot.com/u/rafaelamello), that seems strange. I can reproduce using an internal REST client. I’m going to reach out to my team and get back to you with what I find.

---

<div class="post-metadata">

**Author:** ![cbarley](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cbarley/32/82559_2.png) [@cbarley](https://community.hubspot.com/u/cbarley)\
**Post date:** [October 26, 2018, 3:19pm UTC](https://community.hubspot.com/t/get-all-tickets-api-returning-incorrect-offset/11736/3 "2018-10-26T15:19:43Z")

</div>

Hey [@RafaelAMello](https://community.hubspot.com/u/rafaelamello), the endpoint is still in developer preview, so there are a few kinks here. The CRM team is currently investigating the issue but I do not have an update at this time. Thanks for your patience

---

<div class="post-metadata">

**Author:** ![cbarley](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cbarley/32/82559_2.png) [@cbarley](https://community.hubspot.com/u/cbarley)\
**Post date:** [October 29, 2018, 9:47pm UTC](https://community.hubspot.com/t/get-all-tickets-api-returning-incorrect-offset/11736/4 "2018-10-29T21:47:19Z")

</div>

Hi [@RafaelAMello](https://community.hubspot.com/u/rafaelamello), the team has addressed the issue that was causing the same ticket number to be returned in each offset. You should be all set moving forward!
