Reddit Posts API
EN

REDDIT POSTS API · JSON · REST

Reddit posts API for content analysis

Turn a small photography selection into a documented reading file: inspect post text, distinguish equipment questions and record your own inclusion decisions.

  • GET
  • JSON
  • HTTPS
  • UTC
Conceptual illustration, not a screenshot or measured result.

A reading file, before a recommendation list

A camera name alone says little about the question a photographer is asking. For a content brief, first distinguish a buying question from a shooting problem, an account of using existing gear, or a post that merely mentions a lens. Reddit Posts API supplies historical post records for this reading task. Your editorial decisions turn the returned material into a useful file; the API does not rate equipment or write the brief.

Try GET https://api.redditpostsapi.com/v1/posts?subreddit=photography&min_score=10&limit=3. subreddit=photography selects the community, min_score=10 sets a minimum numeric score, and limit=3 asks for at most three posts. The threshold does not rank results or certify their quality. This query does not itself isolate equipment topics; read the returned content and record your inclusion decisions. It can return fewer posts or none.

Conceptual illustration, not a screenshot or measured result.

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

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 --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'

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
  }
}

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

Keep the words that justify the decision

02 / 04

Read the available title together with the post text. In your local notes, keep the record identifier, a short supporting passage, the equipment mentioned and the reason for including or excluding that post. A question about low-light portraits may be about technique rather than buying another lens. Do not silently turn a product mention into a recommendation.

Use provisional labels such as buying question, technique, first-hand experience and insufficient context. These are your own categories, not response fields or provider analytics. If text or another useful field is absent, mark the uncertainty. Missing material is not evidence that the author had no opinion. Keep original records separate from edited excerpts so another reader can revisit a decision.

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.

UseResponse
Available historical recordsSupported read-only routes
Live feed and new activityNot provided
Publishing, editing and votingNot provided
Complete conversation treesNot provided; optional local grouping

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

Request costs you can account for

$5

Eligible new accounts, once across the network

$1

Per 1,000 successful requests, including empty results

$50

Minimum top-up for 50,000 credits

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.

Conceptual illustration, not a screenshot or measured result.

About the service and its limits

Reddit Posts 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.

Continue with the reference and implementation guide

Questions before your first request

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 research question should come before the search?

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.

What should the final handover explain?

A useful handoff contains the selected post identifiers, supporting excerpts, exclusion reasons and unresolved questions. It can suggest what an editor should investigate next, not what equipment everyone should buy. Get API key explains access; Documentation lists filters and Pricing explains request charges. Each successful retrieval, even empty, consumes one credit, so budget additional pages before gathering more material.

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.

How do I distinguish 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.

How should I treat dates and result order?

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.

What must stay the same for a fair comparison?

Record the route, community, dates, score threshold, any q text and record kind for each window. Holding these choices constant makes differences in selection easier to explain. It does not remove missing content or the influence of the score filter. min_score never sorts results and should not be treated as an objective measure of recommendation quality. Separate local text-coding decisions from the API conditions that selected records.

What can the inspected page actually prove?

Read relation alongside total: eq denotes an exact query total, gte a lower bound and unknown no reliable total, possibly null. An exact count does not prove that all matches were downloaded. Keep the reported state with each window rather than treating missing totals as zero. Report the records you actually analyzed and explain exclusions, repeated identifiers and missing text without claiming a complete timeline of equipment discussion.

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.

Use the score threshold as a selection rule

03 / 04

min_score=10 excludes records below that numeric threshold; it does not put the best advice first. Results follow archive _doc order, not score, relevance or chronology. The first three records are a small reading batch, not the three leading equipment opinions in photography.

If that threshold hides the kind of question your brief needs, plan a separate, explicitly labelled selection with a different threshold. Explain the change instead of merging the two files as one unchanged sample. Local counts can describe the posts you reviewed; they cannot establish community demand, market share or a representative view of photographers.

Give the reading file a date and a stopping point

04 / 04

When the brief concerns a period, use from and to as YYYY-MM-DD dates in UTC against created_utc. The entire to day is included. The guide explains adjacent windows and local time interpretation. Record the period and request conditions beside your notes, then choose how many pages you will review before starting.

Keep a separate outcome for an empty response and a failed request. Neither supplies text for a new editorial claim. This independent archive is not live or official Reddit, and bounded paging does not guarantee every relevant post. A saved reading file preserves your evidence for local review without promising that another remote request will return it unchanged.