Subreddit Data
EN

SUBREDDIT DATA · JSON · REST

Compare subreddit discussions using the same filters

Use the subreddit data API to read transit and housing discussions within urbanplanning. Build a local comparison with explicit selection and overlap.

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

About the service and its limits

Subreddit Data 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.

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.subredditdata.com/v1/search' \
  -H "Authorization: Bearer ${REDDIT_API_KEY}" \
  --data-urlencode 'q=transit' \
  --data-urlencode 'subreddit=urbanplanning' \
  --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

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

Questions before your first request

What is Subreddit Data?

Subreddit Data 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 Subreddit Data 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.

How do I set rules for comparing two selections?

Create row A for transit and row B for housing, both within urbanplanning. Row A starts with https://api.subredditdata.com/v1/search?q=transit&subreddit=urbanplanning&limit=3; row B changes only q to housing. These are proposed searches, not evidence that any specific record exists. Write one question above them: how do the retrieved texts connect transport access with housing?

When is another page worth requesting?

After the small transit response, decide whether the next useful action is a housing query, another page, or a closer reading of the records already saved. One successful retrieval uses one credit even when empty; rereading a local file makes no new request. The key page handles access and funding, while the guide develops the two-row worksheet. Keep the final memo tied to the records actually inspected and list questions that the available context cannot answer.

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 Subreddit Data 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/search, q=automation, subreddit=automation, 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 should I treat dates and result order?

If using dates, write them as YYYY-MM-DD in UTC for created_utc. An illustrative window from=2026-04-01 to=2026-04-30 includes those entire calendar dates, without claiming any coverage in April. to also covers the whole current UTC day when set to today, not just the request time. Matching windows documents a condition; it does not remove uneven archive gaps.

Why can the wording change what the sample contains?

q searches title and text with AND matching for multiple analyzed words within a matched field. Adding a second word narrows that condition; it is not a simple alternative keyword or a guaranteed exact phrase. Keep terminology visible in the worksheet and explain why you chose it. Different vocabulary can omit discussions that a community member would still regard as the same topic.

How do I keep my annotations separate from the source?

Keep the records actually received and add local notes such as the practical question raised, the proposed planning response and unresolved context. A text about housing near a station may belong to both views. If a reliable identifier is present, it can help detect that intersection; missing identifiers do not justify assuming uniqueness. Count overlap separately before any local summary, and do not equate records with participants.

Which conclusions can the text actually support?

If you summarize local notes, state how many records were retained, how many overlapped and how many could not be classified. Describe differences in the texts you inspected, not growth, decline, community preferences or statistical significance. Even a second run with the same settings may return different material. Saved responses preserve the evidence you read, not the immutability of the archive.

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.

What does a station change about the housing question?

A community analyst reading urbanplanning might want to compare transport proposals with housing concerns. Start with the relationship: does a retrieved text discuss reaching a station, building near it, or both? Subreddit Data provides access to an independent historical Reddit archive for this reading task. It is not a live feed or an official Reddit service. The useful outcome is a set of contextual examples with an explained selection, rather than a verdict on what all members want.

Try https://api.subredditdata.com/v1/search?q=transit&subreddit=urbanplanning&limit=3. q supplies the search text, subreddit keeps the task within urbanplanning and limit requests no more than three records. This is a demonstration request, not evidence that three suitable discussions exist. Read the response you actually receive before deciding which topics to compare. A question about a station, a network proposal and a quoted news item may need different local labels.

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

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

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.

Continue with the reference and implementation guide

Choose the unit before adding a second topic

02 / 04

A post can introduce a proposal; a comment can answer one detail without repeating its context. Decide whether the worksheet compares posts, comments, or a deliberately mixed set. Use kind=post or kind=comment when that restriction suits the question, and keep it unchanged across the two topic searches. Otherwise a difference in the material could come from the record types you selected.

Build a worksheet in your own tools with a row for each query: community, search text, record kind, UTC dates, score threshold, page limit, retrieval time and outcome. Keep conditions fixed while changing the topic term for another view of the same community. This makes the difference in selection visible; it does not make the views representative, statistically equivalent or complete.

Conceptual illustration, not a screenshot or measured result.

Keep a place for the station-area overlap

03 / 04

For each retained record, add a local topic note and the reason it belongs in that view. For example, a transit discussion may also concern housing around a station. Mark such overlap instead of counting it as two independent participants. Record an uncertain classification when the text or context is insufficient. These are analyst annotations; the API does not supply topic shares, sentiment scores, audience demographics or statistical findings.

Flat records are not assembled conversation trees. If parent_id or link_id is present, local grouping may help explain a reference, but it cannot ensure a complete thread or recover every missing parent. A worksheet can distinguish the original text, your interpretation and unavailable context. Keep that distinction when sharing a finding with people who have not read the underlying material.

Read the selection rules beside the examples

04 / 04

q searches title and text. For multiple analyzed words, AND matching requires the words within a matching field; it does not mean any one word is enough or require the words in both fields. A multiword query is not an exact-phrase guarantee. Note the exact wording in the worksheet so a narrower expression is not mistaken for less community interest. Different topic terms can match the same record and can miss alternative vocabulary.

Dates are YYYY-MM-DD in UTC, filtering created_utc. The to date includes the whole specified day, even when that day is today; it is not limited to the instant of your request. _doc order is not chronological, relevance or score order, and min_score is only a threshold. At most 100 records per request and 100 pages per query are available. Equal settings help document selection but do not prove equal archive coverage.