# Workspace project API get blank data response

**URL:** <https://forum.asana.com/t/workspace-project-api-get-blank-data-response/772978>\
**Category:** API & Developers\
**Created:** [12 April 2024 15:04 UTC](https://forum.asana.com/t/workspace-project-api-get-blank-data-response/772978 "2024-04-12T15:04:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lei\_Zhong](https://luna1.co/8d76cd.png) [@Lei\_Zhong](https://forum.asana.com/u/Lei_Zhong)\
**Post date:** [12 April 2024 15:04 UTC](https://forum.asana.com/t/workspace-project-api-get-blank-data-response/772978/1 "2024-04-12T15:04:50Z")

</div>

Hello,

I am using below workspace API to get all projects in one workspace, but there is no data returned even there is project in the workspace, also I created the project in the UI, so the personal token should be fine.

[https://app.asana.com/api/1.0/workspaces/:workspace\_gid/projects](https://app.asana.com/api/1.0/workspaces/:workspace_gid/projects)

If I use project API, I can get the workspace gid in the response.

[https://app.asana.com/api/1.0/projects/:project\_gid?opt\_fields=workspace,custom\_fields.date\_value.date\_time](https://app.asana.com/api/1.0/projects/:project_gid?opt_fields=workspace,custom_fields.date_value.date_time)

Could you help check what might be the reason why it has no project data returned for the workspace API?

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:** [12 April 2024 16:00 UTC](https://forum.asana.com/t/workspace-project-api-get-blank-data-response/772978/2 "2024-04-12T16:00:14Z")

</div>

That’s odd, I can’t offhand think of why that endpoint would not be returning any data. Do you get any type of error, or just an empty array? Can you post your code; maybe we can spot an issue there?

---

<div class="post-metadata">

**Author:** ![Lei\_Zhong](https://luna1.co/8d76cd.png) [@Lei\_Zhong](https://forum.asana.com/u/Lei_Zhong)\
**Post date:** [12 April 2024 16:44 UTC](https://forum.asana.com/t/workspace-project-api-get-blank-data-response/772978/3 "2024-04-12T16:44:41Z")

</div>

I normally used Postman for testing first,

the python code is as below,

import requests

url = “[https://app.asana.com/api/1.0/workspaces/20105541092398/projects](https://app.asana.com/api/1.0/workspaces/20105541092398/projects)”

payload = {}  
headers = {  
‘Accept’: ‘application/json’,  
‘Authorization’: ‘Bearer token’  
}

response = requests.request(“GET”, url, headers=headers, data=payload)

print(response.text)  
 ![image](https://us1.discourse-cdn.com/asana/original/3X/5/5/55b54f1a7e40efdd6ef3806dd418eed7bce8415b.png)

---

<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:59 UTC](https://forum.asana.com/t/workspace-project-api-get-blank-data-response/772978/4 "2025-05-30T18:59:49Z")

</div>

Closed on 30 May 2025 18:59 UTC


