Question about N8N API

I created a python script to extract data from the N8N API. → API reference | n8n Docs

And I would like to know if I can filter the “executions” by date period. I didn’t find this in the documentation. I need some help xD

I managed to extract the data, but I’m extracting everything and it will end up being a very large volume if I leave it that way.

I would like to filter by period for data consumption.

Thanks!

Hey @Thiago_Rodrigues,

Welcome to the community :cake:

That is a very good question, At the moment the API doesn’t support filtering by date so you would need to handle that in your script which as you have noticed can result in a lot of data to go through.

I am goign to convert this to a feature request as I suspect other users may find this useful in the future and might want to vote on it.

1 Like

There is a trick to it though if you just want everything.
You can reverse engineer the cookie the API has for the next page. and make it stop when u got everything you need.
You will get newest executions first so you just need to let it run untill you got everything till the point where u were before. Be aware of unfinished workflows and such. :wink:

2 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.