get_post_details
Fetch Reddit posts with comments using URL or post ID, including options for comment limits, sorting, and link extraction to analyze discussions.
Instructions
Fetch a Reddit post with its comments. Requires EITHER url OR post_id. IMPORTANT: When using post_id alone, an extra API call is made to fetch the subreddit first (2 calls total). For better efficiency, always provide the subreddit parameter when known (1 call total).
Input Schema
Name | Required | Description | Default |
---|---|---|---|
comment_depth | No | Levels of nested replies to include (1-10, default: 3) | |
comment_limit | No | Maximum comments to fetch (1-500, default: 20) | |
comment_sort | No | Comment ordering: "best" (algorithm-ranked), "top" (highest score), "new", "controversial", "qa" (Q&A style). Default: best | |
extract_links | No | Extract all URLs mentioned in post and comments (default: false) | |
max_top_comments | No | Number of top comments to return (1-50, default: 5) | |
post_id | No | Reddit post ID (e.g., "abc123"). Can be used alone or with subreddit for better performance | |
subreddit | No | Optional subreddit name when using post_id. Providing it avoids an extra API call (e.g., "science") | |
url | No | Full Reddit post URL (e.g., "https://reddit.com/r/science/comments/abc123/...") |