Get Top Posts
get_top_postsFetch top posts from a subreddit or Reddit's anonymous front page over a selected time window, with pagination and RSS fallback.
Instructions
Top posts of a subreddit (or the anonymous front page) over a time window (default week). Read-only, anonymous. Returns {"data": [...], "after": cursor|null}. Also works in RSS fallback mode (max ~25 posts, no score/comment counts, no pagination).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | Pagination cursor: the 'after' value returned by a previous call. Omit for the first page. | |
| limit | No | How many items to return, 1-100 (default 10). | |
| subreddit | No | Subreddit name without the r/ prefix (e.g. 'LocalLLaMA'). Omit for Reddit's default anonymous front page. | |
| time_filter | No | Time window: hour, day, week, month, year or all. | week |