# How to get a subreddit's top posts of all time or this year via API (2026)

1 call, 25 posts a page: reddit.subreddits.posts.list with the subreddit, sort=popular and a window: all, 365d, 30d, 7d or 24h (the default), at $0.0020 a page, each post with its score, upvote ratio, comments and link. OneFeedAPI reads Reddit with 11 endpoints, from $0.0020 a call; a failed call is not charged, and the free trial covers up to 333 calls.

Updated 2026-11-11

## How do I choose the period?

`window` goes with `sort=popular` only; without it the top is of the last 24 hours. For a community's classics use `all`, for this year's trends `365d`. 25 a page; pass `page.next_cursor` back as `cursor`. A failed call is not charged.

## And the comments?

Pass a post's ID to `reddit.posts.comments.list` for its comments, at $0.0020 a page. The all-time top 100 of 10 subreddits is 40 calls.

## How do I use it from an AI?

Once connected, say “get the 100 all-time top posts of r/SaaS and r/Entrepreneur and sum up the pain points people raise again and again”.

To connect: paste this to your AI assistant: “Read https://onefeedapi.com/agents.md and set up OneFeedAPI here. My API key is dx_…; use it for every OneFeedAPI call.” A client that takes a remote MCP server can be given `https://onefeedapi.com/mcp` with the header `Authorization: Bearer <key>` instead.

## Why OneFeedAPI

- Steady: endpoints were available 100% of the last 30 days, on a public status page you can check.
- Fast: a paid call took 1.2 seconds at the median over the last 7 days (counted 2026-11-06).
- Fewer tokens: across 11 endpoints on Reddit, one recorded real response each, the platform's own JSON comes to 169k tokens and what an AI reads through OneFeedAPI's MCP server to 14k, 92% fewer; the JSON of a direct API call is 84% fewer too (counted 2026-11-06). Every platform answers in one shape: the author in `author`, counts in `metrics`, the next page in `page.next_cursor`, so another platform needs no new parser.
- See before you pay: every endpoint's page shows a recorded real response, field by field.
- Spending you control: a failed call is not charged; each key can have a limit, `X-Max-Price` caps one call, and the same `Idempotency-Key` within 24 hours is never charged twice.
- Ready for AI: a remote MCP server listed in the official MCP registry as `com.onefeedapi/mcp`, usable from Claude, Cursor and ChatGPT.
- Free trial of up to 333 calls, no card.

## Endpoints

- [Reddit community posts](https://onefeedapi.com/apis/reddit/subreddits/posts/list/) ($0.0020 / a call): Get a page of the posts of a Reddit community by its name, hot, newest or top score first. Top score is of the last day unless window asks for the last week, month or year, or all time.
- [Reddit post comments](https://onefeedapi.com/apis/reddit/posts/comments/list/) ($0.0020 / a call): Get a page of comments on a Reddit post by ID or link: text, commenter, score, reply count, time posted, with the first levels of replies.

## More about Reddit

- [Reddit API](https://onefeedapi.com/apis/reddit/)
- [GummySearch shuts down on December 1: what do I use for Reddit research? (2026)](https://onefeedapi.com/answers/gummysearch-alternative-reddit/)

---

Catalog revision dc959672dd18e2d0. [HTML version](https://onefeedapi.com/answers/reddit-top-posts-all-time/)
