# Get all Trello cards with due date in a range

**URL:** <https://community.developer.atlassian.com/t/get-all-trello-cards-with-due-date-in-a-range/55728>\
**Category:** Trello\
**Tags:** rest-api\
**Created:** [February 8, 2022, 12:11pm UTC](https://community.developer.atlassian.com/t/get-all-trello-cards-with-due-date-in-a-range/55728 "2022-02-08T12:11:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RichardSpence](https://avatars.discourse-cdn.com/v4/letter/r/e19b73/32.png) [@RichardSpence](https://community.developer.atlassian.com/u/RichardSpence)\
**Post date:** [February 8, 2022, 12:11pm UTC](https://community.developer.atlassian.com/t/get-all-trello-cards-with-due-date-in-a-range/55728/1 "2022-02-08T12:11:32Z")

</div>

Is it possible to filter the REST API call for cards on a board to filter out only the ones whose due date field is within a specified date range - or just “today”.

I’m thinking there might be a way to filter this query:  
[https://api.trello.com/1/boards/{id}/cards?fields=name,due](https://api.trello.com/1/boards/%7Bid%7D/cards?fields=name,due)

I have seen on the forums “before” and “since” filters which don’t appear in the documentation so am hoping there might be one for this too.

Thanks  
Rich

---

<div class="post-metadata">

**Author:** ![anon96974232](https://avatars.discourse-cdn.com/v4/letter/a/7ba0ec/32.png) [@anon96974232](https://community.developer.atlassian.com/u/anon96974232)\
**Post date:** [February 9, 2022, 4:21am UTC](https://community.developer.atlassian.com/t/get-all-trello-cards-with-due-date-in-a-range/55728/2 "2022-02-09T04:21:27Z")

</div>

Hello @RichardSpence

The [Get Cards on a Board endpoint](https://developer.atlassian.com/cloud/trello/rest/api-group-boards/#api-boards-id-cards-get) does not support any sort of filtering, it just returns all the cards on that board, and it’s up to you to filter the results with your code.

Use the [Search Trello endpoint](https://developer.atlassian.com/cloud/trello/rest/api-group-search/#api-group-search) instead. You will also have to read [How To Search In Trello](https://blog.trello.com/the-secrets-of-superior-trello-searches) to learn how to construct the search query to submit.
