# Fetch JSON auto-update

**URL:** <https://community.glideapps.com/t/fetch-json-auto-update/40637>\
**Category:** Ask for Help\
**Created:** [April 12, 2022, 1:51am UTC](https://community.glideapps.com/t/fetch-json-auto-update/40637 "2022-04-12T01:51:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bezzeris](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/bezzeris/32/41363_2.png) [@Bezzeris](https://community.glideapps.com/u/Bezzeris)\
**Post date:** [April 12, 2022, 1:51am UTC](https://community.glideapps.com/t/fetch-json-auto-update/40637/1 "2022-04-12T01:51:11Z")

</div>

HI,

I’m using fetch plugin to get JSON data which is updated each minute. I wonder how to refresh that info on table so user can see most recent data.

Is it possible?

---

<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:** [April 12, 2022, 2:06am UTC](https://community.glideapps.com/t/fetch-json-auto-update/40637/2 "2022-04-12T02:06:58Z")

</div>

I think you could adapt the technique shown in the following thread:

> [@Automatic Toggle Trigger bulb](https://community.glideapps.com/t/automatic-toggle-trigger/37324/):
>
> Hola a todos! Testing an idea to get something automatic able to fire any event based on time, I could create something that I called “Automatic Toggle Trigger” (if you have a better name, go ahead… I can change it!). The idea is simple and has 5 components (columns): [image] Time: It’s the current time generated by Glide using Now() function. Due to Glide’s heartbeat is set to 10 sec, our triggers can’t be faster than 10 sec unfortunately. SECTIME: The seconds of the current day Enable T…

---

<div class="post-metadata">

**Author:** ![Bezzeris](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/bezzeris/32/41363_2.png) [@Bezzeris](https://community.glideapps.com/u/Bezzeris)\
**Post date:** [April 12, 2022, 4:49am UTC](https://community.glideapps.com/t/fetch-json-auto-update/40637/3 "2022-04-12T04:49:28Z")

</div>

It was so useful, the part of js fetch code was the cherry on top:

```auto
var obj = "";
if(p1==1){
obj = await fetch('url');
} else {
obj = await fetch('url');
}

const json = await obj.json();
return json.___[__]["___"]["___"];

```

Thank you 🙂

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [April 13, 2022, 4:50am UTC](https://community.glideapps.com/t/fetch-json-auto-update/40637/4 "2022-04-13T04:50:18Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
