Reddit API by APISH
Pricing
$4.00 / 1,000 credits
Reddit API by APISH
Search Reddit and read posts, full comment trees, communities and user histories as JSON, without a Reddit app, via APISH. Pay per credit; failed calls are free.
Pricing
$4.00 / 1,000 credits
Rating
0.0
(0)
Developer
APISH
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
2
Monthly active users
11 days ago
Last modified
Categories
Features
Share
Get public Reddit data as clean, consistent JSON: reddit search suggestions, reddit comment with context, comments of a Reddit post, reddit custom feed posts, reddit posts linking to a domain, reddit popular posts and more. 30 endpoints, one response shape, numbers parsed, absolute URLs.
How to use
- Pick an Endpoint. Each option shows what it returns and its price in credits.
- Enter its Parameters as JSON, for example
{"q":"SpaceX Starship"}. All parameters are listed below. - Run. Each call becomes one row in the dataset. Use Batch to run the same endpoint for many inputs and Pages per input to follow pagination.
Pricing
Pay per event: you pay per APISH credit the call used. The price of each endpoint is in the table below. Calls that fail on our side (server errors, timeouts, blocks) are free.
Endpoints
| Endpoint | Returns | Required parameters | Credits |
|---|---|---|---|
/reddit/v1/autocomplete | Reddit search suggestions | q | 1 |
/reddit/v1/comment | Reddit comment with context | — | 1 |
/reddit/v1/comments | Comments of a Reddit post | — | 2 |
/reddit/v1/custom-feed | Reddit custom feed posts | — | 1 |
/reddit/v1/domain | Reddit posts linking to a domain | domain | 1 |
/reddit/v1/popular | Reddit popular posts | — | 1 |
/reddit/v1/post | One Reddit post with top comments | — | 1 |
/reddit/v1/post/duplicates | Other discussions of a Reddit post | — | 1 |
/reddit/v1/post/transcript | Reddit video transcript | url | 1 |
/reddit/v1/search | Search Reddit posts | q | 1 |
/reddit/v1/search/comments | Reddit comment search | q | 1 |
/reddit/v1/search/users | Reddit user search | q | 1 |
/reddit/v1/subreddit | Subreddit posts | subreddit | 1 |
/reddit/v1/subreddit/comments | Latest comments in a subreddit | subreddit | 1 |
/reddit/v1/subreddit/details | Subreddit details and rules | subreddit | 1 |
/reddit/v1/subreddit/rules | Subreddit rules | subreddit | 1 |
/reddit/v1/subreddit/search | Search subreddits | q | 1 |
/reddit/v1/subreddit/similar | Similar subreddits | subreddit | 1 |
/reddit/v1/subreddit/widgets | Subreddit sidebar widgets | subreddit | 1 |
/reddit/v1/subreddit/wiki | Subreddit wiki page | subreddit | 1 |
/reddit/v1/subreddit/wiki/revisions | Subreddit wiki page history | subreddit | 1 |
/reddit/v1/subreddits/feed | Combined feed of several subreddits | subreddits | 1 |
/reddit/v1/subreddits/new | Newest subreddits | — | 1 |
/reddit/v1/subreddits/popular | Popular subreddits | — | 1 |
/reddit/v1/user/about | Reddit user profile | username | 1 |
/reddit/v1/user/comments | A Reddit user's comments | username | 1 |
/reddit/v1/user/overview | A Reddit user's posts and comments | username | 1 |
/reddit/v1/user/posts | A Reddit user's posts | username | 1 |
/reddit/v1/user/rank | Where a user's posts rank in a subreddit | username, subreddit | 1 |
/reddit/v1/user/stats | Reddit user stats | username | 1 |
Output
Each dataset row has endpoint, params, status, credits_used and the endpoint's data. Add "raw": 1 to the parameters to also get the site's original record, or "fields": "a,b.c" to return only the fields you need.
Endpoint details
Reddit search suggestions
Endpoint /reddit/v1/autocomplete · 1 credit per successful call.
What Reddit's search box suggests for a few typed letters: suggested queries, communities (name, id, weekly visitors or description, icon, NSFW and quarantine flags) and profiles.
Parameters:
q(required): The text typed so far.nsfw: true includes NSFW communities.
Example parameters: {"q":"pyth"}
Reddit comment with context
Endpoint /reddit/v1/comment · 1 credit per successful call.
One comment (its permalink view): the comment, the post it is on, up to context parent comments above it (top first, each with its parent id) and the replies under it in thread order (up to limit). Give the comment link as url, or post_id plus comment_id. Each item has author, text, HTML, date, permalink, links and images.
Parameters:
url: Comment link: reddit.com/r/post_id: The post (id like 1qpq3cc, t3_1qpq3cc, or its link), with comment_id, when url is not given.comment_id: Comment id (o2ay8su or t1_o2ay8su), with post_id.context: Parent comments to include above the comment, 0 to 8 (default 3).limit: Most items to read (post, parents, comment and replies), 1 to 100 (default 50).
Example parameters: {"url":"https://www.reddit.com/r/Python/comments/1qpq3cc/comment/o2ay8su/"}
Comments of a Reddit post
Endpoint /reddit/v1/comments · 2 credits per successful call.
The post's comment tree (25 top-level threads per page). next_cursor loads the next top-level comments; more_replies lists the reply threads Reddit folded, each with its own cursor for this route. next_cursor is null on the last page. depth keeps only comments down to that reply level (0 = top-level only).
Parameters:
url: Post URL (instead of subreddit + post_id).subredditpost_idsort— one ofbest,confidence,top,new,controversial,old,qa: Comment sort: best (confidence), top (default), new, controversial, old, qa.post_url: Same asurl.tree— one of0,1: 1 addscomment_tree: the same comments nested, each with itsrepliesand foldedmore_replies.cursor:next_cursorfrom the previous page (more top-level comments), or amore_replies[].cursor(the replies Reddit folded under that comment).depth: Deepest reply level to return: 0 = top-level comments only, 1 = and their direct replies, and so on.more_repliesthen lists only threads above that level.
Example parameters: {"subreddit":"Python","post_id":"1x89bnq","sort":"top"}
Reddit custom feed posts
Endpoint /reddit/v1/custom-feed · 1 credit per successful call.
Posts of a user's public custom feed (multireddit): id, title, author, community, date, linked URL, thumbnail, images, text and permalink. Give the feed link as url, or username plus name. 404 when the feed does not exist or is private. Pass next_cursor back as cursor; null on the last page.
Parameters:
url: Custom feed link: reddit.com/user/username: Owner of the feed (spez, u/spez or a profile link), with name, when url is not given.name: The feed's name, as in reddit.com/user/sort— one ofhot,new,top,rising,controversial: hot (default), new, top, rising, controversial.time— one ofhour,day,week,month,year,all: Time range for top/controversial: hour, day (default), week, month, year, all.limit: Posts per page, 1 to 100 (default 25).cursor: Cursor fromnext_cursoron the previous response;next_cursoris null on the last page.
Example parameters: {"username":"Lapper","name":"depthhub","sort":"hot"}
Reddit posts linking to a domain
Endpoint /reddit/v1/domain · 1 credit per successful call.
Posts across Reddit that link to a website (Reddit's /domain/
Parameters:
domain(required): A domain (youtube.com, nytimes.com, i.redd.it) or any link on it.sort— one ofhot,new,top,controversial: hot (default), new, top, controversial.time— one ofhour,day,week,month,year,all: Time range for top/controversial: hour, day (default), week, month, year, all.limit: Posts per page, 1 to 100 (default 25).cursor: Cursor fromnext_cursoron the previous response;next_cursoris null on the last page.
Example parameters: {"domain":"youtube.com"}
Reddit popular posts
Endpoint /reddit/v1/popular · 1 credit per successful call.
r/popular as Reddit shows it to visitors: 25 posts per page with score, upvote ratio, comment count, awards, flair, media (video, gallery, images), flags and the raw post attributes. country gives a country's popular feed (it changes the hot and best orders). Pass next_cursor back as cursor (the other parameters are kept in it); null on the last page.
Parameters:
sort— one ofhot,best,new,top,rising,controversial: hot (default), best, new, top, rising, controversial.time— one ofhour,day,week,month,year,all: Time range for top/controversial: hour, day (default), week, month, year, all.country: Two-letter country code for that country's popular feed (e.g. US, GB, IN, DE), or GLOBAL.cursor: Cursor fromnext_cursoron the previous response;next_cursoris null on the last page.
Example parameters: {"sort":"hot"}
One Reddit post with top comments
Endpoint /reddit/v1/post · 1 credit per successful call.
The post (title, author, text, link, media, dates, community) with its score, comment count and NSFW/spoiler flags (stats_found says whether they were found) and its top comments.
Parameters:
url: Post URL (or pass it aspost_url).post_url: Same asurl.stats— one of1,0: 0 skips the score/comment-count lookup (faster).
Example parameters: {"url":"https://www.reddit.com/r/Python/comments/1x89bnq/python_310315_encoding_benchmarks_big_gains_for/"}
Other discussions of a Reddit post
Endpoint /reddit/v1/post/duplicates · 1 credit per successful call.
Crossposts and other posts of the same link across communities (the post's "other discussions"), with title, author, community, date, link and thumbnail. post is the original. Pass next_cursor back as cursor; null on the last page.
Parameters:
url: Post URL (or passpost_id).post_id: Post id, e.g. 1xhz9fy (instead of url).cursor: Cursor fromnext_cursoron the previous response;next_cursoris null on the last page.
Example parameters: {"url":"https://www.reddit.com/r/technology/comments/1xhz9fy/massive_leak_exposes_41000_homeland_security/"}
Reddit video transcript
Endpoint /reddit/v1/post/transcript · 1 credit per successful call.
Every response includes credits_used: the credits this call cost. Speech-to-text on the v.redd.it audio.
Parameters:
url(required)
Example parameters: {"url":"https://www.reddit.com/r/youseeingthisshit/comments/1kquo45/son_who_lives_abroad_returns_home_and_video_calls/"}
Search Reddit posts
Endpoint /reddit/v1/search · 1 credit per successful call.
Parameters:
q(required)sort: relevance (default), hot, top, new, comments.time— one ofall,year,month,week,day,hour: Time range: all (default), year, month, week, day, hour.subreddit: Search inside one subreddit.engine— one offeed,web: feed (default): 25 posts per page with text and links. web: the results of reddit.com's search box, with votes, comment counts and NSFW/spoiler flags (about 7 per page). Pass the same engine with the cursor.cursor: Value ofnext_cursorfrom the previous page.
Example parameters: {"q":"SpaceX Starship"}
Reddit comment search
Endpoint /reddit/v1/search/comments · 1 credit per successful call.
Comments matching a query, with their post and subreddit. Pass next_cursor back as cursor; it is null on the last page.
Parameters:
q(required)sort— one ofrelevance,top,new: relevance (default), top, new.time— one ofall,year,month,week,day,hour: all (default), year, month, week, day, hour.subreddit: Search inside one subreddit.cursor:next_cursorfrom the previous page.
Example parameters: {"q":"fastapi"}
Reddit user search
Endpoint /reddit/v1/search/users · 1 credit per successful call.
Public Reddit accounts whose name matches the query: username, avatar, karma, description. Pass next_cursor back as cursor.
Parameters:
q(required)cursor:next_cursorfrom the previous page.
Example parameters: {"q":"python"}
Subreddit posts
Endpoint /reddit/v1/subreddit · 1 credit per successful call.
Pass the same sort and time with the cursor. Pass next_cursor back as cursor for the next posts. next_cursor is null on the last page. flair, nsfw and domain filter the posts of the feed page (about 25); with any of them the answer adds applied_filters and page_count (posts on the page before filtering). Keep following next_cursor for more matches.
Parameters:
subreddit(required)sort— one ofhot,new,top,rising,controversial,best: Feed order: hot (default), new, top, rising, controversial, best.time— one ofhour,day,week,month,year,all: Time range for top/controversial: hour, day (default), week, month, year, all.cursor: Cursor fromnext_cursoron the previous response;next_cursoris null on the last page.flair: Only posts whose flair contains this text (case-insensitive), e.g. discussion.nsfw— one ofexclude,only: exclude: leave out NSFW posts; only: NSFW posts only.domain: Only posts linking to this domain (or its subdomains), e.g. github.com, i.redd.it, or self.python for text posts.
Example parameters: {"subreddit":"python"}
Latest comments in a subreddit
Endpoint /reddit/v1/subreddit/comments · 1 credit per successful call.
The newest comments across a community (100 per page): author, body, date, link, and the post each one replies to. Pass next_cursor back as cursor; null on the last page.
Parameters:
subreddit(required)cursor: Cursor fromnext_cursoron the previous response;next_cursoris null on the last page.
Example parameters: {"subreddit":"AskReddit"}
Subreddit details and rules
Endpoint /reddit/v1/subreddit/details · 1 credit per successful call.
Parameters:
subreddit(required)
Example parameters: {"subreddit":"programming"}
Subreddit rules
Endpoint /reddit/v1/subreddit/rules · 1 credit per successful call.
The community's rules in order: number, title, description (text and HTML).
Parameters:
subreddit(required)
Example parameters: {"subreddit":"Python"}
Search subreddits
Endpoint /reddit/v1/subreddit/search · 1 credit per successful call.
Parameters:
q(required)cursor: Value ofnext_cursorfrom the previous page.
Example parameters: {"q":"python"}
Similar subreddits
Endpoint /reddit/v1/subreddit/similar · 1 credit per successful call.
Communities related to a subreddit: the related communities it lists in its sidebar (with member counts), then the communities Reddit's community search finds for its name (with weekly visitors and contributions). Each item says its source. Pass next_cursor back as cursor for more search results; null on the last page.
Parameters:
subreddit(required)cursor: Cursor fromnext_cursoron the previous response;next_cursoris null on the last page.
Example parameters: {"subreddit":"Python"}
Subreddit sidebar widgets
Endpoint /reddit/v1/subreddit/widgets · 1 credit per successful call.
Everything in a community's sidebar, in order, each widget with its kind and data: bookmarks (links and menus), rules, post flairs (text, color, emoji, filter link), calendar events, text widgets (text, HTML, links), images, buttons and community lists (with member counts). Also the community card: title, description, weekly visitors and contributions, creation date, privacy and the status line.
Parameters:
subreddit(required): Community name (Python), r/Python, or any reddit.com link inside the community.
Example parameters: {"subreddit":"Python"}
Subreddit wiki page
Endpoint /reddit/v1/subreddit/wiki · 1 credit per successful call.
A community wiki page as logged-out visitors read it: the latest revision (or the one revision opens) with its date, editor and edit reason, the table of contents, the text, the HTML, every link and the other wiki pages of the community it links to. subreddit also takes a wiki link (reddit.com/r/Python/wiki/index), which sets the page too. 404 when the page does not exist or the community keeps its wiki private.
Parameters:
subreddit(required): Community name (Python), r/Python, or a reddit.com link to the community or to a wiki page.page: Wiki page name (index by default; nested pages like faq/general) or its link.revision: Open an older revision: arevision_cursorfrom /reddit/v1/subreddit/wiki/revisions, orolder_revision_cursorfrom this route for the revision before the one shown.
Example parameters: {"subreddit":"Python"}
Subreddit wiki page history
Endpoint /reddit/v1/subreddit/wiki/revisions · 1 credit per successful call.
The edit history of a community wiki page, newest first: revision id, date, editor and edit reason, plus a revision_cursor that opens that revision with /reddit/v1/subreddit/wiki. content=1 adds each revision's text, HTML and table of contents. Pass next_cursor back as cursor for older revisions; null at the first revision.
Parameters:
subreddit(required): Community name (Python), r/Python, or a reddit.com link to the community or to a wiki page.page: Wiki page name (index by default) or its link.limit: Revisions per page, 1 to 10 (default 3).content— one of0,1: 1 to include each revision's text, HTML and table of contents.cursor: Cursor fromnext_cursoron the previous response;next_cursoris null on the last page.
Example parameters: {"subreddit":"Python"}
Combined feed of several subreddits
Endpoint /reddit/v1/subreddits/feed · 1 credit per successful call.
One feed of posts from several communities ranked together, as Reddit's r/a+b view shows them: id, title, author, community, date, linked URL, thumbnail, images, text and permalink. Pass next_cursor back as cursor; null on the last page.
Parameters:
subreddits(required): Up to 50 community names separated by commas (Python,learnpython), or a reddit.com/r/a+b link.sort— one ofhot,new,top,rising,controversial: hot (default), new, top, rising, controversial.time— one ofhour,day,week,month,year,all: Time range for top/controversial: hour, day (default), week, month, year, all.limit: Posts per page, 1 to 100 (default 25).cursor: Cursor fromnext_cursoron the previous response;next_cursoris null on the last page.
Example parameters: {"subreddits":"Python,learnpython"}
Newest subreddits
Endpoint /reddit/v1/subreddits/new · 1 credit per successful call.
Newly created public communities, newest first (100 per page by default): id, name, title, description, icon, creation date and creator. Pass next_cursor back as cursor; null on the last page.
Parameters:
cursor: Cursor fromnext_cursoron the previous response;next_cursoris null on the last page.limit: Communities per page, 1 to 100 (default 100).
Popular subreddits
Endpoint /reddit/v1/subreddits/popular · 1 credit per successful call.
The most popular communities in Reddit's order (100 per page by default): id, name, title, description, icon, creation date and creator. Pass next_cursor back as cursor; null on the last page.
Parameters:
cursor: Cursor fromnext_cursoron the previous response;next_cursoris null on the last page.limit: Communities per page, 1 to 100 (default 100).
Reddit user profile
Endpoint /reddit/v1/user/about · 1 credit per successful call.
A public profile: id, display name, description, karma (post and comment), account creation date, verification, avatar, trophies and the communities the user moderates.
Parameters:
username(required): Username, u/name or a profile URL.
Example parameters: {"username":"spez"}
A Reddit user's comments
Endpoint /reddit/v1/user/comments · 1 credit per successful call.
Each comment has score, date, community, the post it replies to and the body. Pagination: pass the cursor from next_cursor on the previous response; next_cursor is null on the last page.
Parameters:
username(required)sort— one ofnew,hot,top,controversial: new (default), hot, top or controversial. Pass the same sort and time with the cursor.time— one ofhour,day,week,month,year,all: With top/controversial: hour, day, week, month, year (default) or all.cursor: Cursor fromnext_cursoron the previous response;next_cursoris null on the last page.
Example parameters: {"username":"spez"}
A Reddit user's posts and comments
Endpoint /reddit/v1/user/overview · 1 credit per successful call.
The profile overview: posts and comments mixed in profile order (each item has kind: post or comment), with score, date, community, the post a comment replies to, and the body. Pass next_cursor back as cursor; null on the last page.
Parameters:
username(required)sort— one ofnew,hot,top,controversial: new (default), hot, top or controversial. Pass the same sort and time with the cursor.time— one ofhour,day,week,month,year,all: With top/controversial: hour, day, week, month, year (default) or all.cursor: Cursor fromnext_cursoron the previous response;next_cursoris null on the last page.
Example parameters: {"username":"GallowBoob"}
A Reddit user's posts
Endpoint /reddit/v1/user/posts · 1 credit per successful call.
Each post has score, upvote ratio, comment count, awards, flair, media (video, gallery, images) and flags. Pagination: pass the cursor from next_cursor on the previous response; next_cursor is null on the last page.
Parameters:
username(required)sort— one ofnew,hot,top,controversial: new (default), hot, top or controversial. Pass the same sort and time with the cursor.time— one ofhour,day,week,month,year,all: With top/controversial: hour, day, week, month, year (default) or all.cursor: Cursor fromnext_cursoron the previous response;next_cursoris null on the last page.
Example parameters: {"username":"GallowBoob"}
Where a user's posts rank in a subreddit
Endpoint /reddit/v1/user/rank · 1 credit per successful call.
Walks the community's feed (sort and time as on Reddit) up to max_pages pages of about 25 posts and returns each post by the user with its rank (1-based position), page and full post data. best_rank is the highest one; reached_end says the whole feed was scanned.
Parameters:
username(required)subreddit(required)sort— one ofhot,new,top,rising,controversial,best: hot (default), new, top, rising, controversial, best.time— one ofhour,day,week,month,year,all: Time range for top/controversial: hour, day (default), week, month, year, all.max_pages: Feed pages to scan, 1 to 10 (default 5).
Example parameters: {"username":"GallowBoob","subreddit":"interestingasfuck"}
Reddit user stats
Endpoint /reddit/v1/user/stats · 1 credit per successful call.
Karma split (total, post, comment), number of posts and comments, account creation date and age, premium flag, display name, description and avatar. Reddit no longer shows awarder/awardee karma publicly; those fields are null.
Parameters:
username(required): Username, u/name or a profile URL.
Example parameters: {"username":"spez"}
Support
Questions, bugs or a missing field? Open an issue in this Actor's Issues tab and we will reply there.
Public data only: nothing behind a login. You are responsible for how you use the data you collect.