# How to download flows.json using API

**URL:** <https://discourse.nodered.org/t/how-to-download-flows-json-using-api/26507>\
**Category:** General\
**Created:** [12 May 2020 05:10 UTC](https://discourse.nodered.org/t/how-to-download-flows-json-using-api/26507 "2020-05-12T05:10:12Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![dhpatel177](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dhpatel177/32/39248_2.png) [@dhpatel177](https://discourse.nodered.org/u/dhpatel177)\
**Post date:** [12 May 2020 05:10 UTC](https://discourse.nodered.org/t/how-to-download-flows-json-using-api/26507/1 "2020-05-12T05:10:12Z")

</div>

Hello,

I am looking for and click event where it is called from.

I am looking from where [GET/flows] and "Deploy","Export","Import" are called from.

Please guide me as i am new to NODE RED. I am using windows.

Thanks

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [12 May 2020 05:16 UTC](https://discourse.nodered.org/t/how-to-download-flows-json-using-api/26507/2 "2020-05-12T05:16:23Z")

</div>

It may be easier if you get a screen shot, edit it to show what you mean, and post it here.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [12 May 2020 05:26 UTC](https://discourse.nodered.org/t/how-to-download-flows-json-using-api/26507/3 "2020-05-12T05:26:58Z")

</div>

What do you mean by where they are called from? Where in the world? Where in the code? IP address? Where on the screen that a link is clicked? Something else?

---

<div class="post-metadata">

**Author:** ![dhpatel177](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dhpatel177/32/39248_2.png) [@dhpatel177](https://discourse.nodered.org/u/dhpatel177)\
**Post date:** [12 May 2020 05:28 UTC](https://discourse.nodered.org/t/how-to-download-flows-json-using-api/26507/4 "2020-05-12T05:28:52Z")

</div>

![Capture](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/2/f277ab29e3279a31c1687e5d15f627230bf41714.png)

I want to know how to download flow.js and where from it is being called. @Colin @Trying_to_learn

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [12 May 2020 07:04 UTC](https://discourse.nodered.org/t/how-to-download-flows-json-using-api/26507/5 "2020-05-12T07:04:32Z")

</div>

> [@dhpatel177](#):
>
> I want to know how to download flow.js

In web apps Download means to fetch from the server to the machine running the browser. What exactly are you trying to download, from what to where?  
To download from the node-red server to the PC then click the Download button.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [12 May 2020 07:07 UTC](https://discourse.nodered.org/t/how-to-download-flows-json-using-api/26507/6 "2020-05-12T07:07:29Z")

</div>

I think he wants to backup flows (possibly automated?) but he doesn't bother to answer questions on other thread where he has already asked...

> [@Node red for Individual User](https://discourse.nodered.org/t/node-red-for-individual-user/26234/4):
>
> See [this](https://discourse.nodered.org/t/node-red-multiple-instances/9787/7) to run multiple node-red instances What do you mean by... If you mean backup - then just copy the \*.json files (from the users .node-red directory) somewhere safe.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [12 May 2020 07:22 UTC](https://discourse.nodered.org/t/how-to-download-flows-json-using-api/26507/7 "2020-05-12T07:22:32Z")

</div>

OK, thanks Steve.

---

<div class="post-metadata">

**Author:** ![dhpatel177](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dhpatel177/32/39248_2.png) [@dhpatel177](https://discourse.nodered.org/u/dhpatel177)\
**Post date:** [12 May 2020 08:10 UTC](https://discourse.nodered.org/t/how-to-download-flows-json-using-api/26507/8 "2020-05-12T08:10:08Z")

</div>

@Steve-Mcl @Colin I want to download the flows.json using api not by going to directory and copy that.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [12 May 2020 08:12 UTC](https://discourse.nodered.org/t/how-to-download-flows-json-using-api/26507/9 "2020-05-12T08:12:34Z")

</div>

Then you should have said that in the original thread and not started a new one.

Also, update the title of this thread as it is not relevant and not descriptive.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [12 May 2020 08:24 UTC](https://discourse.nodered.org/t/how-to-download-flows-json-using-api/26507/10 "2020-05-12T08:24:16Z")

</div>

There is an API but you'll have to search for it or read the documentation.

An alternative working method is this...

Create an endpoint flow in node-red to deliver the json...  
Http in \> file in (read flow..json) \> http out

---

<div class="post-metadata">

**Author:** ![dhpatel177](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dhpatel177/32/39248_2.png) [@dhpatel177](https://discourse.nodered.org/u/dhpatel177)\
**Post date:** [12 May 2020 08:25 UTC](https://discourse.nodered.org/t/how-to-download-flows-json-using-api/26507/11 "2020-05-12T08:25:21Z")

</div>

@Steve-Mcl sorry for my wrong title but could you please guide me how i can download the flows.json using api?

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [12 May 2020 08:26 UTC](https://discourse.nodered.org/t/how-to-download-flows-json-using-api/26507/12 "2020-05-12T08:26:49Z")

</div>

Much better title. Thank you.

Read my previous post. I know of a way, but not the official API. Its been discussed in the forum before. Search is your friend.

And when you solve this, please be sure to feed back how you did it for future readers. Thanks.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [12 May 2020 08:37 UTC](https://discourse.nodered.org/t/how-to-download-flows-json-using-api/26507/13 "2020-05-12T08:37:21Z")

</div>

A 30 second search revealed you access it by `/flows` or `/flow:id`

Try `http:/IP_address:1880/flows`

For searching the forum, search admin API

And in the docs...  
[https://nodered.org/docs/api/admin/](https://nodered.org/docs/api/admin/)

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [13 May 2020 06:58 UTC](https://discourse.nodered.org/t/how-to-download-flows-json-using-api/26507/14 "2020-05-13T06:58:07Z")

</div>

@dhpatel177

Stop creating new threads and continue your question here

I guess you do not understand the information I posted above?

Try this...

Inject node ➡ http request node ➡ file node

And as I said earlier, ...

> [@Steve-Mcl](#):
>
> A 30 second search revealed you access it by `/flows` or `/flow:id`
> 
> Try `http:/IP_address:1880/flows`
> 
> For searching the forum, search admin API
> 
> And in the docs...  
> [https://nodered.org/docs/api/admin](https://nodered.org/docs/api/admin/)

I'm not sure I can do more.

If this is not enough, please ask, be more specific & please do not start another thread.

EDIT

is this now resolved? Have you managed to download file?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [12 July 2020 06:58 UTC](https://discourse.nodered.org/t/how-to-download-flows-json-using-api/26507/15 "2020-07-12T06:58:08Z")

</div>

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