Reddit Endpoint · GET · JSON
Make your first authenticated Reddit archive request

Questions about this page
What do I need for the first observable REST call?
Have curl, a terminal and a Reddit Endpoint key ready.
Why start with a deliberately small request?
The command template is curl --fail-with-body -H "Authorization: Bearer YOUR_API_KEY" "https://api.redditendpoint.com/v1/posts?subreddit=linux&limit=1".
What should I validate before reading individual items?
Check the HTTP status and response body separately.
How should I change a query without losing the comparison?
To test text matching, try q=kernel+panic with the same community filter.
How should I budget additional requests?
The rate is $1 per 1,000 successful retrievals.
What is Reddit Endpoint?
Reddit Endpoint 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 Endpoint 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.
Prepare one observable request
Have curl, a terminal and a Reddit Endpoint key ready. Your API key is stored encrypted and is available after sign-in. Keep it private. Use this domain's key and check your available credits. The conditional 5,000-credit trial depends on network-wide anti-abuse eligibility. If funding is needed, use the account panel and pricing page before starting the request.
You can call https://api.redditendpoint.com/v1/status without a key or charge to check that the HTTP application answers. Its static disclosure does not verify your credentials or test the archive upstream. A successful status call therefore does not tell you whether the Linux request will return a record.
Send the small Linux example
The command template is curl --fail-with-body -H "Authorization: Bearer YOUR_API_KEY" "https://api.redditendpoint.com/v1/posts?subreddit=linux&limit=1". YOUR_API_KEY is a placeholder, not a working credential. Supply the real value through your local secret handling, and avoid leaving it in shared history or screenshots.
Keep the URL quoted so the shell does not treat the ampersand as a command separator. /v1/posts chooses posts, subreddit=linux sets the community, and limit=1 caps the result at one record. X-API-Key is an equally valid authentication header if your client uses that form. Neither form requires a Reddit login.
Inspect before changing anything
Check the HTTP status and response body separately. A successful empty list still costs one credit. It says that this archive request returned no matches, not that the community is empty. If a record arrives, inspect its fields and save the response locally before experimenting. The result is a flat record, not a complete thread.
For errors, 400 means the request needs correction, 401 means the key is missing or invalid, 402 means insufficient credits, and 429 means requests are too frequent. Correct the relevant cause or reduce the rate. Increasing the record limit does not solve an authentication or balance problem.
Refine one question at a time
To test text matching, try q=kernel+panic with the same community filter. q searches title and text, applying AND to the terms within a matching field; a term in the title and another only in the body do not satisfy that condition together. Keep a note of each change so you can explain different results.
Date filters from and to use YYYY-MM-DD in UTC, with to inclusive. min_score only removes records below the threshold; it does not sort them. Results follow _doc order, not chronology, relevance or score. Pagination allows at most 100 records per request and 100 pages per query. Read the total relation: eq is exact, gte is a lower bound, and unknown can have a null total. None proves complete archive coverage.
Stop or retry with the cost in view
The rate is $1 per 1,000 successful retrievals. Invalid requests do not debit a credit; upstream failures refund the reservation. A lost client response is different: the server may have completed the request and charged it. A successful retry costs another credit, so examine local output before sending again.
Keep the request and saved response together when moving into an application. If you later group records using available parent_id or link_id fields, do it locally and allow for missing relatives. That grouping cannot recover a complete conversation. This first exercise is complete when you can explain the request, its outcome and your reason for another call.
Make 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.redditendpoint.com/v1/posts' \
-H "Authorization: Bearer ${REDDIT_API_KEY}" \
--data-urlencode 'subreddit=linux' \
--data-urlencode 'limit=1'Python
import json
import os
from urllib.parse import urlencode
from urllib.request import Request, urlopen
params = urlencode({"subreddit":"linux","limit":"1"})
request = Request(
"https://api.redditendpoint.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":"linux","limit":"1"});
const response = await fetch(
"https://api.redditendpoint.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": 1,
"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.
Documentation
Authentication and Setup
To begin using the Reddit Endpoint archive service, you must first create an account using an email and a password. Your API key is stored encrypted and is available after sign-in. Keep it private. Pass it in Authorization: Bearer or X-API-Key to authenticate retrieval requests. This key is tenant-specific and does not function as a network-wide credential for other accounts.
Upon successful authentication, the server expects requests that adhere to strict parameter rules. You can filter results by query string, subreddit, author, or specific kind values like post or comment. The system supports pagination with limits ranging from one to one hundred records, ensuring that your initial queries remain manageable and efficient.
If your API key is missing or invalid, the server returns a 401 error code. This indicates that your authentication credentials are incorrect, missing or invalidated by key regeneration. You can regenerate your key after confirming your password, which immediately invalidates the old key, ensuring that your access remains secure without requiring a separate dashboard route.
Request Structure and Data Formats
When you execute a search or retrieval request, the API returns flat records rather than assembled thread trees. These records may contain parent_id and link_id fields, which clients can optionally group locally. However, the server does not guarantee complete ancestry or conversation structures, so you must handle hierarchy building on the client side if needed.
Pagination is controlled by the page parameter, allowing you to iterate through results efficiently. The archive document order is neither chronological nor relevance-sorted, rather than a ranking by score. Bounded page iteration does not guarantee full coverage, so never assume that iterating through pages yields every matching record in the archive.
The pagination total can be exact (eq), a lower bound (gte), or unknown with a null total. Read the relation together with the current page and limit before requesting another page. An exact total describes the query result reported by this response; it does not establish that the archive contains every Reddit record. Each query is bounded to 100 pages.
Errors, Pricing, and Limits
Every successful retrieval costs exactly one credit, including an empty result. Invalid requests do not debit credits, and an upstream failure refunds the reserved credit to the user's balance. If the client loses a response after the server succeeds, the credit can still be charged; a successful retry costs another credit. The static status endpoint is uncharged.
Common errors include 401 for authentication failures, 402 when you lack sufficient credits, and 429 when you exceed the rate limit. Read these as HTTP response status codes, rather than looking for an ordinary response header containing the code. For the first terminal request, check the key and domain after 401, check the credit balance after 402, and slow down retries after 429.
When paying for credits, you must create an invoice within your signed-in account and pay the exact amount displayed. The server invoice provides the canonical recipient address and precise value, ensuring accurate transfers. Payments are verified after confirmation, and your credits are applied once the genuine transfer is confirmed, allowing you to proceed with your archival searches.
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.