How to get user tasks for the specified period?
Note that the Search API is a premium feature. To do this as a free user, I suggest fetching tasks and then doing some client side filtering for your desired date range. You can get all incomplete tasks fairly easily by specifying
completed_since=now or you can put in a date range to get tasks that have been completed since a certain time. Here are the docs for task queries not using the search endpoint.