Skip to content

How to get Reddit posts and comments without the official API

Updated · 3 steps

As of Nov 2026, Reddit's official API has no self-service sign-up: since November 2025, new apps need Reddit's approval under its Responsible Builder Policy. If you only need public posts and comments, for brand monitoring, research or a dataset, these calls return them as JSON with one API key.

The usual pattern is to watch a subreddit's feed, search it for your keywords, then pull the comment thread under any post that matters.

01

Read a subreddit's posts

Pass the subreddit name without r/. Set sort and timeframe to choose the feed. Each post comes with its title, author, score, upvote_ratio, num_comments, created_utc and permalink. Pass the after value from the response to get the next page.

GET /v1/reddit/subreddit 1 credit per call

cURL

curl --request GET 'https://api.fetchproof.com/v1/reddit/subreddit?subreddit=nasa&sort=new' \
  --header 'x-api-key: YOUR_API_KEY'

JavaScript

const response = await fetch("https://api.fetchproof.com/v1/reddit/subreddit?subreddit=nasa&sort=new", {
  method: 'GET',
  headers: {
    'x-api-key': process.env.FETCHPROOF_API_KEY,
  },
});
const data = await response.json();
console.log(data);

Python

import os
import requests

response = requests.get(
    "https://api.fetchproof.com/v1/reddit/subreddit?subreddit=nasa&sort=new",
    headers={"x-api-key": os.environ["FETCHPROOF_API_KEY"]},
)
print(response.json())

Go

package main

import (
  "fmt"
  "io"
  "net/http"
  "os"
)

func main() {
  req, _ := http.NewRequest("GET", "https://api.fetchproof.com/v1/reddit/subreddit?subreddit=nasa&sort=new", nil)
  req.Header.Set("x-api-key", os.Getenv("FETCHPROOF_API_KEY"))
  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := io.ReadAll(res.Body)
  fmt.Println(string(body))
}

PHP

<?php
$ch = curl_init("https://api.fetchproof.com/v1/reddit/subreddit?subreddit=nasa&sort=new");
curl_setopt_array($ch, [
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    'x-api-key: ' . getenv('FETCHPROOF_API_KEY'),
  ],
]);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
Excerpt of published sample response Full response →
{
  "success": true,
  "credits_remaining": 100,
  "credits_charged": 1,
  "posts": [
    {
      "id": "1xy22ve",
      "author": "crossposter-app",
      "author_fullname": "t2_2o0216u9tr",
      "subreddit": "nasa",
      "title": "Image of the Cat's Head Nebula from NASA's James Webb Space Telescope",
      "link_flair_text": "NASA Official",
      "selftext": "",
      "selftext_html": null,
      "downs": 0,
      "name": "t3_1xy22ve",
      "upvote_ratio": 1,
      "ups": 1,
      "…": "9 more fields"
    }
  ],
  "after": null
}
02

Search the subreddit for a keyword

Searches posts, comments or media inside one subreddit. sort takes relevance, hot, top, new or comments for posts, and relevance, top or new for comments. Page with cursor.

GET /v1/reddit/subreddit/search 1 credit per call

cURL

curl --request GET 'https://api.fetchproof.com/v1/reddit/subreddit/search?subreddit=nasa&query=webb' \
  --header 'x-api-key: YOUR_API_KEY'

JavaScript

const response = await fetch("https://api.fetchproof.com/v1/reddit/subreddit/search?subreddit=nasa&query=webb", {
  method: 'GET',
  headers: {
    'x-api-key': process.env.FETCHPROOF_API_KEY,
  },
});
const data = await response.json();
console.log(data);

Python

import os
import requests

response = requests.get(
    "https://api.fetchproof.com/v1/reddit/subreddit/search?subreddit=nasa&query=webb",
    headers={"x-api-key": os.environ["FETCHPROOF_API_KEY"]},
)
print(response.json())

Go

package main

import (
  "fmt"
  "io"
  "net/http"
  "os"
)

func main() {
  req, _ := http.NewRequest("GET", "https://api.fetchproof.com/v1/reddit/subreddit/search?subreddit=nasa&query=webb", nil)
  req.Header.Set("x-api-key", os.Getenv("FETCHPROOF_API_KEY"))
  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := io.ReadAll(res.Body)
  fmt.Println(string(body))
}

PHP

<?php
$ch = curl_init("https://api.fetchproof.com/v1/reddit/subreddit/search?subreddit=nasa&query=webb");
curl_setopt_array($ch, [
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    'x-api-key: ' . getenv('FETCHPROOF_API_KEY'),
  ],
]);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
Excerpt of published sample response Full response →
{
  "success": true,
  "credits_remaining": 100,
  "credits_charged": 1,
  "posts": [
    {
      "id": "1xy22ve",
      "post_id": "1xy22ve",
      "title": "Image of the Cat's Head Nebula from NASA's James Webb Space Telescope",
      "url": "https://i.redd.it/pcvhixh8n12i1.jpeg",
      "permalink": "https://www.reddit.com/r/nasa/comments/1xy22ve/image_of_the_cats_head_nebula_from_nasas_ja…",
      "spoiler": false,
      "subreddit": "nasa",
      "num_comments": 0,
      "created_at_iso": "2026-11-16T21:37:40.000Z",
      "thumbnail": null,
      "thumbnail_blurred": false,
      "position": 0,
      "…": "1 more fields"
    }
  ],
  "cursor": null
}
03

Pull a post's comments

Pass a post URL to get the post and its comment tree, each comment with author, score, body and timestamps. When more.has_more is true, send more.cursor back to get the next batch. For very long cursors, use the POST version of this endpoint with the same parameters in a JSON body.

GET /v1/reddit/post/comments 1 credit per call

cURL

curl --request GET 'https://api.fetchproof.com/v1/reddit/post/comments?url=https%3A%2F%2Fwww.reddit.com%2Fr%2FIAmA%2Fcomments%2Fz1c9z%2Fi_am_barack_obama_president_of_the_united_states%2F' \
  --header 'x-api-key: YOUR_API_KEY'

JavaScript

const response = await fetch("https://api.fetchproof.com/v1/reddit/post/comments?url=https%3A%2F%2Fwww.reddit.com%2Fr%2FIAmA%2Fcomments%2Fz1c9z%2Fi_am_barack_obama_president_of_the_united_states%2F", {
  method: 'GET',
  headers: {
    'x-api-key': process.env.FETCHPROOF_API_KEY,
  },
});
const data = await response.json();
console.log(data);

Python

import os
import requests

response = requests.get(
    "https://api.fetchproof.com/v1/reddit/post/comments?url=https%3A%2F%2Fwww.reddit.com%2Fr%2FIAmA%2Fcomments%2Fz1c9z%2Fi_am_barack_obama_president_of_the_united_states%2F",
    headers={"x-api-key": os.environ["FETCHPROOF_API_KEY"]},
)
print(response.json())

Go

package main

import (
  "fmt"
  "io"
  "net/http"
  "os"
)

func main() {
  req, _ := http.NewRequest("GET", "https://api.fetchproof.com/v1/reddit/post/comments?url=https%3A%2F%2Fwww.reddit.com%2Fr%2FIAmA%2Fcomments%2Fz1c9z%2Fi_am_barack_obama_president_of_the_united_states%2F", nil)
  req.Header.Set("x-api-key", os.Getenv("FETCHPROOF_API_KEY"))
  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := io.ReadAll(res.Body)
  fmt.Println(string(body))
}

PHP

<?php
$ch = curl_init("https://api.fetchproof.com/v1/reddit/post/comments?url=https%3A%2F%2Fwww.reddit.com%2Fr%2FIAmA%2Fcomments%2Fz1c9z%2Fi_am_barack_obama_president_of_the_united_states%2F");
curl_setopt_array($ch, [
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    'x-api-key: ' . getenv('FETCHPROOF_API_KEY'),
  ],
]);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
Excerpt of published sample response Full response →
{
  "success": true,
  "credits_remaining": 100,
  "credits_charged": 1,
  "post": {
    "subreddit": "IAmA",
    "title": "I am Barack Obama, President of the United States -- AMA",
    "downs": 225969,
    "name": "t3_z1c9z",
    "upvote_ratio": 1,
    "ups": 14761,
    "total_awards_received": null,
    "author_fullname": null,
    "score": 14761,
    "created": 1346274096,
    "id": "z1c9z",
    "author": "PresidentObama",
    "…": "5 more fields"
  },
  "comments": [
    {
      "url": "https://www.reddit.com/r/IAmA/comments/z1c9z/i_am_barack_obama_president_of_the_united_sta…",
      "created_utc": 1634335569,
      "created_at_iso": "2021-10-15T22:06:09.000Z",
      "replies": "{…}",
      "id": "hgsjd74",
      "author": "[deleted]",
      "parent_id": "t3_z1c9z",
      "score": 1,
      "author_fullname": null,
      "body": "[removed]",
      "name": "t1_hgsjd74",
      "downs": null,
      "…": "1 more fields"
    }
  ],
  "more": {
    "has_more": false,
    "cursor": null
  }
}

Limits

Subreddit details can include weekly activity counts when Reddit provides them, but not subscriber counts. Author flair isn't included on comments. Posts may arrive a little behind Reddit, so this isn't a real-time feed. Only public subreddits and posts are available.

What it costs

Each call costs 1 credit. Failed calls cost 0 credits, and setting cache_max_age on subreddit feeds lets you reuse a recent copy for 0 credits.

Try it with 100 free credits

Sign up with an email address, no card. Credits never expire. Errors cost 0 credits, and each endpoint page lists exactly what it charges.