Actions25
- Post Actions
- Topic Actions
- Upload Actions
Post → Get Many (Topic)
AI-generatedSummary
Fetches multiple posts from a specific Discourse topic by ID or URL.
Inputs
- topicId (required) — The Topic ID or URL. Supports ID mode (e.g., 123) or URL mode (e.g., https://forum.example.com/t/topic-slug/123). The URL mode automatically extracts the numeric ID.
- returnAll — Whether to return all posts in the topic or only up to a given limit.
- limit — The maximum number of posts to return. Required when 'returnAll' is false. Defaults to 50.
- simplify — Whether to return a simplified version of the response data instead of the raw Discourse API response.
Output shape
A list of items, each containing post data.
When 'returnAll' is true, the operation fetches every post in the topic. When false, it returns up to the specified limit. The 'simplify' option controls the structure of the returned post objects.
Examples
Example 1: Fetch the first 10 posts from a topic with ID 123
topicId: 123, returnAll: false, limit: 10, simplify: true
Example 2: Get all posts from a topic using its URL
topicId: URL mode (https://discourse.example.com/t/example/456), returnAll: true, simplify: true
Example 3: Retrieve raw API response for up to 25 posts
topicId: 123, returnAll: false, limit: 25, simplify: false