# Search tasks in a workspace with section infomation

**URL:** <https://forum.asana.com/t/search-tasks-in-a-workspace-with-section-infomation/503929>\
**Category:** API & Developers\
**Tags:** workspaces, sections, tasks\
**Created:** [10 August 2023 05:08 UTC](https://forum.asana.com/t/search-tasks-in-a-workspace-with-section-infomation/503929 "2023-08-10T05:08:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![andy39](https://luna1.co/8d76cd.png) [@andy39](https://forum.asana.com/u/andy39)\
**Post date:** [10 August 2023 05:08 UTC](https://forum.asana.com/t/search-tasks-in-a-workspace-with-section-infomation/503929/1 "2023-08-10T05:08:58Z")

</div>

Hello,

Can I get section info from this API?

> **[Search tasks in a workspace](https://developers.asana.com/reference/searchtasksforworkspace)**
>
> To mirror the functionality of the Asana web app's advanced search feature, the Asana API has a task search endpoint that allows you to build complex filters to find and retrieve the exact data you need.Premium accessLike the Asana web product's...

I checked opt\_field, there is not an option for section

I need task info with sorted task info. that’s why I am using workspace\_search API…

does anybody have a idea for this?’

thanks

---

<div class="post-metadata">

**Author:** ![Phil\_Seeman](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/phil_seeman/32/81525_2.png) [@Phil\_Seeman](https://forum.asana.com/u/Phil_Seeman)\
**Post date:** [10 August 2023 06:36 UTC](https://forum.asana.com/t/search-tasks-in-a-workspace-with-section-infomation/503929/2 "2023-08-10T06:36:08Z")

</div>

Hi @andy39,

Right, there isn’t a separate property for the section. The property you want is `memberships`; that specifies what projects the task is in, and for each project, what section within the project.

You can get the section name using `?opt_fields=memberships.section.name` or the section gid using `gid` instead of `name`.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/system/32/276370_2.png) [@system](https://forum.asana.com/u/system)\
**Post date:** [30 May 2025 19:01 UTC](https://forum.asana.com/t/search-tasks-in-a-workspace-with-section-infomation/503929/3 "2025-05-30T19:01:49Z")

</div>

Closed on 30 May 2025 19:01 UTC


