get_topic
Retrieve detailed information about a specific topic using its ID or slug. Returns topic data including name, description, follower count, and posts. Requires either topic ID or slug for successful operation.
Instructions
Retrieve detailed information about a specific topic by ID or slug.
Parameters:
- id (str, optional): The topic's unique ID.
- slug (str, optional): The topic's slug (e.g., "artificial-intelligence").
At least one of `id` or `slug` must be provided.
Returns:
- success (bool)
- data (dict): If successful, contains topic details:
- id, name, description, follower_count, posts, etc.
- error (dict, optional)
- rate_limits (dict)
Notes:
- Returns an error if neither `id` nor `slug` is provided, or if the topic is not found.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
id | No | ||
slug | No |
Input Schema (JSON Schema)
{
"properties": {
"id": {
"default": null,
"title": "Id",
"type": "string"
},
"slug": {
"default": null,
"title": "Slug",
"type": "string"
}
},
"title": "get_topicArguments",
"type": "object"
}