Skip to content
ChangelogImproved

Reddit joins the Social API

API
A Reddit search on POST /v1/social/reddit/search for running shoes flat feet in r/RunningShoeGeeks, sorted top for the past year, with four posts and their score and commentCount, beside the four Reddit paths: search, post, feed and user-posts

Search Reddit, read a post with its comments, and list subreddit feeds and user posts through the Social API, for 0.5 credits a completed request.

What you get

  • POST /v1/social/reddit/search: posts across all of Reddit or in one subreddit, with sort, timeRange and limit from 1 to 100.
  • POST /v1/social/reddit/post: one post from postUrl or url with its first page of comments, ordered by commentSort and trimmed by commentMaxDepth.
  • POST /v1/social/reddit/feed for a subreddit’s newest posts, or r/popular without subreddit, and POST /v1/social/reddit/user-posts for the posts a username submitted.
  • Each post with postId, title, url, subreddit, score, commentCount and createdAt, at 0.5 credits a request.

How it works

Send the fields straight to POST /v1/social/reddit/{action}, or send taskType SOCIAL to POST /v1/async/task with platform reddit and an action: search, post, feed or user_posts. A path waits for the task as POST /v1/sync/task does, up to 290 seconds or what Prefer: wait asks, and answers 202 with Location while the task still runs. The request below reads one post as an async task.

curl -X POST https://api.querying.ai/v1/async/task \
  -H "Authorization: Bearer $QUERYING_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "taskType": "SOCIAL",
    "payload": {
      "platform": "reddit",
      "action": "post",
      "postUrl": "https://www.reddit.com/r/RunningShoeGeeks/comments/1s2a7lz/",
      "commentSort": "top"
    }
  }'

subreddit takes the name with or without r/, or the subreddit’s URL. The response puts platform, action and returnedCount beside results, the same shape as the other Social platforms. A post read returns post, comments and postUrl.

taskType REDDIT and POST /v1/serp/reddit/search keep working with the same fields at 1 credit a task. Move a request to a Social path to read the same posts for 0.5 credits. The read_social tool on the querying.ai MCP server reads Reddit too.

Where it helps

  • Collect the most upvoted posts of the past year in the subreddit where your buyers talk, then read each one’s comments with /post.
  • Read the Reddit threads that AI answers cite: send each cited url to /post and get the post with its comments.
  • Check a subreddit’s newest posts every hour with /feed and catch your brand’s name the day it shows up.

Send a request

Send the request with your API key in the Authorization header.

curl -X POST https://api.querying.ai/v1/social/reddit/search \
  -H "Authorization: Bearer $QUERYING_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "running shoes flat feet",
    "subreddit": "RunningShoeGeeks",
    "sort": "top",
    "timeRange": "year"
  }'

Request fields

querystringRequired
The search, as you would type it into Reddit’s search box.
subredditstring
Searches one subreddit: the name after r/, 2 to 21 letters, digits or underscores. Without it, the search covers all of Reddit.
sortstring
The order of the posts: relevance (the default), hot, top, new or comments.
timeRangestring
How far back the posts go: hour, day, week, month, year or all (the default).
limitinteger
Posts to return, from 1 to 100. Default 25.
webhook.urlstring
An HTTPS address on your server. The finished task is posted there the moment it completes.

Response

The response, trimmed for length.

JSON
{
  "success": true,
  "task": {
    "id": "…",
    "taskType": "SOCIAL",
    "status": "COMPLETED",
    "createdAt": "…"
  },
  "credits": { "creditsToCharge": 0.5, "creditsCharged": 0.5 },
  "response": {
    "platform": "reddit",
    "action": "search",
    "subreddit": "RunningShoeGeeks",
    "returnedCount": 8,
    "results": [
      {
        "postId": "1s2a7lz",
        "title": "RunRepeat: Are running shoes improving?",
        "url": "https://www.reddit.com/r/RunningShoeGeeks/comments/1s2a7lz/runrepeat_are_running_shoes_improving/",
        "subreddit": "RunningShoeGeeks",
        "score": 879,
        "commentCount": 188,
        "createdAt": "2026-03-24T10:39:57.878000+0000"
      },
      "…"
    ]
  }
}
task.statusstring
QUEUED, PROCESSING, then COMPLETED with the answer or FAILED with error.
credits.creditsChargedinteger
Credits charged for the finished task. A failed task charges 0.
response.returnedCountinteger
The number of items in the list the action returned, such as jobs, videos, tweets or comments.
response.resultsarray
Posts that match the search: postId, title, url, subreddit and preview.

Pricing

Each completed request costs 0.5 credits on every Reddit action, charged when the task completes. Requests sent as REDDIT stay at 1 credit. Plans and credits: https://querying.ai/pricing

More updates

Stay in the loop

Get new product updates in your inbox.

RSS feed