I’m working on https://mentionme.app and I want to gather the latest content from publicly available Discourse forums. For that I’ve picked the /posts.json API endpoint.
I noticed that this endpoint returns a seemingly random number of elements. The documentation states that it will return the latest 50 posts, but upon closer inspection (e.g. https://meta.discourse.org/posts.json ) we see that rather than 50 latest posts, we see posts with IDs ranging from max-50 to max, and some are missing.
I assume that the fact that there are not 50 posts in that endpoint is an imperfection of the API - am I correct?
I assume that post IDs are assigned from a greater pool of IDs that include other things (user IDs?) and I shouldn’t worry about that.
Could someone please explain away my worries?