# Read from open API

**URL:** <https://community.homey.app/t/read-from-open-api/51009>\
**Category:** Developers\
**Created:** [August 31, 2021, 12:31pm UTC](https://community.homey.app/t/read-from-open-api/51009 "2021-08-31T12:31:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eystein\_Henriksen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/eystein_henriksen/32/17735_2.png) [@Eystein\_Henriksen](https://community.homey.app/u/Eystein_Henriksen)\
**Post date:** [August 31, 2021, 12:31pm UTC](https://community.homey.app/t/read-from-open-api/51009/1 "2021-08-31T12:31:31Z")

</div>

223 / 5000

## Oversettelsesresultater

Is it possible to create a script that reads values from an open api that triggers a function on homey that can light a lamp? Example when a value exceeds a sum of 200 a lamp lights up, lamp goes out when value is below 200

---

<div class="post-metadata">

**Author:** ![peltsi51](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peltsi51/32/12564_2.png) [@peltsi51](https://community.homey.app/u/peltsi51)\
**Post date:** [August 31, 2021, 1:35pm UTC](https://community.homey.app/t/read-from-open-api/51009/2 "2021-08-31T13:35:29Z")

</div>

Yes, propably, maybe, doubt it and no. 😉

For more accurate answer you need to give some more info. Connecting to open api can be made with app or webhooks or rest api or mqtt etc.

What kind of api are you trying to connect?

---

<div class="post-metadata">

**Author:** ![Eystein\_Henriksen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/eystein_henriksen/32/17735_2.png) [@Eystein\_Henriksen](https://community.homey.app/u/Eystein_Henriksen)\
**Post date:** [August 31, 2021, 3:08pm UTC](https://community.homey.app/t/read-from-open-api/51009/3 "2021-08-31T15:08:44Z")

</div>

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/e/2e2501233b50231b57a829365e1deb669243d10f.png)

---

<div class="post-metadata">

**Author:** ![Eystein\_Henriksen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/eystein_henriksen/32/17735_2.png) [@Eystein\_Henriksen](https://community.homey.app/u/Eystein_Henriksen)\
**Post date:** [August 31, 2021, 3:09pm UTC](https://community.homey.app/t/read-from-open-api/51009/4 "2021-08-31T15:09:46Z")

</div>

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/6/06e6b09393f52741f625140eabeba697dc1d6ba1.png)

---

<div class="post-metadata">

**Author:** ![Marcel\_Ubels](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcel_ubels/32/18860_2.png) [@Marcel\_Ubels](https://community.homey.app/u/Marcel_Ubels)\
**Post date:** [September 3, 2021, 8:35am UTC](https://community.homey.app/t/read-from-open-api/51009/5 "2021-09-03T08:35:59Z")

</div>

If it is possible to do a get request and you get a json response you can make it work. With homeyscript or http request you can do it. Just du your api request and get the json file. Extract the file in homeyscript or with http request. And make your flows what has to happen
