Get all Trello cards with due date in a range

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

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

Hello @RichardSpence

The Get Cards on a Board endpoint 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 instead. You will also have to read How To Search In Trello to learn how to construct the search query to submit.