How to get all posts from Discourse (Any API available?)

How to get all posts from Discourse. We have to crawl data from Discourse to our site for showing links to posts in search results. We tried the following two api calls. But its giving us only the latest post.
/posts.json
/posts.json?before=17907

Please suggest a way to get all the posts from discourse. (Every post and topic inside discourse not specific)

You might say more about what problem you’re trying to solve.

The data explorer plugin is likely the best tool to use to find whatever it is that you’re looking for. Once the query is set up, you can pull a CSV or json file with the API and do it with a single query.

3 Likes