Reddit Posts API · GET · JSON
Reference for Post Retrieval and UTC Date Filters

Questions about this page
What is Reddit Posts API?
Reddit Posts API is an independent read-only service for retrieving available archived Reddit posts and comments as JSON. Authenticate with the key for this site and choose a documented search or lookup route. It is not official Reddit, live access or a complete export of a community.
How much does Reddit Posts API cost?
The price is $1 per 1,000 successful requests. The minimum top-up is $50 for 50,000 credits. Each successful request uses one credit, even when it returns no matching records. Invalid requests are not charged; upstream failures trigger a refund, which can require reconciliation. A timeout alone does not establish the final billing outcome.
How do I get an API key?
Create an account with email and password, or continue with Google in a popup. Eligible new accounts receive $5 (5,000 credits) once across this site network. Your API key is available at the top of the account after sign-in and is stored encrypted. Keep it on your server.
Which filters can I use to search Reddit records?
Use q for analyzed text search and combine it with subreddit, author, kind, from, to or min_score. Multiple search words use AND semantics; this is not a semantic-search or arbitrary-query-DSL endpoint. Dates use YYYY-MM-DD in UTC, with the to date including the whole day. Start with documented parameters in the reference.
Does Reddit Posts API provide live Reddit access?
No. This service reads a historical archive, not a live Reddit feed. It cannot publish posts, vote, send private messages or perform Reddit OAuth actions. The public /v1/status route describes the service scope; it does not prove archive health, complete coverage or current availability of an original Reddit page.
Can I export every record that matches a search?
Not necessarily. A request returns up to 100 records, and page ranges from 1 to 100. Read total together with pagination.relation: exact, lower bound or unknown. Results follow archive order rather than guaranteed chronological or relevance order. Reaching the last accessible page does not prove that a saved sample is exhaustive.
Can I reuse the same key on another domain?
No. Accounts, API keys and credit balances are separated by site. Use the key issued for this domain with its own HTTPS API hostname. Keep that key in server-side configuration, not in browser JavaScript, public repositories or shared logs. A key from another site is not a substitute for a local account. Google sign-in is shared across the network; API keys and balances remain separate for each site.
Which request should I try first?
Start with /v1/posts, q=api, subreddit=SaaS, limit=3 and page=1. This small request lets you inspect available fields before writing import or interface logic. It still costs one credit when successful, including an empty result. Adjust the topic and community for your task; the example is not a promise of a fixed record count.
Authentication and supported routes
Send GET requests to https://api.redditpostsapi.com. Authenticated retrieval accepts either X-API-Key: <key> or Authorization: Bearer <key>. Keep the credential in server configuration rather than public code or exported research files. The account panel uses a separate Secure HttpOnly session cookie. /v1/status is public and does not require a key; signing into the account panel does not replace a retrieval header.
Use /v1/posts for posts, /v1/comments for comments and /v1/search for supported searches. Only /v1/item requires id for a known record; id is not a posts or comments filter. /v1/subreddits accepts prefix and limit to explore community names. Its aggregated counts are not guaranteed globally exact. The service is an independent historical archive, without official Reddit affiliation or live updates.
Responses contain flat records, not server-built discussion trees. When parent_id or link_id is present, your client may group retrieved items locally. Neither field is an exposed query filter and complete conversation ancestry is not guaranteed. Inspect which fields and types actually occur before loading or annotating a record. The API does not promise that every post has the same attributes or that future responses preserve a fixed schema.
Search filters and date boundaries
The search, posts and comments routes accept q, subreddit, author, kind, from, to, min_score, limit and page. kind accepts post or comment; the posts route selects posts and the comments route selects comments. q is search text, not an arbitrary query DSL. min_score applies a numeric minimum and never sorts by score or identifies the best equipment recommendations.
from and to take YYYY-MM-DD dates in UTC. The to date is inclusive: setting both values to the same day selects that UTC day, not an empty interval. These filters constrain created_utc rather than ingestion time. They do not accept a time of day. Translate any event schedule into UTC before defining dates, then document local filtering if you need a narrower interval.
For the home example, subreddit=photography chooses the community, min_score=10 the threshold and limit=3 at most three posts. It is a broad photography selection, not a server-classified equipment dataset. Add supported filters deliberately and record their values. If you compare adjacent periods, start the next period on the day after the earlier inclusive to date to avoid deliberately reusing a boundary day.
Pagination, errors and costs
Set limit and page from 1 to 100. One request fetches one page, up to 100 records, in internal _doc order rather than chronological, relevance or score order. eq indicates an exact query total, gte a lower bound, unknown no reliable total and possibly null. Neither exhausting the permitted pages nor partitioning dates proves exhaustive or duplicate-free collection. A saved page number does not freeze future results.
Handle HTTP 400 for invalid parameters, 401 for a missing or invalid key, 402 for insufficient credit and 429 for a rate limit. Correct the cause before repeating a rejected request and bound retries. Successful retrieval costs one credit, including an empty response. Invalid requests do not debit and upstream failures refund reservations. A client connection failure can occur after server success; a successful retry costs another credit.
/v1/status is uncharged and returns static historical-scope information plus evidence that the HTTP app responds. It does not probe search, archive availability, latency, maintenance announcements or capacity. Preserve original responses, filters, retrieval time and a version of your local rules. These support repeatable local analysis, not a guarantee that the same remote requests return identical posts. Consult Pricing and Get API key for balance and account actions.
Warehouse guide
Illustrative workload, not measured usage.
Write the question your editor needs answered
Use a narrow reading question, such as which constraints people describe when asking about a lens for indoor portraits. That is a proposed research question, not a finding from this archive. Start with the photography request below and inspect what is actually available before deciding whether the material supports it.
Separate a useful excerpt from a product mention
For each retained post, write a brief local note linking the question, the passage that supports your interpretation and the record identifier. A title can name equipment while the body asks about exposure or technique. Read both when present; if the body is missing, retain that limitation rather than inventing the missing explanation.
Put publication dates on the request
Choose the study period in UTC before submitting it. from and to must use YYYY-MM-DD, with the to day included. This is day-level selection, not a second-precision timestamp interface. If your reference event is described in local time, convert its boundaries to UTC first. For an intraday question, request the enclosing dates and filter available record timestamps locally, documenting missing or unusable values.
Warehouse guideMake your first authenticated request
Create an account, copy the key shown at the top of the account page, and put it in a server environment variable. The three examples below request the same small page. Inspect the HTTP status before using the JSON; keep credentials out of browser bundles, shared notebooks and request logs.
cURL
curl --get --fail-with-body 'https://api.redditpostsapi.com/v1/posts' \
-H "Authorization: Bearer ${REDDIT_API_KEY}" \
--data-urlencode 'subreddit=photography' \
--data-urlencode 'min_score=10' \
--data-urlencode 'limit=3'Python
import json
import os
from urllib.parse import urlencode
from urllib.request import Request, urlopen
params = urlencode({"subreddit":"photography","min_score":"10","limit":"3"})
request = Request(
"https://api.redditpostsapi.com/v1/posts?" + params,
headers={"Authorization": "Bearer " + os.environ["REDDIT_API_KEY"]},
)
with urlopen(request, timeout=20) as response:
payload = json.load(response)
print(payload["pagination"])
print(payload["data"])Node.js 18+
// Node.js 18+ · example.mjs
const parameters = new URLSearchParams({"subreddit":"photography","min_score":"10","limit":"3"});
const response = await fetch(
"https://api.redditpostsapi.com/v1/posts?" + parameters,
{headers: {Authorization: "Bearer " + process.env.REDDIT_API_KEY}}
);
if (!response.ok) throw new Error("HTTP " + response.status);
const payload = await response.json();
console.log(payload.pagination);
console.log(payload.data);Read the response before building a table
This is an illustrative empty successful response, not a live query result. An empty page still costs one credit. Read data, pagination and credits separately; a total must always be interpreted with relation. The balance shown is an example after one eligible trial request.
{
"data": [],
"pagination": {
"page": 1,
"limit": 3,
"total": 0,
"relation": "eq",
"has_more": false,
"window_exhausted": false,
"truncated": false
},
"credits": {
"cost": 1,
"balance": 4999
}
}Response
Inspect the actual objects before assuming a column exists. Keep omitted values, null and empty strings distinct. Relationship fields, when returned, may help with local grouping; they do not establish a complete thread. Preserve the raw response so a revised mapping can be tested without paying to fetch it again.
Combine ordinary text with an exact community and a UTC date window. Keep the nonsecret query parameters with the saved response. Limit controls the page size, page selects a bounded offset, and min_score is a filter rather than a sorting option. A page order is not a chronological or relevance ranking.
Six routes, one read-only API contract
Choose the route for the object you need. Search selects posts and comments; posts and comments constrain the record kind. Item looks up a known id. Subreddits returns matching community names rather than a complete community dataset. Status is an uncharged service-scope response and does not test search availability.
| Method | API | Use |
|---|---|---|
GET | /v1/search | Search posts and comments |
GET | /v1/posts | Posts only |
GET | /v1/comments | Comments only |
GET | /v1/item | One known record id |
GET | /v1/subreddits | Community names by prefix |
GET | /v1/status | Service scope; no charge |
Set the boundaries of a collection job
Combine ordinary text with an exact community and a UTC date window. Keep the nonsecret query parameters with the saved response. Limit controls the page size, page selects a bounded offset, and min_score is a filter rather than a sorting option. A page order is not a chronological or relevance ranking.
| Parameter | Meaning |
|---|---|
q | Text in title and text |
subreddit | Exact community spelling |
author | Exact author value |
kind | post or comment |
from / to | YYYY-MM-DD, UTC; end day included |
min_score | Minimum score, not sorting |
limit / page | Both range from 1 to 100 |
prefix / id | Route-specific name prefix or known id |
Map observed fields deliberately
Inspect the actual objects before assuming a column exists. Keep omitted values, null and empty strings distinct. Relationship fields, when returned, may help with local grouping; they do not establish a complete thread. Preserve the raw response so a revised mapping can be tested without paying to fetch it again.
| Parameter | Meaning |
|---|---|
id | Keep the source identifier |
kind | Inspect the record kind |
subreddit | Preserve the returned community name |
title / text | Treat missing, null and empty separately |
created_utc / score | Check numeric values before conversion |
parent_id / link_id | Optional links; group locally if present |
Where this archive API fits
Use this service when your task starts with reading available historical records. A live feed, posting, editing, voting or a server-built thread requires a different integration. Direct page scraping and official Reddit access have their own behaviour and requirements; this endpoint does not impersonate either interface or promise their coverage.
How do search, posts and comments differ?
Use /v1/search for the supported search across record kinds. /v1/posts and /v1/comments add a post or comment constraint. They share the documented search filters; /v1/item is the separate route for a known id. None of these routes creates, edits or deletes Reddit content.
How is this different from scraping Reddit pages?
You request structured historical records through the documented routes instead of downloading current HTML and extracting page elements. This avoids making your loader depend on page markup. It does not provide a live proxy, browser session, official OAuth compatibility or a promise of complete historical coverage.
Keeping and replacing your key
API key
Your API key is stored encrypted and is available after sign-in. Keep it private.
Keep the key on your server. Regeneration immediately disables the previous key. Your credits and account remain available.
Recovering account access
Save this one-time code privately. You need your email and this code to reset a forgotten password. A new code replaces the previous one.
Continue with Google
An existing account can be linked when Google establishes authoritative ownership of the email. Other email addresses require confirmation with the existing account password.
Request records and local copies
Request activity · last 30 days
Detailed request records, including client IP and user agent, are kept for 30 days.
Summaries cover the selected period. IP, response and latency details are available only for logged requests and expire after 30 days. Older records may lack these fields.
Requests
The export contains the currently displayed page and filters. Times use your browser timezone; chart days use UTC.
Reddit Data API is an independent historical archive service, not an official Reddit product or a live mirror. Availability of a record, time range or optional field is not guaranteed. Record the scope and retrieval time of your own batch, review the terms and privacy information, and avoid presenting a bounded archive sample as all activity on Reddit. The account exposes request costs, statuses and available client details; older requests may lack IP or latency fields.
Request costs you can account for
$1 / 1,000
A successful retrieval costs one credit, including an empty result: $1 per 1,000 successes. Eligible new accounts receive $5 = 5,000 credits once across the network. The minimum paid top-up is $50 = 50,000 credits. Invalid requests are not charged; upstream failures refund the reservation, sometimes after reconciliation. A successful retry is a new paid retrieval, so rerun local transformations from saved inputs first.
$5 / 5,000
Welcome credit: $5 · 5,000 credits
$50 / 50,000
Create an invoice before sending. Send exactly the displayed amount using the displayed token and network. Credit is added only after blockchain confirmation.