Reddit API for AI agents

The Reddit thread, in one API call

Fetch a public Reddit post with its nested replies, including comments behind “load more”. Get structured JSON or Markdown ready for your agent.

100 free credits. No card required.

GET /v1/reddit/post

Request

r/selfhosted

Quarter 2 Update - Revisiting Rules. Again.

Response

Saved example

# Quarter 2 Update - Revisiting Rules. Again.

https://www.reddit.com/r/selfhosted/comments/1sey9ch/

Welcome to Quarter 2 2026! The moderators are here and grateful for everyone's participation and feedback.

The free preview returns the post body and metadata.

Read nested replies with an API key
curl -G https://api.threadapi.dev/v1/reddit/post \
  -H "Authorization: Bearer $THREADAPI_API_KEY" \
  --data-urlencode 'url=https://www.reddit.com/r/selfhosted/comments/1sey9ch/' \
  -d "format=md" -d "max_comments=500"

Works with

  • Claude Code
  • Codex
  • Cursor
  • Hermes
  • OpenClaw
  • Any HTTP client

Keyword monitors + agents

Turn a Reddit mention into a brief

Watch for keywords in public posts and comments. Send matches to a webhook, or read them through the API or MCP. Your agent can pull the discussion and share a brief with your team.

DemoLead discovery
01 / 05
  1. 01

    Monitor matches

    r/selfhosted · “self-hosted backup”
    Watching
    r/webdev8m ago
    Monitor match · “Reddit API”

    Which Reddit API can include nested replies?

    r/devops4m ago
    Monitor match · “timeout”

    Has anyone else seen more API timeouts this morning?

    r/selfhostednow
    Monitor match · “self-hosted backup”

    What’s your self-hosted backup setup for Postgres?

  2. 02

    Agent reads the thread

    Claude Code · ThreadAPI MCP
    Done
    claude ~/research

    > Read the thread and find backup tools worth looking at.

    ● get_monitor_matches└ Match for “self-hosted backup”

    ● get_reddit_post└ Source context retrieved

    Replies discuss restic for off-site backups and how to test restores.

    > Brief ready ● MCP
  3. 03

    Delivered

    Slack · #reddit-leads
    Delivered
    Team agent#reddit-leads
    Self-hosted backup recommendations

    Replies discuss restic for off-site backups and how to test restores.

    r/selfhosted
Matches
New posts and comments
Delivery
Webhook, Slack, Discord, Telegram
Signed webhooks
HMAC-SHA256
Webhook retries
Up to five retries
Active monitor
10 credits / day

ThreadAPI reads public Reddit. Your agent can draft a response for your review.

Endpoints

Ten read endpoints, one API key

Read threads, search discussions, and look up subreddits and users. Paginate listings with after.

GET /v1/reddit/post 1 credit up to 500 comments

Read a post and its nested comments in Markdown or JSON.

curl -G "https://api.threadapi.dev/v1/reddit/post" \
  -H "Authorization: Bearer $THREADAPI_API_KEY" \
  --data-urlencode "url=https://www.reddit.com/r/programming/comments/1x144ok/how_big_is_a_git_commit/" \
  --data-urlencode "max_comments=500" \
  --data-urlencode "format=md"
POST /v1/reddit/posts/batch 1 credit

Look up to 100 posts by ID or URL in a single request.

curl -X POST "https://api.threadapi.dev/v1/reddit/posts/batch" \
  -H "Authorization: Bearer $THREADAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ids":["t3_1x1ai6v","t3_1xagllz"]}'
GET /v1/reddit/search/posts 1 credit / page

Search posts across Reddit or within a subreddit.

curl -G "https://api.threadapi.dev/v1/reddit/search/posts" \
  -H "Authorization: Bearer $THREADAPI_API_KEY" \
  --data-urlencode "q=backup strategy" \
  --data-urlencode "sub=selfhosted"
GET /v1/reddit/search/comments 1 credit / page

Find comments that match a query.

curl -G "https://api.threadapi.dev/v1/reddit/search/comments" \
  -H "Authorization: Bearer $THREADAPI_API_KEY" \
  --data-urlencode "q=postgres replica lag"
GET /v1/reddit/subreddit/posts 1 credit / page

List posts by hot, new, top, rising, or controversial.

curl -G "https://api.threadapi.dev/v1/reddit/subreddit/posts" \
  -H "Authorization: Bearer $THREADAPI_API_KEY" \
  --data-urlencode "sub=selfhosted" \
  --data-urlencode "sort=top" \
  --data-urlencode "t=week"
GET /v1/reddit/subreddit/comments 1 credit / page

Read recent comments in a subreddit.

curl -G "https://api.threadapi.dev/v1/reddit/subreddit/comments" \
  -H "Authorization: Bearer $THREADAPI_API_KEY" \
  --data-urlencode "sub=selfhosted" \
  --data-urlencode "limit=25"
GET /v1/reddit/subreddit 1 credit

Get a subreddit's description, subscriber count, and rules.

curl -G "https://api.threadapi.dev/v1/reddit/subreddit" \
  -H "Authorization: Bearer $THREADAPI_API_KEY" \
  --data-urlencode "sub=selfhosted"
GET /v1/reddit/user 1 credit

Get a public user profile and karma.

curl -G "https://api.threadapi.dev/v1/reddit/user" \
  -H "Authorization: Bearer $THREADAPI_API_KEY" \
  --data-urlencode "name=spez"
GET /v1/reddit/user/posts 1 credit / page

List a user's public posts.

curl -G "https://api.threadapi.dev/v1/reddit/user/posts" \
  -H "Authorization: Bearer $THREADAPI_API_KEY" \
  --data-urlencode "name=spez" \
  --data-urlencode "limit=25"
GET /v1/reddit/user/comments 1 credit / page

List a user's public comments.

curl -G "https://api.threadapi.dev/v1/reddit/user/comments" \
  -H "Authorization: Bearer $THREADAPI_API_KEY" \
  --data-urlencode "name=spez" \
  --data-urlencode "limit=25"

MCP and REST

Give your agent Reddit context

Connect your MCP client to ThreadAPI over Streamable HTTP. Sign in when prompted or authenticate with an API key. The same key works for direct REST requests.

get_reddit_post
Read a post and its nested comments.
get_reddit_items
Look up as many as 100 posts by ID or URL.
list_subreddit_posts
Browse posts in a subreddit.
get_subreddit
Read a subreddit’s description, member count and rules.
search_reddit
Find posts, comments, communities or users.
get_monitor_matches
Read recent matches from your keyword monitors.

MCP calls use the same credits as their REST routes.

Read the MCP setup guide
Terminal
claude mcp add --transport http threadapi https://api.threadapi.dev/mcp

# In Claude Code, run /mcp and sign in when prompted.

Then ask your agent

  • “Read the top posts in r/selfhosted this week. Which backup tools do people recommend?”
  • “Summarize the replies on this thread and link to the comments that support your answer.”
MCP server URL
https://api.threadapi.dev/mcp
Authentication
OAuth or API key
Transport
Streamable HTTP

Pricing

Credit packs with no subscription

Buy credits as you need them. Packs add to one balance and never expire. Start with 100 free credits.

Comments per thread
3,300 estimated credits per 30 days

2,000 credits

$9

$4.50 per 1,000 credits

  • Up to 5 keyword monitors
  • 5 requests per second
  • All REST endpoints and MCP tools
  • Credits never expire
Buy 2,000 credits

10,000 credits Recommended

$29

$2.90 per 1,000 credits

  • Up to 20 keyword monitors
  • 5 requests per second
  • All REST endpoints and MCP tools
  • Credits never expire
Buy 10,000 credits

50,000 credits

$79

$1.58 per 1,000 credits

  • Up to 50 keyword monitors
  • 5 requests per second
  • All REST endpoints and MCP tools
  • Credits never expire
Buy 50,000 credits
A post with up to 500 comments
1 credit
Each additional 100 comments or part of 100
+1 credit
One page of listing or search results
1 credit
A running keyword monitor
10 credits / day
A failed request
0 credits

Thread requests ask for 200 comments by default. Free accounts can make up to 100 requests per day. Full pricing details.

Questions

Frequently asked

Something else? Write to us . A person reads every message.

Where does the data come from?

From Reddit's public pages, read the way a logged-out browser reads them. threadapi doesn't use anyone's Reddit account, and it can't see private, quarantined or age-gated content. Those requests return an error and cost nothing. How you use what you fetch has to follow the laws and terms that apply to you.

Can I use ThreadAPI from an AI agent?

Yes. Connect your MCP client to https://api.threadapi.dev/mcp and sign in, or use an API key to call the REST endpoints. Thread responses are available as JSON or Markdown.

How fresh is a thread?

Threads are cached based on their age. Recent posts are refreshed more often. The X-Cache header tells you whether a request was served from cache.

What exactly does a credit buy?

A post with up to 500 returned comments costs 1 credit. Each additional group of up to 100 returned comments costs 1 more. A page of listing or search results costs 1 credit.

What if my balance runs out halfway through a big thread?

You get the comments your balance covers, the response says limited_by_balance, and the balance never goes below zero. Top up and retry with your desired max_comments limit.

Do failed requests cost anything?

No. A deleted post, a private subreddit, a rate limit or a problem on our side costs nothing. Every successful response says what it cost in the X-Credits-Used header.

Can I get a refund?

Yes, within 14 days of buying a pack if none of its credits were used. Email hello@threadapi.dev.

Start reading

Get your first Reddit thread

100 free credits. Sign in with Google, GitHub or an email code.