Discourse API fetching topic URLS of just first page data



I’m trying to get the URL of all the topics created under a specific category.
I’m using the Discourse API for this.
Remember - when we access the category page manually, it will show just like first 25 topics or something?
And then we will have to go till the bottom and then scroll down again.

Now, the API - gets me - just the first 25 or so - data.
How to get the complete list of topics created under a category?

(Jay Pfaffman) #2

I do that here:

GitHub - pfaffman/discourse-downloader: Download a Discourse topic for offline analysis

(Jay Pfaffman) #3

Hmm. I do something like what you need to do to download all of the posts in a topic. I’m pretty sure that the json list for a category has all of the topics, but I guess I could be wrong.

(Rafael dos Santos Silva) #4

Just read the docs at docs.discourse.org, there is a page parameter.


Could you please tell me where exactly to find that?
I checked the docs again today - but couldn’t find it there.


Okay - I found it.
Can you tell me, how to pass the page parameter.
I’m using POSTMAN.
Here is what I have now:


I found that too.
I just appended &page=n

Its working.
Thanks a ton !