# Association in filtered data

**URL:** <https://community.hubspot.com/t/association-in-filtered-data/116396>\
**Category:** APIs & Integrations\
**Tags:** free\
**Created:** [September 16, 2024, 10:46am UTC](https://community.hubspot.com/t/association-in-filtered-data/116396 "2024-09-16T10:46:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![teja21](https://avatars.discourse-cdn.com/v4/letter/t/a9adbd/32.png) [@teja21](https://community.hubspot.com/u/teja21)\
**Post date:** [September 16, 2024, 10:46am UTC](https://community.hubspot.com/t/association-in-filtered-data/116396/1 "2024-09-16T10:46:50Z")

</div>

Hey there, I’m retrieving task engagement’s data using task search API with filter. Where I tried to fetch associations, but it doesn’t return any association detail. Check following screenshot.

 ![teja21_0-1726483390028.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/8/e/8ed21d2e302dfbb1f864ae806190897344e024bf.png)

Is there a way to fetch association with filtered data using search API?

If not then is there any other solution or work-around for that?

Regards,

@teja21

---

<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:** [September 16, 2024, 6:00pm UTC](https://community.hubspot.com/t/association-in-filtered-data/116396/2 "2024-09-16T18:00:08Z")

</div>

Hey, @teja21 👋 You are not missing an option. You’ll either need to collect your object IDs and make additional requests to the [**Associations API**](https://developers.hubspot.com/docs/api/crm/associations) or if you have access, you can look into leveraging [**GraphQL**](https://developers.hubspot.com/docs/cms/data/use-graphql-data-in-your-website-pages) to make a single unified request. This [**article**](https://developers.hubspot.com/blog/reducing-hubspot-requests-utilizing-batch-api-and-graphql-for-better-optimization) from our brilliant community member @CMcKay covers their experience with using GraphQL to optimize their requests.

Have fun building! — Jaycee
