/u.json not working

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

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

Access Denied

while trying to load /directory_items?period=monthly.json&order=likes_received

Something went wrong.

1 Like

I believe the correct url is https://meta.discourse.org/directory_items.json?period=monthly&order=likes_received

See Discourse API Docs

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

1 Like

That’s not working either :confused:

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

It’s working for me:

4 Likes

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.

4 Likes

Ah that was it - pasting the URL into a new tab and it works :+1:

Thanks both!

2 Likes

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