How to iterate over all the topics in order to export them as Markdown?

  1. Retrieve the category json, for example https://meta.discourse.org/c/support.json (which redirects to https://meta.discourse.org/c/support/6.json)
  2. Get the first batch of topic ID’s from the topic_list.topics array in that json.
  3. Retrieve topic_list.more_topics_url and goto #2