Actions25
- Post Actions
- Topic Actions
- Upload Actions
Topic → Get Many (Top)
AI-generatedSummary
Fetches a list of the most popular topics from a Discourse forum based on a specified time period.
Inputs
- period — The time period for which to retrieve top topics (e.g., 'all', 'daily', 'weekly'). Defaults to 'all'.
- returnAll — Whether to return all results or only up to the specified limit. If true, 'Limit' is ignored.
- limit — Maximum number of results to return. Required when 'Return All' is false. Defaults to 50 with a minimum value of 1.
- simplify — Whether to return a simplified version of the response data instead of the raw API output. Defaults to true.
Output shape
A list of items, each containing a topic object. When 'Simplify' is true, the structure is simplified; otherwise, the raw API response is returned.
Pagination is handled internally. If 'Return All' is enabled, the node iterates through pages until no more results are available.
Examples
Example 1: Fetch the top 20 topics from the last month
Set Period to 'monthly', Limit to 20, and Return All to false.
Example 2: Retrieve all top topics of all time
Set Period to 'all', Return All to true, and Limit to 50 (ignored).