Get items in list with all associations

I’m triying to retrieve all items inside a list and for each item also retrieve the associated deals.

Example:

First I request all the contacts inside a list

https://api.hubapi.com/crm/v3/lists/{{listId}}/memberships/

Then I request the details of each contact found

https://api.hubapi.com/crm/v3/objects/contact/search

Is there a way for that second request to get all the deal associations of each contact that belong to that same list? (at least the ids)

Or another workaround with other types of requests?

I’m trying to not make tons of request to get all associations per contact one request at a time. So, something like multiple contacts (by ids) and it’s associations at once.

Found a way to get all associations of many items using

https://api.hubapi.com/crm/v3/associations/contacts/deals/batch/read

Passing a body similar to

{
 "inputs": [
 {
 "id": "1" // contactId
 },
 {
 "id": "2" // contactId
 },
 {
 "id": "3" // contactId
 }
 ]
}

I think it would work for my solution! Posting it for everyone to see if needed