Using timefilter: today in the list results result API call
If I run this every day at 1am would it only return results from 00:00 - 01:00?
https://docs.typebot.io/api-reference/results/list
Typebot Docs
List results - Typebot Docs
3 Replies
Not necessarily. The endpoint is paginated, listing results ordered by creation date, newest to oldest, with a maximum of 100 results per page. You can leverage the timeFilter query parameter to specify the desired time range, such as 'today'. Additionally, the limit parameter allows you to control the number of results returned per page, up to a maximum of 100.
If you are looking for results from exactly 00:00 to 01:00, you might need to implement additional filtering on your end after fetching the results, since the API does not provide filtering at that specific level of granularity.
I actually need all results from the previous 24 hours.
Indeed there is no "previous 24h" time filter option
So I suggest you trigger your automation at 11.58pm ? 🤓