100 free credits. No credit card required. Get a key

How to get Reddit data

Checked Code run live

Reddit stopped accepting new Data API apps on 31 October 2026 and ends public access in March 2027. A data API that reads public Reddit for you returns the same Things and Listings reddit.com’s JSON does, so existing parsers and PRAW keep working. A page of up to 100 subreddit posts is 1 credit.

The official Reddit API

Reddit’s Data API is closing to the public. Reddit announced the timeline on 30 September 2026:

  • 31 October 2026: no new requests for public Data API access are accepted.
  • 12 January 2027: access is removed for approved apps and bots that have not registered.
  • March 2027: public API access ends.
  • Until then, existing apps keep the free tier of 100 queries a minute per OAuth client, averaged over 10 minutes. Commercial pricing was only ever by private agreement.

Sources: TechCrunch, 30 Sep 2026, Reddit Data API Wiki.

Quick start

  1. Get a keySign up with an email code: 100 free credits, no card. An agent can sign itself up with POST https://api.groundsocial.dev/v1/agent/signup.
  2. Set it in your shellexport GROUNDSOCIAL_API_KEY=gs_live_…
  3. Make the callA subreddit’s posts: GET /v1/reddit/subreddits/LocalLLaMA/posts, 1 credit.
curl "https://api.groundsocial.dev/v1/reddit/subreddits/LocalLLaMA/posts?sort=new&limit=25" \
  -H "Authorization: Bearer $GROUNDSOCIAL_API_KEY"

Sample response

Trimmed from the real response on 27 November 2026: lists cut to their first items and long strings shortened. Every field is described in the tutorial.

json
{
  "kind": "Listing",
  "data": {
    "after": "t3_1y68f63",
    "dist": 24,
    "children": [
      {
        "kind": "t3",
        "data": {
          "id": "1y6h57r",
          "name": "t3_1y6h57r",
          "title": "Nvidia halts chip shipments to South-East Asia amid US crackdown",
          "author": "fallingdowndizzyvr",
          "subreddit": "LocalLLaMA",
          "subreddit_name_prefixed": "r/LocalLLaMA",
          "permalink": "/r/LocalLLaMA/comments/1y6h57r/nvidia_halts_chip_shipments_to_southeast_asia/",
          "url": "https://www.thenationalnews.com/future/technology/2026/11/26/nvidia-halts-chip-shipments-to-south-east-asia-amid-us-crackdown/",
          "domain": "thenationalnews.com",
          "created_utc": 1795743693,
          "score": 23
        }
      }
    ]
  }
}

Get every page

/v1/reddit/subreddits/LocalLLaMA/posts returns posts a page at a time, and each page costs 1 credit. Pass the response’s data.after back as after until it runs out.

// Collect up to 5 pages of posts.
const first = 'https://api.groundsocial.dev/v1/reddit/subreddits/LocalLLaMA/posts?sort=top&t=month&limit=100'
const items: unknown[] = []
let cursor: string | undefined
for (let page = 0; page < 5; page++) {
  const url = new URL(first)
  if (cursor) url.searchParams.set('after', cursor)
  const res = await fetch(url, {
    headers: { Authorization: `Bearer ${process.env.GROUNDSOCIAL_API_KEY}` },
  })
  if (!res.ok) throw new Error((await res.json()).error.hint)
  const data = await res.json()
  items.push(...(data.data?.children ?? []))
  cursor = data.data?.after ?? undefined
  if (!cursor) break
}
console.log(items.length, 'posts')

What else you can get from Reddit

What you getEndpointCredits
A subreddit’s postsGET /v1/reddit/subreddits/LocalLLaMA/posts1
A post with its comment treeGET /v1/reddit/posts/1xtaf061
A whole thread, every branchGET /v1/reddit/posts/1xtaf06/thread5
Search postsGET /v1/reddit/search/posts2
Search commentsGET /v1/reddit/search/comments2
Subscribers and descriptionGET /v1/reddit/subreddits/LocalLLaMA1
A user’s commentsGET /v1/reddit/users/spez/comments1

Each row links to its tutorial. Every Reddit endpoint and price: Reddit API.

Tips

  • Responses are Reddit’s own Things and Listings (t3 posts, t1 comments, data.after cursors), exactly as reddit.com’s .json gives them.
  • PRAW and snoowrap switch by changing one URL: set oauth_url and reddit_url to https://reddit.groundsocial.dev and pass your key as the client secret.
  • Reddit stops a listing at about 1,000 posts. For a deeper archive, page top for each time window and de-duplicate by name.
  • Big threads end in more items; /thread expands every branch in one call.

Use it from Claude or Cursor (MCP)

Every endpoint is also an MCP tool on the remote server https://api.groundsocial.dev/mcp. The ?platforms=reddit below loads only the Reddit tools. The client signs in with OAuth, or send your key as a Bearer token. Tools used in this guide: reddit_subreddit_posts, reddit_post_get, reddit_post_thread, reddit_search_posts, reddit_search_comments, reddit_subreddit_get, reddit_user_comments.

claude mcp add --transport http groundsocial "https://api.groundsocial.dev/mcp?platforms=reddit"

Setup for ChatGPT, VS Code, Windsurf, n8n and others: MCP client setup.

Pricing

Pay per call from prepaid credits; no subscription. 100 free credits cover the examples on this page. Costs below are at the credit packs’ highest and lowest rates.

JobCreditsCost
1,000 posts from one subreddit (10 pages)10$0.01 → $0.00
1,000 threads, first page of comments1,000$1.00 → $0.40
Daily keyword search, 30 days60$0.06 → $0.02

FAQ

Do I need a Reddit app or client id?

No. You only need a Groundsocial key, and nothing changes when Reddit’s public API closes.

Do I get deleted comments?

No. You get what Reddit shows publicly at the time of the call; removed comments come back as [deleted] or [removed], as on reddit.com.

Can it post, vote or message?

No. It is read-only; writes answer 403.

Are failed calls charged?

No. A target that does not exist answers 404 target_not_found, an upstream failure answers 503, and neither costs anything. Credits never expire.

Is Groundsocial official?

No. Groundsocial is an independent API that reads what the platform shows a logged-out visitor. Reddit is a trademark of Reddit, Inc. We are not affiliated with or endorsed by Reddit.

Go deeper

Reddit is a trademark of Reddit, Inc. We are not affiliated with or endorsed by Reddit.

Try it on your own data

One key for Reddit and every other platform, over REST or MCP. Free credits on signup, no card.