Moar Topics via API

The latest topics API call appears to return 30 items. What’s the best way to get the latest 100? Or let’s say I’ve got 1000 topics and I want them all? Is the best way to request them category by category – /c/{id}.json?

Different question but related - what is the “default” order for latest topics?

thanks

I recommend reading How to reverse engineer the Discourse API.

That said, the latest API call accept a page number parameter, and also a order one.

3 Likes

Thanks, that is helpful.

Although it’s limited because I have to find the desired behavior on the discourse site. It may not be using the API in that way, or I just may not be able to find it.