# Custom Field Values API

**URL:** <https://forum.asana.com/t/custom-field-values-api/66483>\
**Category:** API & Developers\
**Tags:** api, tasks\
**Created:** [15 November 2019 10:29 UTC](https://forum.asana.com/t/custom-field-values-api/66483 "2019-11-15T10:29:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![colin8](https://luna1.co/8d76cd.png) [@colin8](https://forum.asana.com/u/colin8)\
**Post date:** [15 November 2019 10:29 UTC](https://forum.asana.com/t/custom-field-values-api/66483/1 "2019-11-15T10:29:41Z")

</div>

Hi, I’m using the asana python API to extract tasks and their respective custom field values. I am able to only get the name of the task and the GID but no other custom field values are returned.

I have tried to use the opt\_fields and I have tried opt\_expand to no success.

```auto
    api_client = ApiClient()
    client = api_client.get_auth_client(use_client_access_token=True)
    params = {
        "project":"##############",
        "opt_expand":"custom_fields, flat",
        "limit":"1",
    }
    tasks = client.tasks.find_all(params)

```

---

<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:** [15 November 2019 14:35 UTC](https://forum.asana.com/t/custom-field-values-api/66483/2 "2019-11-15T14:35:08Z")

</div>

Hi Colin,

Try doing something like this instead:

`tasks = client.tasks.find_by_project(project[‘gid’], {“opt_expand”:“name, projects, workspace, gid, due_on, created_at, modified_at, completed, completed_at, assignee, assignee_status, parent, tags, custom_fields”})`

---

<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 18:57 UTC](https://forum.asana.com/t/custom-field-values-api/66483/3 "2025-05-30T18:57:53Z")

</div>

Closed on 30 May 2025 18:57 UTC


