# How to push data to node red?

**URL:** <https://discourse.nodered.org/t/how-to-push-data-to-node-red/49675>\
**Category:** General\
**Created:** [13 August 2021 08:01 UTC](https://discourse.nodered.org/t/how-to-push-data-to-node-red/49675 "2021-08-13T08:01:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Snoz3f](https://avatars.discourse-cdn.com/v4/letter/s/c2a13f/32.png) [@Snoz3f](https://discourse.nodered.org/u/Snoz3f)\
**Post date:** [13 August 2021 08:01 UTC](https://discourse.nodered.org/t/how-to-push-data-to-node-red/49675/1 "2021-08-13T08:01:24Z")

</div>

Hi everyone. I ran into a problem. I need to transfer data from the server to node red. How can I do this? I use nodes tease packages. When I try to get from getflow, I get null

---

<div class="post-metadata">

**Author:** ![hardillb](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hardillb/32/12373_2.png) [@hardillb](https://discourse.nodered.org/u/hardillb)\
**Post date:** [13 August 2021 08:05 UTC](https://discourse.nodered.org/t/how-to-push-data-to-node-red/49675/2 "2021-08-13T08:05:53Z")

</div>

We need a lot more context here to be able to help.

Please explain in a detail what you are trying to do, include things like what sort of data, what the source is, what will trigger this transfer?

---

<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:** [13 August 2021 08:43 UTC](https://discourse.nodered.org/t/how-to-push-data-to-node-red/49675/3 "2021-08-13T08:43:12Z")

</div>

Also what are 'nodes tease packages', and what does 'get from getflow' mean?

---

<div class="post-metadata">

**Author:** ![Snoz3f](https://avatars.discourse-cdn.com/v4/letter/s/c2a13f/32.png) [@Snoz3f](https://discourse.nodered.org/u/Snoz3f)\
**Post date:** [14 August 2021 10:59 UTC](https://discourse.nodered.org/t/how-to-push-data-to-node-red/49675/4 "2021-08-14T10:59:24Z")

</div>

For example. I have server written on node js with express. And i need for example add node red parser there. In node red html node has field for css selector and from client i send selector to server and it send this selector to node red. How can i do it?

---

<div class="post-metadata">

**Author:** ![UnborN](https://avatars.discourse-cdn.com/v4/letter/u/4491bb/32.png) [@UnborN](https://discourse.nodered.org/u/UnborN)\
**Post date:** [14 August 2021 13:10 UTC](https://discourse.nodered.org/t/how-to-push-data-to-node-red/49675/5 "2021-08-14T13:10:20Z")

</div>

> [@Snoz3f](#):
>
> I have server written on node js with express

you can setup your express server to respond with json data on a specific API endpoint  
some examples can be found [here](https://www.geeksforgeeks.org/express-js-res-json-function/)

and then in Node Red with the use of **Http-request node** read that data from your API.  
an example of using the Http-request and parsing the json reply to a Javascript object can be found [here](https://cookbook.nodered.org/http/parse-json-response)

---

<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:** [13 October 2021 13:10 UTC](https://discourse.nodered.org/t/how-to-push-data-to-node-red/49675/6 "2021-10-13T13:10:57Z")

</div>

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