# Athom Cloud API module not found

**URL:** <https://community.homey.app/t/athom-cloud-api-module-not-found/99464>\
**Category:** Questions & Help\
**Tags:** homey-pro\
**Created:** [December 30, 2023, 7:09pm UTC](https://community.homey.app/t/athom-cloud-api-module-not-found/99464 "2023-12-30T19:09:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guillaume\_Lemer](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/guillaume_lemer/32/83144_2.png) [@Guillaume\_Lemer](https://community.homey.app/u/Guillaume_Lemer)\
**Post date:** [December 30, 2023, 7:09pm UTC](https://community.homey.app/t/athom-cloud-api-module-not-found/99464/1 "2023-12-30T19:09:57Z")

</div>

Hello everyone, i try to use the AthomCloudAPI (from : [https://api.developer.homey.app/](https://api.developer.homey.app/)) to retrive all the devices present in my homey.  
But it seems that the app crash because it cannot find the dependency.

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/d/fddd320d2dd3d578d3c026c6579517f16076c846.png)

For now i just wanted to have the simple devices list as in the exemple, but it crash instanly…  
Here is the little code snipped i have currently (the same of the one of the doc)

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/c/fc3103606cf354d552ca052d2f2eff33e379187c.png)

Any idea on what i’m missing there ? I use as you can see the clientId and the clientSecret of the doc, for local development, but i don’t find anyway to import the AthomCloudAPI directly, i though it would be part of the Homey plugin install.

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [December 30, 2023, 7:40pm UTC](https://community.homey.app/t/athom-cloud-api-module-not-found/99464/2 "2023-12-30T19:40:40Z")

</div>

> [@Guillaume\_Lemer](#):
>
> But it seems that the app crash because it cannot find the dependency.

Did you install it as a dependency?

```auto
npm install homey-api

```

(inside your app’s directory)

Also, if you want to use `homey-api` inside your app there’s a much easier way: [HomeyAPI - Homey Web API](https://athombv.github.io/node-homey-api/HomeyAPI.html#.createAppAPI)

---

<div class="post-metadata">

**Author:** ![Guillaume\_Lemer](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/guillaume_lemer/32/83144_2.png) [@Guillaume\_Lemer](https://community.homey.app/u/Guillaume_Lemer)\
**Post date:** [December 30, 2023, 7:57pm UTC](https://community.homey.app/t/athom-cloud-api-module-not-found/99464/3 "2023-12-30T19:57:18Z")

</div>

indeed i forgot to do the npm install… (rooky mistake)  
i will dig a bit on the Homey Web Api it seems a lot easier thanks 🙂

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [December 30, 2023, 11:54pm UTC](https://community.homey.app/t/athom-cloud-api-module-not-found/99464/4 "2023-12-30T23:54:47Z")

</div>

Maybe you’ll like this !

> [@Developer Web API Playground - Notes of geeky oneliners](https://community.homey.app/t/developer-web-api-playground-notes-of-geeky-oneliners/24392):
>
> For the developers and geeks that want to investigate their Homey’s config. Run from [Homey Developer Tools](https://developer.athom.com/tools/api-playground) I write this to remember what I did but also to inspire others that I know are better JS developer that can do more magic. (and hope they share to inspire!) WARNING: Be Careful! you can ruïne your config by deleting the wrong objects from there! Only use it if you know what you are doing ! // Get Trigger counts for Flows Homey.flow.getFlows().then(f =\> Object.values(f).reduce((r,b)=\>Obj…
