Share feedback, ideas and get community help

Updated 6 months ago

Using timefilter: today in the list results result API call

At a glance

The community member asked if running a script daily at 1am would only return results from 00:00 - 01:00. Another community member explained that the API endpoint is paginated, so the results would not necessarily be limited to that specific time range. They suggested using the timeFilter query parameter to specify a desired time range, such as "today". However, there is no option to filter for the previous 24 hours, so the community members suggested triggering the automation at 11:58pm to capture the full previous day's results.

Useful resources
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
!
d
B
4 comments
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 ? πŸ€“
Add a reply
Sign up and join the conversation on Discord