Reddit API Info
EN

REDDIT API INFO · JSON · REST

Understand the fields returned by a Reddit API

Read a small gravity search from an independent historical Reddit archive. Learn how kind, title, text and optional parent references shape your first integration.

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

About the service and its limits

Reddit API Info 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.redditapi.info/v1/search' \
  -H "Authorization: Bearer ${REDDIT_API_KEY}" \
  --data-urlencode 'q=gravity' \
  --data-urlencode 'subreddit=explainlikeimfive' \
  --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
  }
}

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

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 Reddit API Info?

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

What should I save alongside the retrieved records?

Begin with /v1/search?q=gravity&subreddit=explainlikeimfive&limit=3. Save the parameters with the returned JSON and note when you retrieved it. Your exercise asks how an archived question differs from an archived explanation, not which answer is correct. The request is illustrative, and available records may differ or be absent. Preserve the original objects before deriving display labels so you can trace a questionable label back to its source.

Which conclusions can the text actually support?

Begin with the mixed search shown here. Add kind=post when testing a question view, or kind=comment when testing an explanation view. Each request returns at most 100 records and a query exposes at most 100 pages; pagination does not promise a complete collection. The guide develops the field-reading exercise, while Documentation supplies the route and filter reference. Get an API key when you are ready to try a private request: each successful retrieval, including an empty page, costs one credit at $1 per 1,000 requests. The minimum paid top-up is $50.

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 API Info 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=json, subreddit=webdev, 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.

Why should posts and comments have different reading rules?

Inspect kind first. For a post, read an available title as the introduction to the subject and text as the archived content. For a comment, read the text without requiring a post title. Keep id as an identifier rather than interpreting it as a date, ranking or position in a thread. Retain available author, subreddit and created_utc values alongside the content if your display needs context.

When is there enough evidence to link two records?

If parent_id or link_id is present, preserve it. You may group records locally when the referenced objects are available, but the API returns flat records and does not assemble complete conversations. A gravity comment can arrive without its parent question. Display the available text with an unresolved reference, or omit the relationship view; do not fill the gap using an unrelated match. /v1/item?id=... can request a particular available identifier, without guaranteeing that the referenced item exists in the archive.

How should I change a query without losing the comparison?

Compare the initial mixed search with kind=post, then with kind=comment if your exercise requires both views. The q parameter searches title and text with operator and within a matching field. For a multiword query, one term in title and another only in text does not by itself satisfy that rule. Record the changed query so a smaller result is not mistaken for lost data.

What can the inspected page actually prove?

A request returns at most 100 records and a query permits at most 100 pages. Read pagination with the data: eq denotes an exact total, gte a lower bound and unknown an unavailable reliable total. None proves complete Reddit coverage or a complete conversation. Keep the query, retrieval time and unresolved references with your interpretation. A successful empty response still costs one credit; a lost response after success can be charged, and a successful retry costs another. /v1/status is an uncharged static scope disclosure, not a check of archive availability. Use Documentation for the protocol and Pricing for the budget before expanding this exercise.

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.

One question, three possible records

The example on this page asks for gravity in explainlikeimfive, with limit=3. Treat it as a reading exercise: if records are available, can your application tell a question from a reply? A short page lets you inspect each object before choosing a screen layout or writing a parser. No particular post, comment or number of matches is promised by this example.

Reddit API Info is documentation for an independent historical Reddit archive. It is not an official Reddit service or a live feed. An archived explanation can be useful material for learning the data model, but its presence does not establish the current state of a discussion, and a missing explanation does not establish that it never existed.

Conceptual illustration, not a screenshot or measured result.

Start with kind, then read title and text

02 / 03

Keep the original record and inspect kind before choosing how to display it. A post can introduce a subject through title; text carries the archived textual content. A comment can contain an explanation without being a new question. Do not require a title for every record, and do not assume that raw Reddit field names such as selftext or body are the field contract of this API. Check the fields actually returned, including whether a value is absent, null or an empty string.

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

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

A reference is not the rest of the conversation

03 / 03

Available parent_id and link_id values can help you relate records locally. They do not bring the referenced record into the response. With only three matches, a comment might refer to an item outside the page or outside the available archive. Keep that reference unresolved instead of displaying an invented parent or labelling the sample a complete thread.

The same restraint applies to order. Results use internal _doc order, not chronological order, relevance or score ranking. The first explanation on the page is not therefore the earliest or best answer. min_score filters records by a threshold; it does not choose a winning explanation or sort the surviving records.