# Workflow Executions API CLI

**URL:** <https://community.n8n.io/t/workflow-executions-api-cli/8608>\
**Category:** Questions\
**Tags:** core\
**Created:** [October 21, 2021, 7:14am UTC](https://community.n8n.io/t/workflow-executions-api-cli/8608 "2021-10-21T07:14:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mulen](https://avatars.discourse-cdn.com/v4/letter/m/5fc32e/32.png) [@Mulen](https://community.n8n.io/u/Mulen)\
**Post date:** [October 21, 2021, 7:14am UTC](https://community.n8n.io/t/workflow-executions-api-cli/8608/1 "2021-10-21T07:14:19Z")

</div>

Hello.

Is there a way or an API to get the Workflow Executions from the Executions menu so that for example with a curl to see a json? structure with the fields Started Time / Name / Status / Mode / Running Time everytime we call it?

Or something via cli instead of seeing it only via browser?

Thank you.

---

<div class="post-metadata">

**Author:** ![Jon](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jon/32/40174_2.png) [@Jon](https://community.n8n.io/u/Jon)\
**Post date:** [October 21, 2021, 7:26am UTC](https://community.n8n.io/t/workflow-executions-api-cli/8608/2 "2021-10-21T07:26:16Z")

</div>

Hey @Mulen,

There isn’t any official API documentation but I have just taken a look at the page using the browser dev tools and it looks like you can use…

`curl https://n8n.host.tld/rest/executions -u username:password`

And that will return something like…

```auto
{"data":{"count":8,"results":[{"id":"6392","finished":false,"mode":"trigger","waitTill":null,"startedAt":"2021-10-20T18:30:55.061Z","stoppedAt":"2021-10-20T18:31:00.184Z","workflowId":"29","workflowName":"Twitter to Discord"}, ... I REMOVED THE OTHERS],"estimated":false}}

```

You can replace the -u option with the Basic authorization header as well, Looking at the way the page loads you can also pass in a filter object and a limit so if you wanted the last 30 successful runs you can do…

`curl 'https://n8n.host.tld/rest/executions?filter=%7B%22finished%22:true%7D&limit=30' -u username:password`

Hopefully this helps.

---

<div class="post-metadata">

**Author:** ![Mulen](https://avatars.discourse-cdn.com/v4/letter/m/5fc32e/32.png) [@Mulen](https://community.n8n.io/u/Mulen)\
**Post date:** [October 21, 2021, 8:35am UTC](https://community.n8n.io/t/workflow-executions-api-cli/8608/3 "2021-10-21T08:35:43Z")

</div>

Thank you.

I will check it, that’s what i needed.

---

<div class="post-metadata">

**Author:** ![MutedJam](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mutedjam/32/70851_2.png) [@MutedJam](https://community.n8n.io/u/MutedJam)\
**Post date:** [October 21, 2021, 12:37pm UTC](https://community.n8n.io/t/workflow-executions-api-cli/8608/4 "2021-10-21T12:37:56Z")

</div>

Hi @Mulen, you might also want to leave a vote on the corresponding feature request for such an API to help our team plan their development efforts: [Official n8n API](http://community.n8n.io/t/official-n8n-api/6499). It would be great if you could share your use case in there as well.

Thanks so much and have a nice day!
