# API to retrieve posts sorted by updated\_at?

**URL:** https://meta.discourse.org/t/api-to-retrieve-posts-sorted-by-updated-at/91003
**Category:** Development
**Created:** [28.Июнь.2018 23:46:34 UTC](https://meta.discourse.org/t/api-to-retrieve-posts-sorted-by-updated-at/91003 "2018-06-28T23:46:34Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![BrendanGraham14](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/brendangraham14/32/100086_2.png) [@BrendanGraham14](https://meta.discourse.org/u/BrendanGraham14)
#### Post date: [28.Июнь.2018 23:46:34 UTC](https://meta.discourse.org/t/api-to-retrieve-posts-sorted-by-updated-at/91003/1 "2018-06-28T23:46:34Z")

</div>

I see that there’s the /posts.json API which retrieves posts sorted by created\_at.  
Is there any way to retrieve the latest **updated\_at** posts?

---

<div class="post-metadata">

### Author: ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)
#### Post date: [03.Июль.2018 14:11:36 UTC](https://meta.discourse.org/t/api-to-retrieve-posts-sorted-by-updated-at/91003/2 "2018-07-03T14:11:36Z")

</div>

It does not look like there is any built in functionality to pass a sorted by param to the `/posts.json` route. Your best bet is to use the [Data Explorer](https://meta.discourse.org/t/32566?silent=true) plugin and write a query for what you are after. Once you save the query you can make an api call to it.
