API Anything

Reddit APIunofficial

Reddit, logged out: site-wide post search and a subreddit's hot feed, read from the pages reddit.com serves. Reddit challenges plain HTTP from many networks, so a first call can take the browser tier.

all live 2 operations, checked by the installs that call them.

Try it

Set up API Anything for your agents:

npx -y api-anything setup

Then ask your agent, which finds this site by itself, or call it from a shell:

api-anything pull reddit
api-anything call reddit hot sub=rust

Operations

OperationMethodLoginWritesStatus
hot(sub) -> title, subreddit, author, score, comments, url, permalink, posted, id

One subreddit's hot feed (reddit.com/r/<sub>/hot): the first 10 or so posts, with author, score, comments, the linked URL and the permalink.

GET no no Live0 confirmations
search(query) -> title, subreddit, votes, comments, posted, url

Search Reddit posts site-wide (reddit.com/search): the first page of matching posts, about 7, with subreddit, votes, comments and when each was posted.

GET no no Live0 confirmations

Notes

No account is needed. Reddit answers plain HTTP from many networks with a JS challenge, so a caller's first call often goes through the browser tier (about 12 s with Chrome starting, then 1 to 2 s a call). Later calls start there.

  • search returns the first page of post results, about 7, ranked by Reddit. votes and comments are strings of digits. No comments, communities or people results.
  • hot returns the posts the subreddit page renders first, usually 3 to 10, with no paging. url is the linked page on a link post and the post itself on a text post; permalink is relative to reddit.com.
  • A subreddit that is private, banned or misspelled answers input (no posts on the page).

About these operations

Each operation is a request learned from Reddit's own web pages: API Anything replays it over plain HTTP and falls back to a browser when it must. Read them as JSON.

← All shared sites