Discourses API get just the number of search results

latest paginates, you just need to pass the params properly and you should be able to reach all topics via the API.

The search paginates as well.

I recommend How to reverse engineer the Discourse API as a crash coarse for figuring out all the params you need.