# Any way to filter project GET request by due date?

**URL:** <https://forum.asana.com/t/any-way-to-filter-project-get-request-by-due-date/158155>\
**Category:** API & Developers\
**Tags:** projects\
**Created:** [21 March 2022 15:39 UTC](https://forum.asana.com/t/any-way-to-filter-project-get-request-by-due-date/158155 "2022-03-21T15:39:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nicholas\_Wackowski](https://luna1.co/8d76cd.png) [@Nicholas\_Wackowski](https://forum.asana.com/u/Nicholas_Wackowski)\
**Post date:** [21 March 2022 15:39 UTC](https://forum.asana.com/t/any-way-to-filter-project-get-request-by-due-date/158155/1 "2022-03-21T15:39:38Z")

</div>

I’m using the Python API, inheriting some code which is several years old.  
One line grabs all projects:

response = self.\_client.projects.find\_all(project\_options)

project\_options is a dictionary which specifies which fields to get, and the workspace ID.

I only care about projects which have existed since January 1st, 2022, but I’m getting tens of thousands of projects we don’t care about anymore. I can’t filter out archived projects since some projects we do care about are archived.  
Filtering out all the projects takes a significant amount of time.

**Is there a way I can get all projects within a certain date range?**

---

<div class="post-metadata">

**Author:** ![Frederic\_Malenfant](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/frederic_malenfant/32/8358_2.png) [@Frederic\_Malenfant](https://forum.asana.com/u/Frederic_Malenfant)\
**Post date:** [21 March 2022 18:13 UTC](https://forum.asana.com/t/any-way-to-filter-project-get-request-by-due-date/158155/2 "2022-03-21T18:13:43Z")

</div>

Hi @Nicholas_Wackowski

If your code is several years old, it may have been written before the new “search api” was released.

You can now query using the “search” endpoint  
[Search tasks in a workspace – Asana](https://developers.asana.com/docs/search-tasks-in-a-workspace)

But, you will need to change your code a little bit, because the results are not paginated like it was in the previous endpoint (using offset), but they are sorted by date.

You can look at this thread I think for a sample call.  
[Python client library: using the Search API - Developers & API - Asana Community Forum](https://forum.asana.com/t/python-client-library-using-the-search-api/115896)

---

<div class="post-metadata">

**Author:** ![Nicholas\_Wackowski](https://luna1.co/8d76cd.png) [@Nicholas\_Wackowski](https://forum.asana.com/u/Nicholas_Wackowski)\
**Post date:** [29 March 2022 17:16 UTC](https://forum.asana.com/t/any-way-to-filter-project-get-request-by-due-date/158155/3 "2022-03-29T17:16:58Z")

</div>

Hi @Frederic_Malenfant

Thank you for the helpful answer, but I’m struggling to find a way to filter **projects**. I see your link allows for filtering based on task info, but I don’t see any options for filtering projects other than “workspace,” “archival,” or “team.” I don’t see a way I could get, for example, “all projects due after X date,” or “all projects within a delimited list of strings.”

Any advice?

---

<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:04 UTC](https://forum.asana.com/t/any-way-to-filter-project-get-request-by-due-date/158155/4 "2025-05-30T19:04:27Z")

</div>


