# Is there a way to get the uncached site.json for an anonymous user?

**URL:** https://meta.discourse.org/t/is-there-a-way-to-get-the-uncached-site-json-for-an-anonymous-user/49716
**Category:** Development
**Tags:** rest-api
**Created:** [September 4, 2016, 10:44pm UTC](https://meta.discourse.org/t/is-there-a-way-to-get-the-uncached-site-json-for-an-anonymous-user/49716 "2016-09-04T22:44:34Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [September 4, 2016, 10:44pm UTC](https://meta.discourse.org/t/is-there-a-way-to-get-the-uncached-site-json-for-an-anonymous-user/49716/1 "2016-09-04T22:44:35Z")

</div>

I’m making an api call to `site.json` to get a site’s complete list of categories and subcategories. If I include an api key and username in the request I get the current list. If I make the request as an anonymous user I get the cached version of `site.json`.

Sending the forum’s api key in a `GET` request seems risky. Is there a safe way to get the uncached version of `site.json` as an anonymous user?

Edit: sometimes the fastest way to learn is to ask a dumb question. I did a bit of research. You can close this.

---

<div class="post-metadata">

### Author: ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)
#### Post date: [September 5, 2016, 5:11am UTC](https://meta.discourse.org/t/is-there-a-way-to-get-the-uncached-site-json-for-an-anonymous-user/49716/2 "2016-09-05T05:11:22Z")

</div>

> [@simon](#):
>
> Sending the forum’s api key in a GET request seems risky.

Assuming you use HTTPS, this is totally fine! 🙂  
(If you don’t, nothing is fine.)
