# /u.json not working

**URL:** https://meta.discourse.org/t/u-json-not-working/144391
**Category:** Support
**Created:** [March 15, 2020, 4:52pm UTC](https://meta.discourse.org/t/u-json-not-working/144391 "2020-03-15T16:52:53Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![AstonJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/astonj/32/215041_2.png) [@AstonJ](https://meta.discourse.org/u/AstonJ)
#### Post date: [March 15, 2020, 4:52pm UTC](https://meta.discourse.org/t/u-json-not-working/144391/1 "2020-03-15T16:52:53Z")

</div>

Should these work? I thought you could add `.json` to the end of any URL?

[https://meta.discourse.org/u.json](https://meta.discourse.org/u.json)

> {“errors”:[“The requested URL or resource could not be found.”],“error\_type”:“not\_found”}

[https://meta.discourse.org/u?period=monthly.json](https://meta.discourse.org/u?period=monthly.json)

> Access Denied
> 
> while trying to load /directory\_items?period=monthly.json&order=likes\_received
> 
> Something went wrong.

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [March 15, 2020, 5:01pm UTC](https://meta.discourse.org/t/u-json-not-working/144391/3 "2020-03-15T17:01:13Z")

</div>

I believe the correct url is [https://meta.discourse.org/directory\_items.json?period=monthly&order=likes\_received](https://meta.discourse.org/directory_items.json?period=monthly&order=likes_received)

See [Discourse API Docs](https://docs.discourse.org/#tag/Users/paths/~1directory_items.json?period=%7Bperiod%7D&order=%7Border%7D/get)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [March 15, 2020, 5:02pm UTC](https://meta.discourse.org/t/u-json-not-working/144391/4 "2020-03-15T17:02:34Z")

</div>

Those are not valid URLs at all, you must add the extension to a valid working URL.

---

<div class="post-metadata">

### Author: ![AstonJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/astonj/32/215041_2.png) [@AstonJ](https://meta.discourse.org/u/AstonJ)
#### Post date: [March 15, 2020, 5:38pm UTC](https://meta.discourse.org/t/u-json-not-working/144391/5 "2020-03-15T17:38:44Z")

</div>

> [@Canapin](#):
>
> I believe the correct url is [https://meta.discourse.org/directory\_items.json?period=monthly&order=likes\_received](https://meta.discourse.org/directory_items.json?period=monthly&order=likes_received)

That’s not working either 😕

> [@codinghorror](#):
>
> Those are not valid URLs at all, you must add the extension to a valid working URL.

What is the valid URL? The one in @Canapin’s post/API Docs does not work either..

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [March 15, 2020, 6:41pm UTC](https://meta.discourse.org/t/u-json-not-working/144391/6 "2020-03-15T18:41:04Z")

</div>

> [@AstonJ](#):
>
> That’s not working either 😕

It’s working for me:

 ![image](https://global.discourse-cdn.com/meta/original/3X/3/9/39afd4d4fd2c98b3800fcd6f1454b20c99fa491b.png)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [March 15, 2020, 6:55pm UTC](https://meta.discourse.org/t/u-json-not-working/144391/7 "2020-03-15T18:55:48Z")

</div>

Sometimes the plain text routes have to be opened in a new tab to work because of Ember routing. Maybe that’s what you are running into? Try copying and pasting the URL into the address bar of your browser.

---

<div class="post-metadata">

### Author: ![AstonJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/astonj/32/215041_2.png) [@AstonJ](https://meta.discourse.org/u/AstonJ)
#### Post date: [March 15, 2020, 6:57pm UTC](https://meta.discourse.org/t/u-json-not-working/144391/8 "2020-03-15T18:57:54Z")

</div>

Ah that was it - pasting the URL into a new tab and it works 👍

Thanks both!

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [April 14, 2020, 6:57pm UTC](https://meta.discourse.org/t/u-json-not-working/144391/9 "2020-04-14T18:57:55Z")

</div>

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