Looking for the overview — what this API returns, what it costs, and a call you can run without a key? See the Reddit API page →
Social Media

Reddit API & Scraper

The Reddit API returns subreddit posts, comments, search and user data as clean JSON.

11 actionsLive JSON1,000 free credits$0.67–$1.50 / 1,000 creditsMCP-ready
Get a free keyOpen in playground

🤖 Using an AI assistant? Copy this link into ChatGPT / Claude / Cursor — it reads every endpoint and parameter instantly and tells you if this API fits your use case.

The primary subreddit_posts endpoint returns posts with title, author, score, comment count, timestamp and URL, and you can pull a post's comments with deep pagination, search across Reddit, fetch a user profile, read subreddit_about and discover trending communities. It is built for social listening, market research and RAG pipelines that need live Reddit data — logged-out, no account pool — without a fragile scraper. One ReefAPI key, one shared credit pool, the standard envelope.

Reference

Reddit fullname prefixes, and which action hands you which one

Reddit gives every object a type-prefixed "fullname" alongside a bare base36 id, and the two are not interchangeable when you pass them back in. This table lists the prefixes that actually appeared in measured responses and the field each one arrives in. It also records what happens when you send a bad enum value versus a value that simply matches nothing, because those two failures look completely different.

Prefix or fieldWhat it identifiesMeasured example
t3_A post. Every post row carries both id and fullname, and a comment's link_id points at it.r/Python returned id 1vy0ywg with fullname t3_1vy0ywg
t1_A comment. Comment rows also carry parent_id, which is t3_ for a top-level comment and t1_ for a reply.t1_fgs7erl with parent_id t3_f08dxb and link_id t3_f08dxb
t5_A subreddit. Only subreddit_about returns it.r/Python returned fullname t5_2qh0y, subscribers 1507579
user idBase36 and unprefixed in the payload. There is no t2_ anywhere in the user record.user with kind=about for spez returned id 1w72
post_id parameterTakes the bare post id, not the fullname. A full reddit URL is accepted too.post_comments with post_id f08dxb resolved the AskReddit thread
created_utcUnix seconds as a float, UTC, on posts, comments and subreddits alike.1581069212.0 on the post, 1201230879.0 for the r/Python subreddit itself
Bad enum valueRejected before any fetch. INVALID_PARAM comes back with detail.param and detail.allowed listing the real vocabulary.sort=bogus returned INVALID_PARAM in 1.9 ms
A flair that matches nothingNot rejected. ok stays true, posts[] is empty, completeness_pct is 0.0, and pagination still offers a next_cursor.flair=NoSuchFlairXyz on r/Python returned 0 posts with has_more true

time only does anything when sort is top or controversial. Passing time=week alongside sort=hot is accepted and silently has no effect, so a "past week" feed that looks wrong is usually a sort that was never top in the first place.

Live example

Real request and response JSON

Captured from the indexed primary action, search, on .

Captured request
{
  "method": "POST",
  "url": "https://api.reefapi.com/reddit/v1/search",
  "headers": {
    "x-api-key": "$REEF_KEY",
    "content-type": "application/json"
  },
  "body": {
    "subreddit": "python",
    "limit": 10
  }
}
Captured response
{
  "ok": true,
  "meta": {
    "api": "reddit",
    "endpoint": "search",
    "mode": "live",
    "latency_ms": 3400.5,
    "record_count": 10,
    "bytes": 33855,
    "cache_hit": false,
    "completeness_pct": 100,
    "requests": 1,
    "source_used": "arctic",
    "pagination": {
      "next_cursor": null,
      "has_more": false
    }
  },
  "data": {
    "results": [
      {
        "id": "1v00o59",
        "fullname": "t3_1v00o59",
        "title": "Bulletproofing User Sync: Handling Clerk and Auth0 Webhook Failures",
        "author": "JadeLuxe",
        "subreddit": "Python",
        "score": 1,
        "upvote_ratio": 1,
        "num_comments": 0,
        "created_utc": 1784392821,
        "url": "https://www.reddit.com/r/Python/comments/1v00o59/bulletproofing_user_sync_handling_clerk_and_auth0/",
        "permalink": "https://www.reddit.com/r/Python/comments/1v00o59/bulletproofing_user_sync_handling_clerk_and_auth0/",
        "selftext": "[removed]",
        "flair": "Discussion",
        "over_18": false,
        "spoiler": false,
        "stickied": false,
        "locked": false,
        "is_self": true,
        "is_video": false,
        "domain": "self.Python",
        "thumbnail": null,
        "num_crossposts": 0,
        "total_awards_received": 0,
        "edited": false
      },
      {
        "id": "1v0030v",
        "fullname": "t3_1v0030v",
        "title": "How I built an offline, AI-driven Live Caption Video Player using PySide6, VLC, and Vosk",
        "author": "abbaaminu",
        "subreddit": "Python",
        "score": 1,
        "upvote_ratio": 1,
        "num_comments": 1,
        "created_utc": 1784391428,
        "url": "https://www.reddit.com/r/Python/comments/1v0030v/how_i_built_an_offline_aidriven_live_caption/",
        "permalink": "https://www.reddit.com/r/Python/comments/1v0030v/how_i_built_an_offline_aidriven_live_caption/",
        "selftext": "",
        "flair": "News",
        "over_18": false,
        "spoiler": false,
        "stickied": false,
        "locked": false,
        "is_self": true,
        "is_video": false,
        "domain": "self.Python",
        "thumbnail": null,
        "num_crossposts": 0,
        "total_awards_received": 0,
        "edited": false
      },
      {
        "id": "1v001ni",
        "fullname": "t3_1v001ni",
        "title": "How I built an offline, AI-driven Live Caption Video Player using PySide6, VLC, and Vosk",
        "author": "abbaaminu",
        "subreddit": "Python",
        "score": 1,
        "upvote_ratio": 0.99,
        "num_comments": 2,
        "created_utc": 1784391336,
        "url": "https://www.reddit.com/r/Python/comments/1v001ni/how_i_built_an_offline_aidriven_live_caption/",
        "permalink": "https://www.reddit.com/r/Python/comments/1v001ni/how_i_built_an_offline_aidriven_live_caption/",
        "selftext": "[removed]",
        "flair": "Showcase",
        "over_18": false,
        "spoiler": false,
        "stickied": false,
        "locked": false,
        "is_self": true,
        "is_video": false,
        "domain": "self.Python",
        "thumbnail": null,
        "num_crossposts": 0,
        "total_awards_received": 0,
        "edited": false
      }
    ],
    "count": 10,
    "type": "post"
  }
}
Actions

What the Reddit API does

ActionDescriptionConcrete use caseKey params
subreddit_postsPosts in a subreddit, ranked by `sort`. Returns title/author/score/comment-count. Supports deep paging (`page`) and `flair` filtering.Social-listening tools call subreddit_posts to get posts in a subreddit, ranked by `sort`.subreddit, sub, sort, time, limit, ...
multi_subreddit_postsONE merged newest-first feed across a whole watchlist of subreddits — pass up to 5000 names in a single call instead of polling each one. Built for near-real-time monitoring: posts show up seconds after they go live, `since_utc` returns only what is new since your last poll.Creator and influencer platforms call multi_subreddit_posts to get oNE merged newest-first feed across a whole watchlist of subreddits.subreddits, subs, subreddit, sub, sort, ...
post_commentsThreaded comments for a post. Returns author/body/score per comment.Brand-monitoring teams call post_comments to get threaded comments for a post.post_id, id, url, sort, limit, ...
searchSearch posts, comments, or users by `q` and/or `subreddit`/`author`. Returns results[]. Comment search reads Reddit's own live comment index. Cursor pagination + `flair` filter apply on the live source.Audience analysts call search to search posts, comments, or users by `q` and/or `subreddit`/`author`.q, query, subreddit, sub, author, ...
userUser profile or content. kind=about returns karma/profile; submitted/comments list items (with deep paging).Social-listening tools call user to get user profile or content.username, user, name, kind, limit, ...
subreddit_aboutSubreddit metadata: subscribers, description, created date, etc.Creator and influencer platforms call subreddit_about to get subreddit metadata.subreddit, sub, source
communitiesSearch subreddits by name/keyword — find communities matching a term, with each one's subscribers, title, description and over-18 flag.Brand-monitoring teams call communities to search subreddits by name/keyword.q, limit
trendingSite-wide discovery — hot/popular posts from r/popular or r/all (what's trending across Reddit right now), or the most-popular communities. No subreddit needed.Audience analysts call trending to get site-wide discovery.scope, kind, sort, time, limit, ...
user_searchFind Reddit users by name/keyword — people search. Returns matching profiles with karma. (Same as search with type=user.)Social-listening tools call user_search to find Reddit users by name/keyword.q, query, username, limit, after, ...
load_more_commentsExpand the collapsed 'more comments' nodes from a post_comments call — pass that response's more_ids to reveal the rest of the thread (build the FULL comment tree).Creator and influencer platforms call load_more_comments to get expand the collapsed 'more comments' nodes from a post_comments call.post_id, more_ids, link_id, id, url, ...
subreddit_extrasPublic subreddit extras: the community's rules and its wiki page index/content. (Moderator list is mod-only on Reddit and is not available logged-out.)Brand-monitoring teams call subreddit_extras to get public subreddit extras.subreddit, sub, include, wiki_page, source
Code samples

Call search from your stack

curl -X POST https://api.reefapi.com/reddit/v1/search \
  -H "x-api-key: $REEF_KEY" \
  -H "content-type: application/json" \
  -d '{"subreddit":"python","limit":10}'
MCP one-liner
Ask your MCP-connected assistant: call reefapi.reddit.search with {"subreddit":"python","limit":10}.
Use cases

Who uses this API and why

  • Market researchers call subreddit_posts and search to track what communities say about a product.
  • RAG pipelines pull post_comments to ground an AI assistant in real Reddit discussion.
  • Social-listening tools use trending and user to monitor rising topics and influential accounts.
FAQ

Questions developers ask before integrating

What is the difference between id and fullname, and which one do I store?

id is the bare base36 key and fullname is the same key with a type prefix. A measured r/Python post came back as id 1vy0ywg and fullname t3_1vy0ywg; a comment on another thread as id fgs7erl and fullname t1_fgs7erl. Store the fullname if you are keeping posts and comments in one table, because the bare ids share a namespace and a comment id can collide with a post id. Pass the bare id back in: post_comments takes post_id f08dxb, not t3_f08dxb.

Is score the real number of upvotes?

No. Reddit deliberately fuzzes score, so it is an approximation and two reads seconds apart can disagree by a few points on a busy thread. upvote_ratio is the more stable signal and it sits right next to score on every post: a measured r/rust post had score 3 with upvote_ratio 1.0, and another had score 0 with upvote_ratio 0.33, which tells you far more about reception than the 0 does. For trend work, track the pair rather than score alone.

Does an empty selftext mean it is a link post?

No, and this one trips people up. A measured AskReddit post had is_self true and selftext "" because it is a title-only question, while a measured r/rust post had is_self false and domain i.redd.it (an image link) yet carried 573 characters of selftext underneath it. Classify a post from is_self and domain, and treat selftext as a body that may or may not be present in either case.

What do [deleted] and [removed] mean, and are they the same thing?

They are different, and a comment can be in three states. Inside a single measured thread, one comment came back with author "[deleted]" and body "[removed]" (a moderator removal), another with author "[deleted]" and body "[deleted]" (the user deleted it), and a third with author "[deleted]" but its body fully intact (the account went away, the comment stayed). These are literal string values, not nulls, so a filter on author != null will not catch any of them.

post_comments gave me 10 comments on a thread with 13,297. How do I get the rest?

The tree comes back with explicit stubs rather than silently truncating. At the top level the response carries more_ids and has_more (a measured AskReddit thread returned 241 ids there), and inside replies[] you get objects shaped {more_children: 65, more_ids: [...]} wherever Reddit collapsed a branch. Feed those ids into load_more_comments to expand a branch. A stub with more_children 0 and an empty more_ids is a leaf, not an error.

Which source should I use, and what does auto pick?

auto is the default and chooses between the live site and the archives based on what you asked for. Set source=live when you specifically need the newest posts and the live-only features, because flair filtering, page-based deep paging and the cursor in meta.pagination.next_cursor all apply to the live source; the archive sources page by after_utc and before_utc instead. Reach for the archives when you are pulling old threads, where coverage beats freshness.

How does deep paging work across the post actions?

Two ways, and they do not mix. page (1 to 20) chains the cursors server-side, so page 2 really is the batch after page 1 without you holding any state. Or take meta.pagination.next_cursor from the previous response and send it back as cursor. A measured r/Python top-of-week call returned next_cursor t3_1vxrna7 with has_more true, which is simply the fullname of the last row it handed you. Both stop at Reddit's own listing depth, not at a limit of ours.

Why does searching comments return less per row than post_comments does?

Because search with type=comment reads Reddit's live comment index, which is a discovery surface rather than a full record. Measured rows carry id, fullname, body, subreddit, permalink, link_id and post_title, but author, score, parent_id and depth all come back null. Treat it as a way to find which threads to open, then resolve the detail: post_comments returns author and score for every comment in a thread, and user with kind=comments returns them per account (a measured spez comment came back with author spez, score 8 and parent_id t1_p1wd2fi).

What is the Reddit API?

Reddit API is a ReefAPI endpoint group for posts, comments, subreddits and search. It returns live JSON through POST requests under /reddit/v1.

Is the Reddit API free to try?

Yes. ReefAPI starts with 1,000 free credits, no card required. Reddit calls use the same shared credit balance as every other ReefAPI engine.

Do I need a Reddit login or account?

No login to Reddit is needed for the API response. You call ReefAPI with your x-api-key header, and the playground can run live examples before you create a production key.

How fresh is the Reddit data?

The page example is captured from a live subreddit_posts call, and production requests fetch live data through ReefAPI rather than a static sample.

How many credits does the Reddit API use?

Reddit actions currently cost 1-5 credits per successful call. Failed or blocked calls are free, and all APIs draw from one credit pool.

Can I call Reddit from an AI assistant or MCP client?

Yes. Connect ReefAPI once through MCP and your assistant can call reddit actions with the same key, credit pool and JSON envelope used by normal REST requests.

docs / reddit

Reddit

Posts, comments, subreddits and search.

base /reddit/v111 endpoints
post/reddit/v1/subreddit_posts1 credit

Posts in a subreddit, ranked by `sort`. Returns title/author/score/comment-count. Supports deep paging (`page`) and `flair` filtering.

ParameterAllowed / rangeDescription
subredditrequiredSubreddit name (without 'r/').
sort = hotoptionalhot · new · top · rising · controversialHow posts are ranked.
time = dayoptionalhour · day · week · month · year · allTime window — applies ONLY when sort = top or controversial.
limit = 10optional1–100How many posts to return (1–100).
flairoptionalFilter to one post flair, e.g. 'Discussion' (case-insensitive, live source only).
source = autooptionalauto · live · arctic · pullpushWhich Reddit data source to use — 'auto' picks the best source automatically.
page = 1optional1–20Deep paging: page 2 returns the NEXT batch after page 1 (server chains cursors for you, 1–20). Live source only — archive sources page via after_utc/before_utc.
cursoroptionalNext page: pass the previous response's meta.pagination.next_cursor (the 'Next' button does this automatically).
Try in playground →
post/reddit/v1/multi_subreddit_posts5 credits

ONE merged newest-first feed across a whole watchlist of subreddits — pass up to 5000 names in a single call instead of polling each one. Built for near-real-time monitoring: posts show up seconds after they go live, `since_utc` returns only what is new since your last poll.

ParameterAllowed / rangeDescription
subredditsrequiredSubreddit names to merge, comma-separated (no 'r/'). Up to 5000 — long lists are split across parallel fetches for you and returned as one feed.
sort = newoptionalnew · hot · rising · top · controversialHow posts are ranked.
time = dayoptionalhour · day · week · month · year · allTime window — applies ONLY when sort = top or controversial.
limit = 100optional1–500How many posts to return after merging (1–500).
since_utcoptionalPolling mode: return ONLY posts created after this unix time. Pass the previous response's newest_utc to get just the new ones.
max_pages = 1optional1–5Fetch this many pages per group (1–5) — raise it when a poll interval is long enough that 100 posts may not cover it.
cursoroptionalNext page: pass the previous response's meta.pagination.next_cursor (the 'Next' button does this automatically).
Try in playground →
post/reddit/v1/post_comments1 credit

Threaded comments for a post. Returns author/body/score per comment.

ParameterAllowed / rangeDescription
post_idrequiredPost ID or full Reddit URL.
sort = topoptionaltop · new · controversial · old · qaComment ordering.
limit = 50optional1–500How many comments (1–500).
depth = 10optional1–50Comment-tree depth (1–50).
source = autooptionalauto · live · arctic · pullpushWhich Reddit data source to use — 'auto' picks the best source automatically.
Try in playground →
post/reddit/v1/user1 credit

User profile or content. kind=about returns karma/profile; submitted/comments list items (with deep paging).

ParameterAllowed / rangeDescription
usernamerequiredReddit username (without 'u/').
kind = aboutoptionalabout · submitted · commentsWhat to return.
limit = 25optional1–100How many items (for submitted/comments, 1–100).
sort = newoptionalnew · top · hotOrdering (for submitted/comments).
source = autooptionalauto · live · arctic · pullpushWhich Reddit data source to use — 'auto' picks the best source automatically.
page = 1optional1–20Deep paging: page 2 returns the NEXT batch after page 1 (server chains cursors for you, 1–20). Live source only — archive sources page via after_utc/before_utc.
cursoroptionalNext page: pass the previous response's meta.pagination.next_cursor (the 'Next' button does this automatically).
Try in playground →
post/reddit/v1/subreddit_about1 credit

Subreddit metadata: subscribers, description, created date, etc.

ParameterAllowed / rangeDescription
subredditrequiredSubreddit name (without 'r/').
source = autooptionalauto · live · arctic · pullpushWhich Reddit data source to use — 'auto' picks the best source automatically.
Try in playground →
post/reddit/v1/communities1 credit

Search subreddits by name/keyword — find communities matching a term, with each one's subscribers, title, description and over-18 flag.

ParameterAllowed / rangeDescription
qrequiredName or keyword to search subreddits for.
limit = 25optional1–100Max communities to return (1–100).
Try in playground →
post/reddit/v1/load_more_comments3 credits

Expand the collapsed 'more comments' nodes from a post_comments call — pass that response's more_ids to reveal the rest of the thread (build the FULL comment tree).

ParameterAllowed / rangeDescription
post_idrequiredThe post these comments belong to (ID or Reddit URL).
more_idsrequiredComma-separated comment IDs from a post_comments response's more_ids list (or comments[].more_ids).
limit = 100optional1–100Max collapsed IDs to expand per call (1–100; Reddit caps ~100).
sort = topoptionaltop · new · controversial · old · qaComment ordering.
source = autooptionalauto · live · arctic · pullpushWhich Reddit data source to use — 'auto' picks the best source automatically.
Try in playground →
post/reddit/v1/subreddit_extras3 credits

Public subreddit extras: the community's rules and its wiki page index/content. (Moderator list is mod-only on Reddit and is not available logged-out.)

ParameterAllowed / rangeDescription
subredditrequiredSubreddit name (without 'r/').
include = rules,wikioptionalWhich extras to return: 'rules', 'wiki', or both (comma-separated).
wiki_pageoptionalFetch ONE wiki page's full content (e.g. 'index', 'faq'). Omit to list available page names.
source = autooptionalauto · live · arctic · pullpushWhich Reddit data source to use — 'auto' picks the best source automatically.
Try in playground →
Comparing scraping APIs?ReefAPI vs Apify