API Reddit Network · GET · JSON
Write the runbook before handing over the connector

Questions about this page
What should count as an accepted integration?
Use https://api.apireddit.net/v1/search?q=deployment&subreddit=webdev&limit=3 as the first acceptance request.
How should I change a query without losing the comparison?
The q filter matches title or text.
When can a local checkpoint move forward?
Keep the query fixed while following page numbers.
How do I decide whether a failed request may be retried?
Correct a 400 request; check the domain and key for 401; resolve the balance for 402.
What should the final handover explain?
The public /v1/status route is uncharged and static; it does not test upstream search health or confirm refunds.
What is API Reddit Network?
API Reddit Network 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 API Reddit Network 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.
Define one run that the client can inspect
Use https://api.apireddit.net/v1/search?q=deployment&subreddit=webdev&limit=3 as the first acceptance request. In your own run ledger, record the full query, start time, receiving destination and responsible operator. This ledger is part of the client's application, not an API feature. Keep secrets out of it. Ask the client to accept how the application handles the returned page, including an empty page, without requiring a particular archived post to exist.
Change the search only as a recorded decision
The q filter matches title or text. With several search terms, the AND operator applies within a matching field; do not assume one term in the title and another in the text will combine into a match. Record a changed query as a new search scope. For date boundaries use YYYY-MM-DD in UTC, with to inclusive. Choose kind=post or kind=comment when the acceptance task needs one type; min_score filters records and does not rank them.
Advance only after local handling succeeds
Keep the query fixed while following page numbers. Save a page's received records and local processing outcome before marking it handled and advancing the checkpoint. Do not reset page to 1 after every successful batch. On a local write failure, reuse the saved response if available. A checkpoint describes your processing progress, not a stable server cursor or a guarantee that a later request will reproduce the same page.
Enforce at most 100 records per request and 100 pages per query. Store the pagination relation: eq is an exact reported total, gte a lower bound, and unknown no reliable total. None proves complete Reddit coverage. Record whether the run ended on returned pagination information, a page cap, a budget limit or an operator decision. Splitting dates can organize work but does not establish completeness or remove duplicates.
Classify a failure before authorizing a retry
Correct a 400 request; check the domain and key for 401; resolve the balance for 402. For 429, use bounded waits with increasing delays and a finite retry allowance. An upstream retrieval failure refunds its reserved credit. Invalid requests do not debit. A client timeout is different: the server may have succeeded and charged one credit even though the response was lost. Another successful attempt costs another credit. Log that uncertainty and apply the agreed spending limit.
Deliver evidence of handling, not an archive guarantee
The public /v1/status route is uncharged and static; it does not test upstream search health or confirm refunds. Base the run record on actual retrieval outcomes. Keep flat records and missing relationships visible; local grouping cannot produce a guaranteed complete conversation. Finally, give the client the query, checkpoints, stopping reason and recovery owner. The useful deliverable is an understandable operating procedure for a historical archive, with no promised live updates, immutable results or exhaustive export.
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.apireddit.net/v1/search' \
-H "Authorization: Bearer ${REDDIT_API_KEY}" \
--data-urlencode 'q=deployment' \
--data-urlencode 'subreddit=webdev' \
--data-urlencode 'limit=3'Python
import json
import os
from urllib.parse import urlencode
from urllib.request import Request, urlopen
params = urlencode({"q":"deployment","subreddit":"webdev","limit":"3"})
request = Request(
"https://api.apireddit.net/v1/search?" + 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({"q":"deployment","subreddit":"webdev","limit":"3"});
const response = await fetch(
"https://api.apireddit.net/v1/search?" + 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.
Documentation
Authentication and Access Control
For authenticated retrieval, you can pass your API key in the X-API-Key header. Authorization: Bearer is also supported. The archive does not use Reddit OAuth. Requests with a missing or invalid key return 401. The key must belong to the account on the requested domain; the account panel uses a separate Secure HttpOnly session cookie.
When authentication fails, the service returns a 401 status code, indicating either a missing or invalid key. This immediate feedback allows integration consultants to quickly verify their credentials before proceeding with larger data pulls. It is essential to store this key securely, as it serves as the primary identifier for credit consumption and usage tracking.
Your API key is stored encrypted and is available after sign-in. Keep it private. Save it in a suitable secret store when it appears; keys are not delivered by email. Eligible accounts may receive 5,000 trial credits under network-wide anti-abuse rules. Signed-in users can regenerate a key after supplying their password, immediately invalidating the previous key.
Route Definitions and Query Structure
The API exposes several distinct routes including /v1/search, /v1/posts, /v1/comments, /v1/item, /v1/subreddits, and /v1/status. Each route serves a specific purpose, allowing you to target precise data types within the archive. The /v1/item route requires a specific id parameter, while /v1/subreddits supports prefix filtering to narrow down results efficiently.
Supported search filters include q, subreddit, author, kind, from, to and min_score. The kind parameter accepts post or comment. Dates use YYYY-MM-DD in UTC, and to includes the specified day. The q filter matches title or text; with several terms, AND applies within a matching field. Responses are flat records. Available parent_id and link_id values can support local grouping, but there are no query filters for those fields and no guarantee of a complete conversation.
Pagination is controlled by limit and page, each ranging from 1 to 100. A request returns at most 100 records and a query reaches at most 100 pages. Process a received page before advancing the page number. These bounds do not guarantee complete retrieval, predictable latency or a stable snapshot across successive requests.
Error Handling, Totals, and Resilience
A 400 response means an invalid request, 402 means insufficient credit and 429 means a rate limit. Invalid requests do not debit the account. Upstream retrieval failures refund the reserved credit. A client timeout may still hide a successful, charged request; a successful retry costs another credit. The uncharged /v1/status route returns static service information and shows that the HTTP application responds. It does not inspect upstream search health or report refunds.
Pagination totals include a relation: eq reports an exact total, gte a lower bound, and unknown means no reliable total is available. Read these alongside has_more and window_exhausted. Even an exact reported total does not prove complete Reddit coverage or make results beyond the 100-page limit accessible. Preserve the relation when displaying counts rather than presenting every total as exact.
Archive document order is not chronological, and bounded page iteration does not guarantee full coverage or exhaustive export. Do not assume that reaching the last page returns all matching records. Integrate logic to handle missing data gracefully, accepting that some historical posts may remain inaccessible due to the archive's structure. This approach ensures your integration remains robust against incomplete data sets.
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.