# Markdownとしてエクスポートするために、すべてのトピックを反復処理する方法

**URL:** <https://meta.discourse.org/t/how-to-iterate-over-all-the-topics-in-order-to-export-them-as-markdown/220180>\
**Category:** Product Support\
**Created:** [2022 年 3 月 6 日午前 2:02 UTC](https://meta.discourse.org/t/how-to-iterate-over-all-the-topics-in-order-to-export-them-as-markdown/220180 "2022-03-06T02:02:14Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![jbrains](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jbrains/32/208183_2.png) [@jbrains](https://meta.discourse.org/u/jbrains)\
**Post date:** [2022 年 3 月 8 日午後 9:43 UTC](https://meta.discourse.org/t/how-to-iterate-over-all-the-topics-in-order-to-export-them-as-markdown/220180/4 "2022-03-08T21:43:42Z")

</div>

> [@RGJ](#):
>
> - カテゴリのJSONを取得します。例: `https://meta.discourse.org/c/support.json` (`https://meta.discourse.org/c/support/6.json` にリダイレクトされます)
> - そのJSONの `topic_list.topics` 配列から最初のトピックIDのバッチを取得します。
> - `topic_list.more_topics_url` を取得し、#2 に移動します。

これをカテゴリで反復処理するにはどうすればよいですか？

---

_[View the full topic](https://meta.discourse.org/t/how-to-iterate-over-all-the-topics-in-order-to-export-them-as-markdown/220180)._
