# API: Query deal including associations with a single request

**URL:** <https://community.hubspot.com/t/api-query-deal-including-associations-with-a-single-request/52562>\
**Category:** APIs & Integrations\
**Created:** [March 4, 2022, 9:30am UTC](https://community.hubspot.com/t/api-query-deal-including-associations-with-a-single-request/52562 "2022-03-04T09:30:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![CEbert](https://avatars.discourse-cdn.com/v4/letter/c/eada6e/32.png) [@CEbert](https://community.hubspot.com/u/CEbert)\
**Post date:** [March 4, 2022, 9:30am UTC](https://community.hubspot.com/t/api-query-deal-including-associations-with-a-single-request/52562/1 "2022-03-04T09:30:28Z")

</div>

Is there are more effcient way, to GET a deal including all associations to line items, company and contact in less requests. Currently I have to execute a 7 requests to get the information:

- GET the deal

- GET the line item ids by querying the associations of a deal

- GET the line items from the line items API

- GET the contact id by querying the associations of a deal

- GET the contact from the contacts API

- GET the company id by querying the associations of a deal

- GET the company from the companies API

---

<div class="post-metadata">

**Author:** ![CEbert](https://avatars.discourse-cdn.com/v4/letter/c/eada6e/32.png) [@CEbert](https://community.hubspot.com/u/CEbert)\
**Post date:** [March 4, 2022, 10:48am UTC](https://community.hubspot.com/t/api-query-deal-including-associations-with-a-single-request/52562/2 "2022-03-04T10:48:13Z")

</div>

Found it by myself using the associations parameter

---

<div class="post-metadata">

**Author:** ![PGraca](https://avatars.discourse-cdn.com/v4/letter/p/fbc32d/32.png) [@PGraca](https://community.hubspot.com/u/PGraca)\
**Post date:** [May 18, 2023, 3:13pm UTC](https://community.hubspot.com/t/api-query-deal-including-associations-with-a-single-request/52562/3 "2023-05-18T15:13:21Z")

</div>

Do you have any example?
