Actions25
- Post Actions
- Topic Actions
- Upload Actions
Topic → Get
AI-generatedSummary
Retrieves a single Discourse topic by ID or URL, optionally returning simplified data.
Inputs
- topicId (required) — The ID of the topic to retrieve, or the full URL. The URL mode automatically extracts the ID using the regex pattern /t/(?:[^/]+/)?(\d+).
- simplify — If true, returns a simplified representation of the topic; if false, returns the raw API response.
Output shape
a single item with a topic object or raw response data
The output structure depends on the 'Simplify' toggle. The simplified version contains topic metadata (title, slug, etc.), while the raw version contains the full JSON response from the Discourse API.
Examples
Example 1: Retrieve a specific topic by numeric ID
Select 'ID' mode for 'Topic ID or URL', enter the topic ID (e.g., 123).
Example 2: Retrieve a topic using its URL
Select 'URL' mode for 'Topic ID or URL', enter the full URL (e.g., https://forum.example.com/t/topic-slug/123).
Example 3: Get the raw API response for a topic
Select 'ID' mode, enter the topic ID, and set 'Simplify' to false.