# Best way to exchange data with node-red

**URL:** <https://community.thunkable.com/t/best-way-to-exchange-data-with-node-red/2430547>\
**Category:** Web API's\
**Tags:** beginner\
**Created:** [May 22, 2023, 3:40pm UTC](https://community.thunkable.com/t/best-way-to-exchange-data-with-node-red/2430547 "2023-05-22T15:40:53Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![muellerc0v](https://avatars.discourse-cdn.com/v4/letter/m/ccd318/32.png) [@muellerc0v](https://community.thunkable.com/u/muellerc0v)\
**Post date:** [May 22, 2023, 3:40pm UTC](https://community.thunkable.com/t/best-way-to-exchange-data-with-node-red/2430547/1 "2023-05-22T15:40:53Z")

</div>

Hello,

what is the best way to exchange data between a thinkable app and a node red instance ?

Is there an example for something like that ?

thank you in advance

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [May 25, 2023, 8:20pm UTC](https://community.thunkable.com/t/best-way-to-exchange-data-with-node-red/2430547/2 "2023-05-25T20:20:57Z")

</div>

Hello @muellerc0v! Welcome to the community!!!  
Have you tried to use the web API component? Could you please try it and let me know? Or you could send us the CURL and we could test it for you.

---

<div class="post-metadata">

**Author:** ![muellerc0v](https://avatars.discourse-cdn.com/v4/letter/m/ccd318/32.png) [@muellerc0v](https://community.thunkable.com/u/muellerc0v)\
**Post date:** [May 26, 2023, 12:21pm UTC](https://community.thunkable.com/t/best-way-to-exchange-data-with-node-red/2430547/3 "2023-05-26T12:21:54Z")

</div>

Hello,

i tried to get one or two of these measurements … it works if I tried curl directly from my Macbook.

curl [http://85.214.52.102:1880/blubber](http://85.214.52.102:1880/blubber)

it’s only an example from the web … and I tried many different thunkable examples and I understand your API guide … but I have a fault anywhere

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [May 26, 2023, 1:42pm UTC](https://community.thunkable.com/t/best-way-to-exchange-data-with-node-red/2430547/4 "2023-05-26T13:42:13Z")

</div>

If you use that url as the Web API url in Thunkable, are you able to see a JSON response by assigning the green [Response] block to a label’s text?

If so, what problem are you having parsing the JSON? What blocks have you tried?

---

<div class="post-metadata">

**Author:** ![muellerc0v](https://avatars.discourse-cdn.com/v4/letter/m/ccd318/32.png) [@muellerc0v](https://community.thunkable.com/u/muellerc0v)\
**Post date:** [May 26, 2023, 4:07pm UTC](https://community.thunkable.com/t/best-way-to-exchange-data-with-node-red/2430547/5 "2023-05-26T16:07:58Z")

</div>

No, I have only “null” or “undefined” as labels text

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [May 26, 2023, 5:00pm UTC](https://community.thunkable.com/t/best-way-to-exchange-data-with-node-red/2430547/6 "2023-05-26T17:00:07Z")

</div>

This works for me. Be sure to test it on a mobile device.

Project link: [Thunkable](https://x.thunkable.com/copy/fa520ac7caa50d2aaa3a0d82e6aa9f2b) (see the first screen)

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/7/071663643d48a2f25d5804fba23f35bfe32db4c4.png)

 ![IMG_4988](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/9/89ce6c93dd0a1b09e143f3863ec1821f8eee2569.png)

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [May 26, 2023, 7:56pm UTC](https://community.thunkable.com/t/best-way-to-exchange-data-with-node-red/2430547/7 "2023-05-26T19:56:20Z")

</div>

You’re probably experiencing Cors issues I’d you can’t access that endpoint if you preview the app in a browser. Best to test from a device. Less you control the endpoint, then you can set your Cors rules yourself to either whitelist Thunkable servers or allow cross origin requests

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 1:33pm UTC](https://community.thunkable.com/t/best-way-to-exchange-data-with-node-red/2430547/8 "2024-11-08T13:33:52Z")

</div>


