# Associations API

**URL:** <https://community.hubspot.com/t/associations-api/71160>\
**Category:** APIs & Integrations\
**Created:** [December 13, 2022, 10:21pm UTC](https://community.hubspot.com/t/associations-api/71160 "2022-12-13T22:21:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![GDelache](https://avatars.discourse-cdn.com/v4/letter/g/977dab/32.png) [@GDelache](https://community.hubspot.com/u/GDelache)\
**Post date:** [December 13, 2022, 10:21pm UTC](https://community.hubspot.com/t/associations-api/71160/1 "2022-12-13T22:21:30Z")

</div>

Hey!

I want to get all my companies’s deals, and to do that, I want to use the Associations API (as stated here :  
[https://community.hubspot.com/t5/APIs-Integrations/Get-associations-with-deals-from-crm-objects-deals-search/m-p/321104](https://community.hubspot.com/t5/APIs-Integrations/Get-associations-with-deals-from-crm-objects-deals-search/m-p/321104) )

I’m using the Python Hubspot API ( [https://github.com/HubSpot/hubspot-api-python](https://github.com/HubSpot/hubspot-api-python)).

And I can’t make it work…

I’ve tried : api\_client.crm.associations.batch\_api.read(‘company’, ‘deal’), doesn’t work.

It asks for a body but I can’t provide one in the method.

How would you do it?

I appreciate any help provided. Thanks so much!

---

<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:** [December 14, 2022, 6:16pm UTC](https://community.hubspot.com/t/associations-api/71160/2 "2022-12-14T18:16:49Z")

</div>

Hey, @GDelache 👋 One question to help us get started. The thread you linked to is referencing the [Search API](https://developers.hubspot.com/docs/api/crm/search), but you mentioned trying to use the [Associations API](https://developers.hubspot.com/docs/api/crm/associations). Am I understanding correctly?

Please note, the Search API will allow you to — [Search through associations](https://developers.hubspot.com/docs/api/crm/search#search-through-associations). You can use the pseudo-property `associations.{objectType}`.

Best,

Jaycee
