# JSON API, get topics sorted by created\_at

**URL:** <https://meta.discourse.org/t/json-api-get-topics-sorted-by-created-at/51638>\
**Category:** Development\
**Created:** [17. Oktober 2016 um 11:53 UTC](https://meta.discourse.org/t/json-api-get-topics-sorted-by-created-at/51638 "2016-10-17T11:53:03Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![m45t3r](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/m45t3r/32/62853_2.png) [@m45t3r](https://meta.discourse.org/u/m45t3r)\
**Post date:** [17. Oktober 2016 um 11:53 UTC](https://meta.discourse.org/t/json-api-get-topics-sorted-by-created-at/51638/1 "2016-10-17T11:53:03Z")

</div>

Hi

I am developing a blog-like interface for a private Discourse deployment based on the JSON API from Discourse. The idea is simple: the owner of the Discourse is the only one that can post questions in a certain category. This category will be used as a base for the posts in the blog.

The problem is, I can’t figure out how to get the topics sorted by `created_at`. `/latest.json` is almost there, however it sorts by `last_posted_at`, so if I made a blog based on `latest.json` the top posts would be the post last commented by an user, not the more traditional most recent created post.

Btw, the [Discourse API documentation](https://meta.discourse.org/t/discourse-api-documentation/22706) seems to be really outdated, since I discovered for example that passing `/latest.json?page=1` allow me to see the next 30 topics (each call from the API gives at most 30 topics and this does not seem to be documented anywhere).

---

_[View the full topic](https://meta.discourse.org/t/json-api-get-topics-sorted-by-created-at/51638)._
