# 🆕 Call API: call any API securely and return data back to your app instantly

**URL:** <https://community.glideapps.com/t/call-api-call-any-api-securely-and-return-data-back-to-your-app-instantly/64938>\
**Category:** General\
**Created:** [August 11, 2023, 7:13pm UTC](https://community.glideapps.com/t/call-api-call-any-api-securely-and-return-data-back-to-your-app-instantly/64938 "2023-08-11T19:13:41Z")\
**Posts on this page:** 20\
**Page:** 3

<div class="post-metadata">

**Author:** ![BLA\_68](https://avatars.discourse-cdn.com/v4/letter/b/977dab/32.png) [@BLA\_68](https://community.glideapps.com/u/BLA_68)\
**Post date:** [August 22, 2023, 2:14am UTC](https://community.glideapps.com/t/call-api-call-any-api-securely-and-return-data-back-to-your-app-instantly/64938/41 "2023-08-22T02:14:21Z")

</div>

Ok. So if instead the column loaded just one endpoint that was identical for each row, it would be one update? or would it still be 300.

[I guess I should just test it like @ThinhDinh did]…

---

<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:** [August 22, 2023, 2:23am UTC](https://community.glideapps.com/t/call-api-call-any-api-securely-and-return-data-back-to-your-app-instantly/64938/42 "2023-08-22T02:23:11Z")

</div>

In that example, I would expect it to be a single call. So a single update.

But yes, best to test it for yourself.

---

<div class="post-metadata">

**Author:** ![david](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/david/32/62831_2.png) [@david](https://community.glideapps.com/u/david)\
**Post date:** [August 22, 2023, 3:08am UTC](https://community.glideapps.com/t/call-api-call-any-api-securely-and-return-data-back-to-your-app-instantly/64938/43 "2023-08-22T03:08:40Z")

</div>

The cache is per app, not per user, and values are cached for 30 days (soon you will be able to make this shorter). In the example, assuming the parameters don’t change and aren’t using per-user values, it would be 300 updates per month, assuming all of the rows are needed for the app to work.

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [August 22, 2023, 3:15am UTC](https://community.glideapps.com/t/call-api-call-any-api-securely-and-return-data-back-to-your-app-instantly/64938/44 "2023-08-22T03:15:58Z")

</div>

> [@ThinhDinh](#):
>
> I was wondering why Bob had such a great API call count in Slack like 2 weeks ago, I guess it was just a cache bust technique that refreshes too much, opposed to multiple users subjecting to different loads.

Whew! Thought I had misunderstood something!

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [August 22, 2023, 3:18am UTC](https://community.glideapps.com/t/call-api-call-any-api-securely-and-return-data-back-to-your-app-instantly/64938/45 "2023-08-22T03:18:13Z")

</div>

That’s neat. Thanks David!

---

<div class="post-metadata">

**Author:** ![Abhishek\_Sinha](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/abhishek_sinha/32/52361_2.png) [@Abhishek\_Sinha](https://community.glideapps.com/u/Abhishek_Sinha)\
**Post date:** [August 24, 2023, 4:07pm UTC](https://community.glideapps.com/t/call-api-call-any-api-securely-and-return-data-back-to-your-app-instantly/64938/46 "2023-08-24T16:07:34Z")

</div>

This is awesome. Would help a lot.

---

<div class="post-metadata">

**Author:** ![Eden](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/eden/32/18651_2.png) [@Eden](https://community.glideapps.com/u/Eden)\
**Post date:** [August 26, 2023, 10:21pm UTC](https://community.glideapps.com/t/call-api-call-any-api-securely-and-return-data-back-to-your-app-instantly/64938/47 "2023-08-26T22:21:56Z")

</div>

If values in Airtable are updated based on user actions in Glide-

You can save yourself updates by simply appending a number parameter which sequentially increases for all users each time such an update is executed.

---

<div class="post-metadata">

**Author:** ![Eden](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/eden/32/18651_2.png) [@Eden](https://community.glideapps.com/u/Eden)\
**Post date:** [August 27, 2023, 3:51am UTC](https://community.glideapps.com/t/call-api-call-any-api-securely-and-return-data-back-to-your-app-instantly/64938/48 "2023-08-27T03:51:02Z")

</div>

I see that header values can’t be dynamically filled in?  
I have a use case where I want to assign unique SHA256 Keys to users which refresh daily and pass them along with the header to [Make.com](http://Make.com)

Question is whether the header values will be dynamic at some point?

---

<div class="post-metadata">

**Author:** ![Kiwi](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/kiwi/32/60332_2.png) [@Kiwi](https://community.glideapps.com/u/Kiwi)\
**Post date:** [August 27, 2023, 8:43am UTC](https://community.glideapps.com/t/call-api-call-any-api-securely-and-return-data-back-to-your-app-instantly/64938/49 "2023-08-27T08:43:40Z")

</div>

Not sure what you mean here? I am using a date format that captures minutes. But it is a set column that happens at a click of the button, so only relevant to that row in one particular instance. The API call uses that timestamp at the end of API endpoint to retrieve a data from airtable.

This row is like a temporary row that can be wiped each day. Would that help with the update issue?

---

<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:** [August 27, 2023, 8:50am UTC](https://community.glideapps.com/t/call-api-call-any-api-securely-and-return-data-back-to-your-app-instantly/64938/50 "2023-08-27T08:50:32Z")

</div>

So your API Call is configured as an action, as opposed to a computed column?

If that’s the case, then you can ignore my comment. It only applies when it’s used as a column. The other thing is that there is a new feature now (again when using it as a column) that allows you to define the cache interval. So the cache-busting technique is no longer required.

 ![CleanShot 2023-08-27 at 16.48.43@2x](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/a/7/a74542ca619015cd384d459de17f869227807116.png)

---

<div class="post-metadata">

**Author:** ![Kiwi](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/kiwi/32/60332_2.png) [@Kiwi](https://community.glideapps.com/u/Kiwi)\
**Post date:** [August 27, 2023, 9:36am UTC](https://community.glideapps.com/t/call-api-call-any-api-securely-and-return-data-back-to-your-app-instantly/64938/51 "2023-08-27T09:36:58Z")

</div>

Ok so if that cache time field is empty does that mean it “never” gets a new result? My API is a column.

But now it makes sense if it doesn’t fetch a new value, as I only need it to to be fetched at an initial point when data is entered. It hasn’t been updating the field at a later time, even though the original value has now been changed behind the scenes in Airtable.

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [August 27, 2023, 10:41am UTC](https://community.glideapps.com/t/call-api-call-any-api-securely-and-return-data-back-to-your-app-instantly/64938/52 "2023-08-27T10:41:29Z")

</div>

> [@Kiwi](#):
>
> Ok so if that cache time field is empty does that mean it “never” gets a new result? My API is a column.

Good question. I don’t know if there’s a default from Glide in this case.

> [@Eden](#):
>
> Question is whether the header values will be dynamic at some point?

It was the case before the public release, but they removed it due to security issues. I faced the same issue, one of the services I use have an expiring token. I don’t know if they can bring it back.

---

<div class="post-metadata">

**Author:** ![Adam\_Crossley](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/adam_crossley/32/24083_2.png) [@Adam\_Crossley](https://community.glideapps.com/u/Adam_Crossley)\
**Post date:** [August 29, 2023, 7:25am UTC](https://community.glideapps.com/t/call-api-call-any-api-securely-and-return-data-back-to-your-app-instantly/64938/53 "2023-08-29T07:25:55Z")

</div>

Can you give me an example of a dummy parameter in a URL?

I’ve noticed an introduction of a cache time.

Will this count as an update for every column every time it’s refreshed?

---

<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:** [August 29, 2023, 7:47am UTC](https://community.glideapps.com/t/call-api-call-any-api-securely-and-return-data-back-to-your-app-instantly/64938/54 "2023-08-29T07:47:44Z")

</div>

> [@Adam\_Crossley](#):
>
> Can you give me an example of a dummy parameter in a URL?

That’s kind of moot now since the introduction of the Cache Time setting.  
But it’s just an extra parameter that you tag on the end of the API endpoint URL.  
So let’s say the endpoint is `https://someapi.com`, then what you could do is send something like `https://someapi.com?fredflinstone=20230829`  
What you call it doesn’t really matter, because you want the API to ignore it. But, if you wanted to force Glide to update the cached result, all you have to do is change it (eg. `https://someapi.com?fredflinstone=20230830`). Glide will see that the URL has changed, and will send a fresh API call to update it’s cached result.  
But as I said, you don’t need to bother with this any more. Just set the update interval that you want in the Cache Time.

> [@Adam\_Crossley](#):
>
> Will this count as an update for every column every time it’s refreshed?

It depends if the API call for each row is different or not. If they’re all the same, then it’s a just a single update. Put another way, it will be an update for each unique call.

---

<div class="post-metadata">

**Author:** ![Hobe](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/hobe/32/55866_2.png) [@Hobe](https://community.glideapps.com/u/Hobe)\
**Post date:** [September 6, 2023, 4:17pm UTC](https://community.glideapps.com/t/call-api-call-any-api-securely-and-return-data-back-to-your-app-instantly/64938/55 "2023-09-06T16:17:09Z")

</div>

Is call API still available for PRO plans or only for BUSINESS plan? Today I saw the business tag when selecting the call and I was wondering if I had misunderstood or not.

---

<div class="post-metadata">

**Author:** ![gvalero](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gvalero/32/1037_2.png) [@gvalero](https://community.glideapps.com/u/gvalero)\
**Post date:** [September 6, 2023, 4:38pm UTC](https://community.glideapps.com/t/call-api-call-any-api-securely-and-return-data-back-to-your-app-instantly/64938/56 "2023-09-06T16:38:42Z")

</div>

Right!

I’m noticing the same thing today

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/5/5/55677a6422145f15c32ae0a3f1dbbc460c0e4bd0.png)

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [September 6, 2023, 5:37pm UTC](https://community.glideapps.com/t/call-api-call-any-api-securely-and-return-data-back-to-your-app-instantly/64938/57 "2023-09-06T17:37:45Z")

</div>

Business plan only now.

---

<div class="post-metadata">

**Author:** ![David\_Gabler](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/david_gabler/32/44332_2.png) [@David\_Gabler](https://community.glideapps.com/u/David_Gabler)\
**Post date:** [September 6, 2023, 7:02pm UTC](https://community.glideapps.com/t/call-api-call-any-api-securely-and-return-data-back-to-your-app-instantly/64938/58 "2023-09-06T19:02:56Z")

</div>

That didn’t take long. I wonder why the change? Updates?

Is it part of the non-profit plan?

---

<div class="post-metadata">

**Author:** ![Hobe](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/hobe/32/55866_2.png) [@Hobe](https://community.glideapps.com/u/Hobe)\
**Post date:** [September 6, 2023, 8:26pm UTC](https://community.glideapps.com/t/call-api-call-any-api-securely-and-return-data-back-to-your-app-instantly/64938/59 "2023-09-06T20:26:58Z")

</div>

sad news, I had made plans to use this.

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [September 6, 2023, 8:54pm UTC](https://community.glideapps.com/t/call-api-call-any-api-securely-and-return-data-back-to-your-app-instantly/64938/60 "2023-09-06T20:54:36Z")

</div>

Nothing stopping anyone from using it still…just need to be on a Business account.

[Previous page](https://community.glideapps.com/t/call-api-call-any-api-securely-and-return-data-back-to-your-app-instantly/64938.md?page=2)

[Next page](https://community.glideapps.com/t/call-api-call-any-api-securely-and-return-data-back-to-your-app-instantly/64938.md?page=4)
