# About GlideApps Fetch JSON

**URL:** <https://community.glideapps.com/t/about-glideapps-fetch-json/54625>\
**Category:** Ask for Help\
**Created:** [November 21, 2022, 2:28pm UTC](https://community.glideapps.com/t/about-glideapps-fetch-json/54625 "2022-11-21T14:28:01Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![seediq.liu](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/seediq.liu/32/50592_2.png) [@seediq.liu](https://community.glideapps.com/u/seediq.liu)\
**Post date:** [November 21, 2022, 2:28pm UTC](https://community.glideapps.com/t/about-glideapps-fetch-json/54625/1 "2022-11-21T14:28:01Z")

</div>

Hi,

URL\_1 = Will return a string of json  
[https://jsonplaceholder.typicode.com/todos/1](https://jsonplaceholder.typicode.com/todos/1)

 ![clip_055](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/c/b/cbd1845916e3c60e7a0caf82c6e513e02d59edb3.png)

URL\_2 = Will return a string of json  
[https://eagle.aii.tw/go2/mucha](https://eagle.aii.tw/go2/mucha)

 ![clip_056](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/e/c/ec3c3db2339b9fb024d7a2121557d0cac899a845.png)

GlideApps Fetch JSON (URL\_1) is fine.

GlideApps Fetch JSON (URL\_2) is empty. ( What happened ? )

Thank you.

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [November 21, 2022, 2:40pm UTC](https://community.glideapps.com/t/about-glideapps-fetch-json/54625/2 "2022-11-21T14:40:18Z")

</div>

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/6/9/69eb5d6ed4706dbebc8ebaacd14946e372c41f55.png)

That API is being called from a site (Glide) that is not the source site (Eagle), which violates the CORS policy for that Eagle site.

> **[Cross-origin resource sharing](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing)**
>
> Cross-origin resource sharing (CORS) is a mechanism to safely bypass the same-origin policy, that is, it allows a web page to access restricted resources from a server on a domain different than the domain that served the web page.
> A web page may freely embed cross-origin images, stylesheets, scripts, iframes, and videos. Certain "cross-domain" requests, notably Ajax requests, are forbidden by default by the same-origin security policy. CORS defines a way in which a browser and server can intera...

You can try using a proxy to retrieve the JSON in this case.

> [@Fetching metadata using Fetch JSON](https://community.glideapps.com/t/fetching-metadata-using-fetch-json/53469):
>
> Hello community! I would like to retrieve data from a URL with metadata using Fetch JSON. Would like to know if anyone know what code to use for retrieving it? heres the metadata url: [https://pub-cd02cb317b314644935dbaea4d3e658d.r2.dev/5060](https://pub-cd02cb317b314644935dbaea4d3e658d.r2.dev/5060)

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [November 21, 2022, 2:44pm UTC](https://community.glideapps.com/t/about-glideapps-fetch-json/54625/3 "2022-11-21T14:44:20Z")

</div>

…and besides, if all you are trying to do is get a current date and time, you can do that with a Math column in Glide.

[![](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/b/b/bb09d4cbb9ec2be00dcaca38228ca9426151a2cf.png) ](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/b/b/bb09d4cbb9ec2be00dcaca38228ca9426151a2cf.png)

Although, in some cases, I can see some advantages to using an outside source for the date and time.

---

<div class="post-metadata">

**Author:** ![dgggg](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dgggg/32/50669_2.png) [@dgggg](https://community.glideapps.com/u/dgggg)\
**Post date:** [November 21, 2022, 3:30pm UTC](https://community.glideapps.com/t/about-glideapps-fetch-json/54625/4 "2022-11-21T15:30:38Z")

</div>

Hello Guys, if you want to ask for help with no-code apps, we have launched a new no-code jobs platform. You can see it better here: [nocodegigs.io](https://nocodegigs.io/)

---

<div class="post-metadata">

**Author:** ![seediq.liu](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/seediq.liu/32/50592_2.png) [@seediq.liu](https://community.glideapps.com/u/seediq.liu)\
**Post date:** [November 22, 2022, 3:13am UTC](https://community.glideapps.com/t/about-glideapps-fetch-json/54625/5 "2022-11-22T03:13:23Z")

</div>

Hi Jeff,

super big thanks. (hahaha…)

problem solved.

![clip_058](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/4/5/454657b77cc42e1c53278a02129b7b355ba90ef4.png)

![clip_059](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/7/9/7924b82cb4498ea68dcc1b652134c772de5d8ff3.png)

---

<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:** [November 23, 2022, 3:13am UTC](https://community.glideapps.com/t/about-glideapps-fetch-json/54625/6 "2022-11-23T03:13:49Z")

</div>

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