Is there a way to retrieve runtime excution data with api?

Hello! I’m new in n8n.

Currently I’m trying to get runtime workflow excution data from api

curl 'https://your-instance-name.app.n8n.cloud/api/v1/executions/1?includeData=true'  \
  --header 'X-N8N-API-KEY: YOUR_SECRET_TOKEN'

But it seems like runData only appers when execution finished.

Is there a way to get running runData of execution, which shows current running node?

Thx!

Hi @musnows

Yes, pass the status parameter with the value running

1 Like

Thank you for your reply.

However, what I mean is that I want to get which specific node a currently executing workflow has reached, rather than getting workflows with a status of “running”.

For example, the execution id 1 is running, I want to get workflow node of execution id 1 currently at.

If you Save execution progress which is not by default

then you can see executionStatus for nodes

maybe you can use this, but what are you trying to do btw? the usecase?

1 Like

Thank you so much! This is exactly the effect I wanted.

I need this because I’m trying to implement a simple runtime workflow statistics feature. It should not only let me know which workflows are running, but also show which node each running workflow has reached.

Thank you very much for your help!