# Feeding data to different servers

**URL:** <https://forum.xod.io/t/feeding-data-to-different-servers/5097>\
**Category:** Uncategorized\
**Created:** [April 14, 2021, 8:34am UTC](https://forum.xod.io/t/feeding-data-to-different-servers/5097 "2021-04-14T08:34:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![barrodoy](https://avatars.discourse-cdn.com/v4/letter/b/47e85d/32.png) [@barrodoy](https://forum.xod.io/u/barrodoy)\
**Post date:** [April 14, 2021, 8:34am UTC](https://forum.xod.io/t/feeding-data-to-different-servers/5097/1 "2021-04-14T08:34:50Z")

</div>

Hey,  
I am using a nodemcu connected to wifi with a DHT22 sensor. It works great and I can see the sensor’s data in my feeds.  
Is there a way to export a JSON and send it to a differnt server using XOD?  
I would like to use this data on a site I will build.

Thanks!

---

<div class="post-metadata">

**Author:** ![brusher](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/brusher/32/475_2.png) [@brusher](https://forum.xod.io/u/brusher)\
**Post date:** [April 14, 2021, 12:16pm UTC](https://forum.xod.io/t/feeding-data-to-different-servers/5097/2 "2021-04-14T12:16:24Z")

</div>

Hello, @barrodoy  
You can send it directly to your web server.  
To pack it into the JSON format you can use [record type](https://xod.io/docs/guide/records/) and then the `to-json` node.

---

<div class="post-metadata">

**Author:** ![brusher](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/brusher/32/475_2.png) [@brusher](https://forum.xod.io/u/brusher)\
**Post date:** [April 14, 2021, 12:21pm UTC](https://forum.xod.io/t/feeding-data-to-different-servers/5097/3 "2021-04-14T12:21:38Z")

</div>

Also, you can check out how the feed nodes get the data from the XOD Cloud, and send requests to the XOD Cloud Feeds directly from your website 😉

In a few words:  
`GET https://api.xod.io/iot/value/{username}/{topic}`  
with a header `Autorization: Bearer <token>`, where `<token>` is an API token, which you have created in the XOD IDE to send/receive the data to/from XOD Cloud feeds. 😉

---

<div class="post-metadata">

**Author:** ![barrodoy](https://avatars.discourse-cdn.com/v4/letter/b/47e85d/32.png) [@barrodoy](https://forum.xod.io/u/barrodoy)\
**Post date:** [April 14, 2021, 1:47pm UTC](https://forum.xod.io/t/feeding-data-to-different-servers/5097/4 "2021-04-14T13:47:35Z")

</div>

Thanks.I try to connect to a local server I set up but to no avail. No problem connecting to XOD cloud thoguh.  
Also I trie to send request my XOD API adress but to no avail. Any ideas of how should I use the XOD cloud adress with the token?

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/a/aaec2255ff80d30c22202474288232f8459f2aad.png)

---

<div class="post-metadata">

**Author:** ![barrodoy](https://avatars.discourse-cdn.com/v4/letter/b/47e85d/32.png) [@barrodoy](https://forum.xod.io/u/barrodoy)\
**Post date:** [April 16, 2021, 9:19am UTC](https://forum.xod.io/t/feeding-data-to-different-servers/5097/5 "2021-04-16T09:19:19Z")

</div>

I am trying to send an HTTP GET request to xod api server but to no avail. Any ideas how to correctly do it?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/eb7348baa04192c2ef932d1db54d44f09f8a7888.png) [@system](https://forum.xod.io/u/system)\
**Post date:** [May 16, 2021, 9:19am UTC](https://forum.xod.io/t/feeding-data-to-different-servers/5097/6 "2021-05-16T09:19:26Z")

</div>

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