# Get all companies - odd offset behaviour

**URL:** <https://community.hubspot.com/t/get-all-companies-odd-offset-behaviour/16618>\
**Category:** APIs & Integrations\
**Tags:** companies\
**Created:** [October 8, 2019, 12:58pm UTC](https://community.hubspot.com/t/get-all-companies-odd-offset-behaviour/16618 "2019-10-08T12:58:37Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Derek\_Gervais](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/derek_gervais/32/17429_2.png) [@Derek\_Gervais](https://community.hubspot.com/u/Derek_Gervais)\
**Post date:** [October 10, 2019, 9:08pm UTC](https://community.hubspot.com/t/get-all-companies-odd-offset-behaviour/16618/4 "2019-10-10T21:08:15Z")

</div>

Hey @devmosaic ,

Thanks for the info, that was helpful in identifying the issue. I was able to reproduce the issue you’re seeing, but there’s a catch: The public “Get all companies” endpoint is `companies/v2/companies/paged`, not `companies/v2/companies`. The `companies/v2/companies` endpoint appears to be an old legacy endpoint that’s still live, though undocumented. This issue appears limited only to this legacy `companies/v2/companies` endpoint, not the currently supported `companies/v2/companies/paged` endpoint.

I’ll be sure to bring this to my team in order to get to the bottom of this issue, but regardless I’d recommend using the publicly documented endpoint (i.e. `companies/v2/companies/paged`) as described in the following developer documentation: [Accounts Dashboard | HubSpot](https://developers.hubspot.com/docs/methods/companies/get-all-companies)

---

_[View the full topic](https://community.hubspot.com/t/get-all-companies-odd-offset-behaviour/16618)._
