Introducing the Instagram APIRead more →

Reddit Subreddit Posts API. Posts, page by page.

Hot, New, Top or Rising, with exact scores. We handle the proxies, blocks and platform changes.

Reddit Subreddit Posts API at a glance

Returns a public subreddit's posts a page at a time, sorted Best, Hot, New, Top, Rising or Controversial. Top and Controversial take a time range, from the past hour to all time. Each post has its title and full text, author, exact score and upvote ratio, comment and award counts, images, gallery or video, flair, and whether it is pinned, NSFW, a spoiler, locked, archived or a crosspost. Send the subreddit's link, r/<name> or its name; r/popular works too.

GET /v1/reddit/subreddit_posts

Read the API reference
  • 1 credit per page, $0.75–$1.97 per 1,000 pages
  • 22 typed fields null when unknown
  • 25 posts per page, Reddit's Best order (its default ranking of a subreddit's posts)
  • url is all it needs, e.g. https://www.reddit.com/r/golang/

Send one request. Get up to 25 posts back.

Copy the request in your language, or hand it to your agent. Sign up for an API key and your first 100 credits are free.

$ npm install socialtap
url = https://www.reddit.com/r/golang/
GET /v1/reddit/subreddit_postsTry in
const params = new URLSearchParams({
  sort: "best",
  url: "https://www.reddit.com/r/golang/",
});
const res = await fetch(`https://socialtap.dev/v1/reddit/subreddit_posts?${params}`, {
  headers: { "x-api-key": process.env.SOCIALTAP_API_KEY ?? "" },
});
const body = await res.json();
if (!res.ok) throw new Error(`${body.error.code}: ${body.error.message}`);
const { data, page, meta } = body;
console.log(data, meta.credits_charged);
200 OK · GET https://socialtap.dev/v1/reddit/subreddit_postsLong arrays and strings are shortened here. Real responses are complete.Docs

One schema on 21 platforms.

The response reference lists every field, its type and when it is null. See the full schema.

  • Null means unknown

    A field Reddit doesn't show is null, never zero or an empty string, so a real zero always means zero.

  • What it accepts

    The subreddit: its link on any reddit.com host (www, old, new, np, m, sh), any of its tabs included (/new, /top/?t=week, /about), r/<name>, or its bare name (golang).

  • Write one parser

    Reddit, TikTok, Instagram and 18 more platforms answer in these fields, so the code that reads one reads them all.

platformstring
Platform ID (tiktok, youtube, …).
idstring
Platform-native post ID (string; Instagram shortcode, Reddit with its t3_ prefix).
urlstring
Canonical post URL.
typestring
Normalized content shape. New values may be added; treat unknown values as other.
platform_typestring
The platform's own product label, lowercase (reel, short, story, live, tweet, …).
titlestring
Headline (YouTube title, Reddit title); null on caption-only platforms.
textstring
Caption, description or body as plain text.
languagestring
BCP-47 language of text, when the platform states it.

What teams build with the Reddit Subreddit Posts API.

  • Monitor a subreddit for new posts

  • Collect a subreddit's top posts of the month

  • Track what's rising in a community

  • Feed a subreddit into sentiment analysis

Good to know before you build.

  • is_pinned is true for posts the subreddit's moderators pinned (Reddit's stickied posts). Best and Hot list them among the others, and since never stops a walk at one.
  • On popular and controversial, since picks Reddit's time filter (past hour, day, week, month or year, or all time without since), so the ranking counts that span.
  • Reddit leaves its ads and some removed posts out of a page, so a page can hold fewer posts than the limit while more follow. r/popular's first page holds only a few.
  • Reddit lists only about the newest 1,000 posts of each order (and, on popular and controversial, of each time filter). A walk that reaches them ends with page.end_reason platform_limit, not end.
  • On newest, a cursor whose post Reddit no longer lists (removed, or past those 1,000) returns invalid_cursor (reason expired) rather than starting over from the newest posts.
  • A private, quarantined or members-only subreddit returns private_or_unavailable. A banned or unregistered name returns not_found.
  • Logged out, Reddit shows r/all as its home page. Use r/popular for posts from across Reddit.

1 credit per page. Failed requests are free.

Buy credits once and spend them on any endpoint, on any platform.

SourcePrice per successful pagePer 1,000 pages
Public page page1 credit$0.75–$1.97
  • Cache hits are free.
  • Credits from packs and top-ups never expire.
  • A monthly plan's credits are spent first, and what is left of them ends at each renewal.
  • Prices exclude tax: sales tax is added at checkout where it applies.
  • Outside the US, plans and packs are sold to businesses: checkout asks for your VAT, GST or other business tax ID.

Questions about the Reddit Subreddit Posts API.

More in the API reference.

How much does the Reddit Subreddit Posts API cost?
A page of up to 25 posts costs 1 credit. Every successful page is charged, empty pages included. SocialTap credits cost $0.75–$1.97 per 1,000, depending on the plan or pack.
How do I get the next page?
Repeat the same request with cursor set to page.next_cursor from the previous response, keeping the other parameters. When page.has_more is false there are no more pages. Cursors expire after 1 hour.

Try it on a link you already have.

Paste it in the playground, or copy the request into your code.

100free credits
  • No credit card
  • Failed requests are free
  • Works on all 218 endpoints
Start for free Read the docs