# What is the http code to get current data from a single xbee?

**URL:** <https://forums.digi.com/t/what-is-the-http-code-to-get-current-data-from-a-single-xbee/19024>\
**Category:** Web Services (API)\
**Tags:** https, device-cloud, xbee-gateway, xbee\
**Created:** [December 29, 2017, 10:17am UTC](https://forums.digi.com/t/what-is-the-http-code-to-get-current-data-from-a-single-xbee/19024 "2017-12-29T10:17:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![geoffsharris](https://avatars.discourse-cdn.com/v4/letter/g/258eb7/32.png) [@geoffsharris](https://forums.digi.com/u/geoffsharris)\
**Post date:** [December 29, 2017, 10:17am UTC](https://forums.digi.com/t/what-is-the-http-code-to-get-current-data-from-a-single-xbee/19024/1 "2017-12-29T10:17:35Z")

</div>

Hi,

I’m trying to get the xml or json for a single xbee connected to an xbee gateway.

If I use:

[https://my.idigi.com/ws/v1/streams/inventory.xml?category=data](https://my.idigi.com/ws/v1/streams/inventory.xml?category=data)

I can get a feed for all of the connected devices. What I want to do is get all of the data for one device with a single call that would only return the portion below or something like this. Any ideas?

Thanks,

Geoff

dia/channel/{deviceID}/wine\_closet/humidity

DOUBLE  
61.0  
%  
2017-12-24T06:17:33.000Z  
2017-12-24T06:18:08.354Z

/ws/v1/streams/history/dia/channel/{deviceID}/wine\_closet/humidity

dia/channel/{deviceID}/wine\_closet/light

DOUBLE  
0.0  
brightness  
2017-12-24T06:17:33.000Z  
2017-12-24T06:18:08.354Z

/ws/v1/streams/history/dia/channel/{deviceID}/wine\_closet/light

dia/channel/{deviceID}/wine\_closet/low\_battery

STRING  
False  
2017-03-06T01:07:22.625Z  
2017-03-06T01:07:22.700Z

/ws/v1/streams/history/dia/channel/{deviceID}/wine\_closet/low\_battery

dia/channel/{deviceID}/wine\_closet/temperature

DOUBLE  
56.9  
F  
2017-12-24T06:17:33.000Z  
2017-12-24T06:18:08.354Z

/ws/v1/streams/history/dia/channel/{deviceID}/wine\_closet/temperature

---

<div class="post-metadata">

**Author:** ![mvut](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/mvut/32/31_2.png) [@mvut](https://forums.digi.com/u/mvut)\
**Post date:** [December 29, 2017, 10:22am UTC](https://forums.digi.com/t/what-is-the-http-code-to-get-current-data-from-a-single-xbee/19024/2 "2017-12-29T10:22:07Z")

</div>

Have you logged in and looked at the sample application Digi provides for this?

[https://xbeegateway.herokuapp.com/#/login](https://xbeegateway.herokuapp.com/#/login)
