# Use association api with more than one object\_id

**URL:** <https://community.hubspot.com/t/use-association-api-with-more-than-one-object-id/101334>\
**Category:** APIs & Integrations\
**Tags:** python\
**Created:** [February 28, 2024, 4:30pm UTC](https://community.hubspot.com/t/use-association-api-with-more-than-one-object-id/101334 "2024-02-28T16:30:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RonaldoRubens22](https://avatars.discourse-cdn.com/v4/letter/r/dc4da7/32.png) [@RonaldoRubens22](https://community.hubspot.com/u/RonaldoRubens22)\
**Post date:** [February 28, 2024, 4:30pm UTC](https://community.hubspot.com/t/use-association-api-with-more-than-one-object-id/101334/1 "2024-02-28T16:30:21Z")

</div>

Is there any way, using the V4 association API, to place more than one object\_id at once, without having to call the API several times?  
This is the way I’m currently doing it:

 ![RonaldoRubens22_0-1709137856220.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/c/4/c4cea2375a7a8b48e3de8a21970b46aaf096362c.png)

---

<div class="post-metadata">

**Author:** ![zach\_threadint](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/zach_threadint/32/46318_2.png) [@zach\_threadint](https://community.hubspot.com/u/zach_threadint)\
**Post date:** [February 29, 2024, 3:00am UTC](https://community.hubspot.com/t/use-association-api-with-more-than-one-object-id/101334/2 "2024-02-29T03:00:38Z")

</div>

Hi @RonaldoRubens22 👋

You might like to consider using the [List Deals endpoint](https://developers.hubspot.com/docs/api/crm/deals) and specifying Line Items as a target association to be returned. For example:

**GET** /crm/v3/objects/ **DEALS**?limit=100&associations= **LINE\_ITEMS**

**Example response body:**

```lia-code-sample
{
 "results": [
 {
 "id": "17614984782",
 "properties": {
 "amount": "2000",
 "closedate": null,
 "createdate": "2024-02-19T05:12:58.087Z",
 "dealname": "Example Deal",
 "dealstage": "xxxxxx",
 "hs_lastmodifieddate": "2024-02-22T06:03:54.945Z",
 "hs_object_id": "17614984782",
 "pipeline": "default"
 },
 "createdAt": "2024-02-19T05:12:58.087Z",
 "updatedAt": "2024-02-22T06:03:54.945Z",
 "archived": false,
 "associations": {
 "line items": {
 "results": [
 {
 "id": "8366375344",
 "type": "deal_to_line_item"
 },
 {
 "id": "8399242520",
 "type": "deal_to_line_item"
 },
 {
 "id": "8399306032",
 "type": "deal_to_line_item"
 },
 {
 "id": "8399306033",
 "type": "deal_to_line_item"
 }
 ]
 }
 }
 }
 ],
 "paging": {
 "next": {
 "after": "17614984783",
 "link": "https://api.hubapi.com/crm/v3/objects/DEAL?associations=LINE_ITEMS&limit=1&after=17614984783"
 }
 }
}

```

Please note, if you’ll be working with \>100 Deals, you’ll have to handle pagination (see ‘paging’ in example response body above).
