Discourse Extended icon

Discourse Extended

Read and manage Discourse AI artifacts, categories, posts, topics, personal messages, uploads, and Data Explorer queries

Post → Get Many (All Posts)

AI-generated

Summary

Fetches a list of posts from the Discourse forum, optionally returning all posts with cursor-based pagination or a limited subset.

Inputs

  • returnAll — Whether to return all results or only up to a given limit.
  • limit — Max number of results to return. Visible when returnAll is false.
  • before — Optional post ID cursor to return older posts.
  • page — Optional page index used for the first request only.
  • order — Sort order: Default, Activity, or Created.
  • ascending — Sort ascending (oldest first).
  • desc — Whether to request descending order when supported by the instance.
  • simplify — Whether to return a simplified version of the response instead of the raw data.

Output shape

a list of items (posts).

When returnAll is true, the operation iterates internally to fetch all available posts. When using the 'before' cursor, ensure the cursor is a valid post ID.

Examples

Example 1: Fetch the most recent 50 posts from a Discourse forum.

returnAll: false, limit: 50, order: Default, ascending: false

Example 2: Retrieve all posts in descending activity order (newest first).

returnAll: true, order: Activity, descending: true, simplify: true

Example 3: Fetch older posts using a specific post ID as a cursor.

returnAll: true, before: 12345

Links

Discussion