T
Typebot•4mo ago
drippingfist

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
3 Replies
Enzo
Enzo•4mo ago
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.
drippingfist
drippingfist•4mo ago
I actually need all results from the previous 24 hours.
Baptiste
Baptiste•4mo ago
Indeed there is no "previous 24h" time filter option So I suggest you trigger your automation at 11.58pm ? 🤓
Want results from more Discord servers?
Add your server