Pushshift alternative and historical Reddit archive API for Reddit posts, Reddit comments, subreddit listings, and keyword search by UTC date range (r/Python verified to 2008-01-25) as JSON, no Reddit login. 5 POST endpoints, 5 free calls/month per agent, then $0.0048-$0.0068/req via x402 (USDC on Base). JSON fields (reddit-archive-scraper): Post rows (type "post"): type, id, title, selftext, author, subreddit, score, upvote_ratio, num_comments, created_utc, created_iso, permalink, url, domain, link_flair_text, is_self, is_video, over_18, locked, stickied, spoiler, total_awards_received. Comment rows (type "comment"): type, id, post_id, parent_id, depth, link_id, body, author, subreddit, score, created_utc, created_iso, permalink, is_submitter, total_awards_received. APIHub comparison (2026-11-24): - Reddit by Mark8 (https://apihub.io/marketplace/reddit): $0.0010/req, 100 free/mo, 23 GET endpoints; live Reddit only (25 posts/page, 50 comments/page), no historical archive. - Glim.sh (https://apihub.io/marketplace/external/x402_22d381478bb0): $0.0020-$0.0600/req, 9 endpoints, no free tier listed; live web/social data, no historical archive. - StableSocial (https://apihub.io/marketplace/external/x402_d8c1a882b877): from $0.0600/req, 36 endpoints, no free tier listed; live multi-platform social data, no historical archive. FAQ: Q: How far back does the Reddit archive go? A: From each subreddit's first archived post (r/Python verified to 2008-01-25) via afterDate/beforeDate UTC. Q: Need a Reddit login or key? A: No; authenticate with your APIHub key or x402 on Base. Q: Archive limit and price? A: Up to 10 posts/call plus optional comments (includeComments: true) at $0.0068/req after 5 free calls/mo. Q: Reddit-wide archive keyword search? A: No; archive queries require subreddits, authors, or postIds. Use reddit-search-scraper on this service for Reddit-wide search.
Includes 5 free calls per month
After the free quota, standard per-request pricing applies via x402 (USDC on Base).
Requests (30d)
26
Avg latency
9822ms
Uptime
100.0%
Historical Reddit archive API (Pushshift alternative): fetch archived Reddit posts and comments by subreddits, authors, or postIds within an exact UTC date range (afterDate/beforeDate), with optional searchQuery, commentQuery, authorHistory, sortOrder (newest, oldest, top), minScore, and includeComments. Returns up to 10 posts per call (plus optional comments) as JSON. Post fields: type, id, title, selftext, author, subreddit, score, upvote_ratio, num_comments, created_utc, created_iso, permalink, url, domain, link_flair_text, is_self, is_video, over_18, locked, stickied, spoiler, total_awards_received. Comment fields: type, id, post_id, parent_id, depth, link_id, body, author, subreddit, score, created_utc, created_iso, permalink, is_submitter, total_awards_received. Takes up to 150s. Example body: {"subreddits":["Python"],"afterDate":"2024-01-01","beforeDate":"2024-01-05","sortOrder":"newest","maxPosts":5,"includeComments":true,"maxCommentsPerPost":5}
Request schema
One or more subreddits to archive (without r/). Optional when postIds or authors is set. The public archives cannot search all of Reddit by keyword.
Fetch these exact posts: ids like 1b9u2yn, t3_ ids or reddit.com/r/.../comments/<id>/ links. Turn on Include Comments to get the full thread with reply depth.
Reddit usernames (without u/) whose archived posts to fetch, across all subreddits. Date window, keyword and minimum score still apply.
Also return every archived comment of the listed authors, not only their posts. Posts come from the Authors list as before; comments are flat rows with type comment.
Only return posts containing this keyword, inside the subreddits above.
Search the text of archived comments instead of posts. Needs subreddits or authors (the archive refuses it across all of Reddit). Rows come back as flat comment rows (type comment).
Newest first (default), oldest first, or top by score: the highest-scored items of the newest 5,000 matches in your window (the archive has no score sort).
Only keep posts and comments with this Reddit score or higher. Leave blank to keep everything, including downvoted rows.
Only include items created on or after this UTC date: YYYY-MM-DD or a full timestamp like 2024-01-31T12:00:00Z. Leave empty for no lower bound.
Only include items created before this UTC date: YYYY-MM-DD or a full timestamp. Leave empty to start from the most recent archived posts.
Maximum number of posts to return (across all subreddits). A request returns 10 rows at most.
Also scrape archived comments for each post (whole thread, each comment with a depth field: 0 = reply to the post). Increases result count (and cost) significantly.
Cap comments fetched per post (only used when Include Comments is on). Leave empty for all.
Response schema
{
"type": "array",
"description": "JSON array of archived Reddit post rows (type='post') and optional comment rows (type='comment').",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"post",
"comment"
]
},
"id": {
"type": "string"
},
"title": {
"type": "string",
"description": "Post title (post rows only)"
},
"selftext": {
"type": "string",
"description": "Post body text (post rows only)"
},
"body": {
"type": "string",
"description": "Comment body text (comment rows only)"
},
"post_id": {
"type": "string",
"description": "Parent post ID (comment rows only)"
},
"parent_id": {
"type": "string",
"description": "Parent thing ID t3_/t1_ (comment rows only)"
},
"depth": {
"type": "integer",
"description": "Comment reply depth, 0 = top-level reply (comment rows only)"
},
"link_id": {
"type": "string",
"description": "Full post link_id t3_... (comment rows only)"
},
"author": {
"type": "string"
},
"subreddit": {
"type": "string"
},
"score": {
"type": "integer"
},
"upvote_ratio": {
"type": "number",
"description": "Post rows only"
},
"num_comments": {
"type": "integer",
"description": "Post rows only"
},
"created_utc": {
"type": "integer"
},
"created_iso": {
"type": "string"
},
"permalink": {
"type": "string"
},
"url": {
"type": "string",
"description": "Post rows only"
},
"domain": {
"type": "string",
"description": "Post rows only"
},
"link_flair_text": {
"type": [
"string",
"null"
],
"description": "Post rows only"
},
"is_self": {
"type": "boolean",
"description": "Post rows only"
},
"is_video": {
"type": "boolean",
"description": "Post rows only"
},
"over_18": {
"type": "boolean",
"description": "Post rows only"
},
"locked": {
"type": "boolean",
"description": "Post rows only"
},
"stickied": {
"type": "boolean",
"description": "Post rows only"
},
"spoiler": {
"type": "boolean",
"description": "Post rows only"
},
"is_submitter": {
"type": "boolean",
"description": "Comment rows only"
},
"total_awards_received": {
"type": "integer"
}
}
}
}The comments and nested replies of any Reddit post link, one JSON row per comment (text, author, score, time, depth, parent). One call returns up to 20 comments. Main inputs: postUrls, maxCommentsPerPost (max 20), expandMoreComments, commentedAfter. A call takes up to 60 seconds.
Request schema
Links of posts, one per line. Short links (redd.it/…) and bare post ids work too. A post that was deleted or is private is reported and costs nothing.
Rows to save for each post; replies count as rows. A request returns 20 rows at most.
Follows Reddit's "load more comments" and "continue this thread" links. Turn it off for only the comments Reddit shows first, which is faster.
A day (YYYY-MM-DD) or a period back from now (12 hours, 7 days, 2 months).
Reddit posts and their comment threads by subreddit, post link, user or search, no Reddit login. Reddit blocks direct reads, so rows come from the public Arctic Shift archive and carry data_source. new is newest first; hot, top and controversial rank posts over 12 hours old by score. One call returns up to 10 posts as JSON (title, text, score, comment count, author, flair, links) and up to 50 comments per post. Inputs: mode, subreddit, postUrl, username, searchQuery, sort, timeFilter, maxPosts (max 10), maxComments. Takes up to 60 seconds. Example body: {"mode":"subreddit","subreddit":"python","sort":"top","timeFilter":"week","maxPosts":5,"maxComments":10}
Request schema
What to scrape from Reddit
Subreddit to scrape (e.g., 'python' or 'r/python'). A subreddit link or an old RSS feed link such as https://www.reddit.com/r/python/.rss also works. Required for subreddit mode.
Full URL of Reddit post to scrape (for post mode)
Reddit username to scrape posts from (for user mode)
Search query to find posts (for search mode)
Limit search to specific subreddit (optional for search mode)
How posts are ordered: hot, new, top, rising, controversial, or relevance (search only). Example: top.
Time range for top/controversial sort
Maximum number of posts to scrape (0 = unlimited) A request returns 10 rows at most.
Search mode only. Reddit's search also returns posts that only relate to your words (in New order, 15 of the 30 newest results for "home assistant" lacked one of the words on October 26, 2026). With this on, a post is kept only when its title or text contains every word of the query, so a keyword or brand watch returns real mentions.
Reddit ends a subreddit list after about 950 posts and a search after about 240. When on, the API also reads the other orders and time ranges of the same subreddit or search and adds the posts it has not saved yet, until Maximum Posts: about 2,400 posts of a large subreddit and about 1,100 of a broad search in our tests. Subreddit and search mode.
Maximum comments to scrape per post (applies to both post mode and subreddit mode with includeComments, 0 = unlimited)
Scrape comments for each post in subreddit mode (slower but more data)
Return every comment and reply as its own row, in thread order right after its post: type, post_id, post_title, comment_id, parent_id, depth (0 = top level), path (like 1.3.2), author, score, created_utc, body and indented_body. A CSV or XLSX export then shows the whole reply tree under its post. Off by default: comments come back nested in `replies`.
When ON (default), resolves Reddit's 'load more comments' stubs via /api/morechildren and follows 'continue this thread' links so the scraped count matches num_comments. Turn OFF for faster runs that only return the first ~50 comments per post.
Subreddit mode only: keep posts on or after this UTC date (YYYY-MM-DD). Invalid dates and other modes with this field are rejected.
Format returned in content on posts, comments and nested replies. Original text/Markdown/HTML fields remain available. Plain text is extracted from source HTML; original text is retained when HTML is absent.
Include extracted image URLs and thumbnails. False returns an empty images array and a null thumbnail; post URLs and links within the original text remain unchanged.
Delay between Reddit API requests to respect rate limits
Reddit posts that match your keywords, across all of Reddit or inside chosen subreddits. One call returns up to 20 rows as JSON (title, text, score, comment count, author, flair, links). Main inputs: queries, subreddits, sort, timeFilter, maxResultsPerQuery (max 20), postedAfter, postedBefore. A call can take up to 150 seconds.
Request schema
Words or phrases to search for, one per line. Each query is searched on its own; a post that several queries find is saved once.
Names or links of subreddits (python, r/python). Each query is searched in each of them. Leave empty to search all of Reddit.
The order of the first list that is read. One Reddit search shows about 240 posts; for more, the API reads the other orders as well and saves every post once.
Reddit's own time range for the search.
Posts to save for each query, in each subreddit when subreddits are given. A request returns 20 rows at most.
Reddit's search also returns posts that only relate to your words. With this on, a post is kept only when its title or text contains every word of the query.
A day (YYYY-MM-DD) or a period back from now (12 hours, 7 days, 2 months).
Upper end of a date range (YYYY-MM-DD), that day included.
Reddit leaves posts marked as adult content out of a search unless this is on.
The posts of one or more subreddits as JSON, including posts older than the roughly 950 one Reddit list shows, with an optional date range. One call returns up to 20 rows (title, text, score, comment count, author, flair, media, date). Main inputs: subreddits, sort, timeFilter, maxPostsPerSubreddit (max 20), postedAfter, postedBefore. A call takes up to 60 seconds.
Request schema
Names or links of subreddits, one per line: python, r/python or https://www.reddit.com/r/python/. A subreddit that is private or does not exist is reported and costs nothing.
The order of the first list that is read. One list shows about 950 posts; for more, the API reads the subreddit's other lists as well and saves every post once. With a date limit it starts with New.
Reddit's time range for the Top and Controversial orders.
Posts to save for each subreddit. A request returns 20 rows at most.
A day (YYYY-MM-DD) or a period back from now (12 hours, 7 days, 2 months).
Upper end of a date range (YYYY-MM-DD), that day included.
Easiest way: the APIHub CLI. Credits cover x402, no wallet needed.
# install and set up once
npx @apihubio/cli register
npx @apihubio/cli topup 10
# call this service
npx @apihubio/cli call "https://proxy.apihub.io/reddit-posts-comments-archive/benthepythondev~reddit-archive-scraper/run-sync-get-dataset-items" \
-d '{"subreddits":["FragranceClones"],"postIds":["string"],"authors":["string"],"authorHistory":false,"searchQuery":"","commentQuery":"","sortOrder":"newest","minScore":-1000000,"afterDate":"","beforeDate":"","maxPosts":10,"includeComments":false,"maxCommentsPerPost":1}'Or call the proxy directly (curl / any HTTP client):
curl -X POST https://proxy.apihub.io/reddit-posts-comments-archive/benthepythondev~reddit-archive-scraper/run-sync-get-dataset-items \
-H "Authorization: Bearer ahk_your_key" \
-H "Content-Type: application/json" \
-d '{"subreddits":["FragranceClones"],"postIds":["string"],"authors":["string"],"authorHistory":false,"searchQuery":"","commentQuery":"","sortOrder":"newest","minScore":-1000000,"afterDate":"","beforeDate":"","maxPosts":10,"includeComments":false,"maxCommentsPerPost":1}'
# If credits available: charged automatically, returns 200
# Otherwise: returns 402 (pay via @x402/fetch or top up credits)Estimate your monthly cost for Reddit Archive & Data API: Historical Reddit Posts, Comments, Search.