API to retrieve posts sorted by updated_at?

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?

1 Like

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 plugin and write a query for what you are after. Once you save the query you can make an api call to it.

5 Likes