# Losant API node

**URL:** <https://forums.losant.com/t/losant-api-node/4246>\
**Category:** Help\
**Tags:** workflow\
**Created:** [December 1, 2021, 4:52pm UTC](https://forums.losant.com/t/losant-api-node/4246 "2021-12-01T16:52:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lars\_Andersson](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@Lars\_Andersson](https://forums.losant.com/u/Lars_Andersson)\
**Post date:** [December 1, 2021, 4:52pm UTC](https://forums.losant.com/t/losant-api-node/4246/1 "2021-12-01T16:52:00Z")

</div>

I have used the Device:Get State node, but I don’t see Get state Node for Devices.  
Can I not get the last known state for multiple devices at the same call?

---

<div class="post-metadata">

**Author:** ![Heath](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/heath/32/3036_2.png) [@Heath](https://forums.losant.com/u/Heath)\
**Post date:** [December 1, 2021, 5:21pm UTC](https://forums.losant.com/t/losant-api-node/4246/2 "2021-12-01T17:21:09Z")

</div>

Hey @Lars_Andersson,

The `Device: Get State` node that you said you have used I don’t think we have. Could you have meant the [Device: Get Node](https://docs.losant.com/workflows/data/get-device/#result-path) with composite state?

With the Device: Get node, you are able to return multiple devices if you have the “Return Multiple Devices” checkbox checked. You will also need to include which (or all) attributes for those devices you would like to see.

Thank you,  
Heath

---

<div class="post-metadata">

**Author:** ![Lars\_Andersson](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@Lars\_Andersson](https://forums.losant.com/u/Lars_Andersson)\
**Post date:** [December 1, 2021, 5:35pm UTC](https://forums.losant.com/t/losant-api-node/4246/3 "2021-12-01T17:35:25Z")

</div>

Sorry I meant the “Device: Get State” action within the Losant API node.

---

<div class="post-metadata">

**Author:** ![Heath](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/heath/32/3036_2.png) [@Heath](https://forums.losant.com/u/Heath)\
**Post date:** [December 1, 2021, 5:46pm UTC](https://forums.losant.com/t/losant-api-node/4246/4 "2021-12-01T17:46:19Z")

</div>

Lars,

The `Device: Get State` action in the API node makes a request against the `Device` resource, so you are only able to query a single device.

Using the Device: Get node, though, will allow you to get multiple devices (using a tag or advanced query), and then request the composite state of those devices (composite state being the last known state of each attribute of the device).

Could you give me more information about your use case? Are you tied to using the API Node? Is there something that the Device: Get Node doesn’t have that you’d like to see?

Thank you,  
Heath

---

<div class="post-metadata">

**Author:** ![Lars\_Andersson](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@Lars\_Andersson](https://forums.losant.com/u/Lars_Andersson)\
**Post date:** [December 1, 2021, 6:00pm UTC](https://forums.losant.com/t/losant-api-node/4246/5 "2021-12-01T18:00:04Z")

</div>

OK, I’ll try that.  
In this case I’m tied to it because I’m pulling device attribute data from another Losant application
