# Custom objects with Nodejs package

**URL:** <https://community.hubspot.com/t/custom-objects-with-nodejs-package/30472>\
**Category:** APIs & Integrations\
**Tags:** developer-tools\
**Created:** [January 20, 2021, 1:44pm UTC](https://community.hubspot.com/t/custom-objects-with-nodejs-package/30472 "2021-01-20T13:44:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AC-valo](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ac-valo/32/76463_2.png) [@AC-valo](https://community.hubspot.com/u/AC-valo)\
**Post date:** [January 20, 2021, 1:44pm UTC](https://community.hubspot.com/t/custom-objects-with-nodejs-package/30472/1 "2021-01-20T13:44:11Z")

</div>

Hello,

I am using the [Hubspot package for nodejs](https://github.com/HubSpot/hubspot-api-nodejs) and I can’t find the right class to interact with custom objects. E.g. to retrieve all of the contacts, I would use the crm.contact.getAll() method, but I couldn’t find an equivalent for a custom object. The namespace provided in the REST API documentation is crm.objects.custom, but it doesn’t exist in the nodejs package.  
How can I retrieve my custom objects using the nodejs package for HubSpot?

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [January 20, 2021, 10:02pm UTC](https://community.hubspot.com/t/custom-objects-with-nodejs-package/30472/2 "2021-01-20T22:02:12Z")

</div>

Hi @AC-valo !

Welcome to the Community!

@RMones , @PCarlson could you all lend a hand here 🙏

---

<div class="post-metadata">

**Author:** ![RMones](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/rmones/32/82797_2.png) [@RMones](https://community.hubspot.com/u/RMones)\
**Post date:** [January 21, 2021, 12:11am UTC](https://community.hubspot.com/t/custom-objects-with-nodejs-package/30472/3 "2021-01-21T00:11:13Z")

</div>

HI @AC-valo ,

You can try to do this with:

`hubspotClient.crm.objects.basicApi.getPage()--------Read a page of objects. Control what is returned via the properties query param.Params:limit – The maximum number of results to display per page.after – The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results.properties – A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.associations – A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.archived – Whether to return only results that have been archived.`

Greets Ronald
