Reddit API Proxy
EN

Reddit API Proxy · GET · JSON

Give each failed archive read an explicit next action

Conceptual illustration, not a screenshot or measured result.

Questions about this page

Why start with a deliberately small request?

Use GET https://api.redditapiproxy.com/v1/comments?subreddit=devops&limit=3 as the reference for your adapter.

Which HTTP outcomes need a correction rather than more data?

For 400, correct the parameters and confirm that the route accepts them.

How do I decide whether a failed request may be retried?

For 429 or a temporary upstream failure, let one layer of your application own the retry policy.

Why keep an untouched copy of the response?

Save a received response before updating your local progress marker.

What should the final handover explain?

Retain the attempt count, known HTTP outcomes, uncertainty and the result of local processing with each test.

What is Reddit API Proxy?

Reddit API Proxy 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 API Proxy 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.

Keep a small request as your reference

Use GET https://api.redditapiproxy.com/v1/comments?subreddit=devops&limit=3 as the reference for your adapter. Run it with one supported header, X-API-Key or Authorization: Bearer, carrying this domain’s archive key. Record the route, parameters and header name without saving the secret. Keep this baseline separate from later filter changes so an error has fewer possible causes.

This is an independent historical archive, not a live or official Reddit connection. Read-only describes the operation on content; it does not make repeat requests free or promise unchanged results. Treat receiving a response and completing your local processing as separate events.

Stop for a correction: 400, 401 and 402

For 400, correct the parameters and confirm that the route accepts them. Content searches accept q, subreddit, author, kind, from, to, min_score, limit and page; item instead requires id only, and subreddits accepts prefix and limit. Do not repeatedly resend an unsupported parent_id filter or treat a Reddit URL as an item ID. A valid route contract is more useful than increasing the retry count.

For 401, check the domain, credential source and chosen header. An old key stops working immediately after password-confirmed regeneration. For 402, pause retrievals and inspect the account panel’s balance. These conditions need a changed configuration or balance, not a larger retry count. A successful empty response belongs to none of these error branches; keep it as a completed retrieval.

Delay deliberately; label lost responses as uncertain

For 429 or a temporary upstream failure, let one layer of your application own the retry policy. Set a maximum attempt count, an overall time limit and increasing pauses, with cancellation when the job is no longer needed. These are client decisions, not promised service recovery times. Avoid multiplying attempts through independent retries in both a worker and its HTTP wrapper.

Invalid requests do not debit credits; upstream failures refund reservations. A timeout or lost client response can nevertheless occur after a successful charged retrieval. Record that as an uncertain outcome. If you choose to retry and it succeeds, another credit is consumed. Backoff controls request frequency, not the billing outcome of a previous request.

Replay saved data when local processing fails

Save a received response before updating your local progress marker. If mapping a field or writing to your database fails, retry that local step against the saved copy. A second remote GET cannot repair your parser and may return different records. Preserve missing fields and unresolved parent references instead of silently treating them as a complete conversation.

Content requests return at most 100 records per page and allow page from 1 to 100 across separate requests. The order is _doc, not chronology, relevance or score. from/to use YYYY-MM-DD UTC dates with the final day included, while min_score filters without sorting. Flat records may contain parent_id and link_id for local grouping; no complete discussion or ancestry is promised.

Finish with evidence and a stopping condition

Retain the attempt count, known HTTP outcomes, uncertainty and the result of local processing with each test. Read pagination.total together with relation: eq means an exact query total, gte a lower bound and unknown an unreliable or null total. Reaching a page limit or finishing the retry queue does not demonstrate complete archive coverage.

Check the policy locally with representative successful, empty, rejected, timed-out and locally failed outcomes before widening the job. Budget one credit for every successful retrieval, including repeats. Use the documentation for route details and pricing for costs. Public /v1/status is uncharged and static; it neither checks the upstream archive nor resolves whether an earlier missing response was billed.

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.redditapiproxy.com/v1/comments' \
  -H "Authorization: Bearer ${REDDIT_API_KEY}" \
  --data-urlencode 'subreddit=devops' \
  --data-urlencode 'limit=3'

Python

import json
import os
from urllib.parse import urlencode
from urllib.request import Request, urlopen

params = urlencode({"subreddit":"devops","limit":"3"})
request = Request(
    "https://api.redditapiproxy.com/v1/comments?" + 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":"devops","limit":"3"});
const response = await fetch(
  "https://api.redditapiproxy.com/v1/comments?" + 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.

MethodAPIUse
GET/v1/searchSearch posts and comments
GET/v1/postsPosts only
GET/v1/commentsComments only
GET/v1/itemOne known record id
GET/v1/subredditsCommunity names by prefix
GET/v1/statusService 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.

ParameterMeaning
qText in title and text
subredditExact community spelling
authorExact author value
kindpost or comment
from / toYYYY-MM-DD, UTC; end day included
min_scoreMinimum score, not sorting
limit / pageBoth range from 1 to 100
prefix / idRoute-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.

ParameterMeaning
idKeep the source identifier
kindInspect the record kind
subredditPreserve the returned community name
title / textTreat missing, null and empty separately
created_utc / scoreCheck numeric values before conversion
parent_id / link_idOptional links; group locally if present
Conceptual illustration, not a screenshot or measured result.

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

Header compatibility and HTTP outcomes

Use GET under https://api.redditapiproxy.com for protected archive reads. Both X-API-Key: <key> and Authorization: Bearer <key> are supported alternatives. The credential belongs to this archive domain, not Reddit OAuth. Keep it on your server and inspect request construction without exposing its value. The account panel uses a separate Secure HttpOnly session cookie; signing into that panel does not authenticate your application's GET request.

HTTP 400 means invalid or unsupported parameters. Check the actual route and query string rather than sending a JSON request body. HTTP 401 means a missing or invalid key, including an old key invalidated by regeneration. Verify the domain and header before changing credentials. HTTP 402 means insufficient credits. HTTP 429 means a frequency limit; use delayed, bounded attempts rather than an immediate loop.

/v1/status is public, keyless and uncharged. It returns a static disclosure of the historical service and confirms that the HTTP application responds. It does not test the search backend, archive records, account balance or key validity. A successful status response cannot explain a protected request's failure or prove readiness for a workload. Observe the actual retrieval outcome separately.

Routes, filters and returned records

/v1/search searches posts and comments. /v1/posts constrains results to posts and /v1/comments to comments. These routes accept q, subreddit, author, kind, from, to, min_score, limit and page, not id. kind accepts post or comment; omit it to allow both through search. q performs text search rather than arbitrary query DSL, sentiment classification or custom server-side analytics.

/v1/item?id=... requires id only and looks for one archived record, which may be absent. It does not retrieve replies or ancestors automatically. /v1/subreddits accepts prefix and limit only for community-name discovery, with no page traversal. Counts are not guaranteed globally exact. A prefix is not a content-route filter, and the catalogue's unknown total is not an exact inventory of all Reddit communities.

from and to use YYYY-MM-DD in UTC and filter created_utc rather than ingestion time; the complete final to day is included. min_score is a numeric score threshold, without sorting or quality assessment. The API returns flat content records rather than server-assembled thread trees, meaning parent and link fields may appear but are not mandatory. Clients can group present parent_id and link_id locally; there are no query filters for them and no complete conversation guarantee.

Page limits and request accounting

Content searches allow limit and page from 1 to 100, with one page per request. Retrieval uses _doc, an internal document order unrelated to insertion time, chronology, relevance or score ranking. Local sorting only reorganizes the received sample. Smaller date windows or deduplication do not prove completeness or uniqueness, and repeated queries do not have guaranteed unchanged results. The archive does not guarantee a fixed schema or permanent record availability.

Responses contain data, pagination and credits. Read pagination.total with relation: eq means an exact query total, gte a lower bound and unknown no reliable total, possibly null. A precise count does not prove all matches were downloaded or that the archive contains all history. Keep returned has_more and window_exhausted indicators to describe boundaries; they are not cursors for unlimited export.

Every successful retrieval costs one credit, including empty results and successful repeats. Invalid requests do not debit; upstream failures refund the reserved credit. A client disconnect may follow a billed success, so a missing response leaves the outcome uncertain. Your own parser or database failure does not establish an upstream failure. Preserve received responses before advancing local progress and budget successful retries separately.

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.

Conceptual illustration, not a screenshot or measured result.

Continue with the related reference