# Glide local API call

**URL:** https://community.glideapps.com/t/glide-local-api-call/69430
**Category:** Ask for Help
**Tags:** api
**Created:** [January 10, 2024, 2:02am UTC](https://community.glideapps.com/t/glide-local-api-call/69430 "2024-01-10T02:02:48Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Lee](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/lee/32/68882_2.png) [@Lee](https://community.glideapps.com/u/Lee)
#### Post date: [January 10, 2024, 2:02am UTC](https://community.glideapps.com/t/glide-local-api-call/69430/1 "2024-01-10T02:02:48Z")

</div>

Can Glide call local API, ie: 192.168.0.1/api/v1? I need this because the IOT device I’m using is offline, aka using local IP address

---

<div class="post-metadata">

### Author: ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)
#### Post date: [January 10, 2024, 2:06am UTC](https://community.glideapps.com/t/glide-local-api-call/69430/2 "2024-01-10T02:06:00Z")

</div>

No, Glide is a web app… it won’t work offline… plus it has a sandboxed document, so there is no access anyway unless you create an external host.

---

<div class="post-metadata">

### Author: ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)
#### Post date: [January 10, 2024, 2:55am UTC](https://community.glideapps.com/t/glide-local-api-call/69430/3 "2024-01-10T02:55:51Z")

</div>

If the device running your Glide App is on the same local subnet as your IoT device, then I would expect it would be able to access it. Call API won’t work, as that’s executed server side, but at the very least you could probably use JavaScript to query the API endpoint.

---

<div class="post-metadata">

### Author: ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)
#### Post date: [January 10, 2024, 3:17am UTC](https://community.glideapps.com/t/glide-local-api-call/69430/4 "2024-01-10T03:17:20Z")

</div>

You can do that?

---

<div class="post-metadata">

### Author: ![Lee](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/lee/32/68882_2.png) [@Lee](https://community.glideapps.com/u/Lee)
#### Post date: [January 10, 2024, 3:18am UTC](https://community.glideapps.com/t/glide-local-api-call/69430/5 "2024-01-10T03:18:42Z")

</div>

yes I can access it by going to, for example [http://192.168.10.11/cm?turn=ON](http://192.168.10.11/cm?turn=ON) or [http://192.168.10.11/cm?turn=OFF](http://192.168.10.11/cm?turn=OFF), but I need to call those API in order to get the response (get or update status, scan wifi, etc)

as for the javascript query, what tier do I need to upgrade to? pro or business?

---

<div class="post-metadata">

### Author: ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)
#### Post date: [January 10, 2024, 3:22am UTC](https://community.glideapps.com/t/glide-local-api-call/69430/6 "2024-01-10T03:22:13Z")

</div>

JS is on all plans… I’m not sure if you can do what Darren said… but I never tried… JS and document are sandboxed… @Darren_Murphy did you make that work?
