Reddit Subreddit posts

Fetch posts from a subreddit, with sort and date filters

Starting price
$0.0028 /record
Offers
2 same output format
Max URLs per request
10

Endpoint

One endpoint for every offer below. Omit provider and the router picks with automatic failover — the response's served_by tells you which one ran.

POSThttps://api.socialrouter.io/v1/reddit/subreddit.posts

Offers

Every offer below returns the same normalized output, in failover order — the first one serves unless you pin another with the provider field.

  • apify/harshmaurvia Apifydefault route

    Up to 10 URLs per request

    $0.0028per record
  • apify/trudaxvia Apify

    Up to 10 URLs per request

    $0.0055per record

Parameters

JSON body of the request. Unknown fields and unknown options are rejected with the valid list, so a wrong guess costs nothing.

ParameterTypeDescription
urlsRequiredstring[]One URL per record to process. Accepted shapes:https://www.reddit.com/r/<subreddit> — A sort suffix (/hot, /new, /top, /rising) is accepted too. /r/all and /r/popular work.Example: https://www.reddit.com/r/programmingA single url string is accepted too.
providerOptionalstringPin one offer, e.g. apify/harshmaur. Omit it and the router picks with failover.
limitOptionalintegerMax records to return per URL.
optionsOptionalobjectService-specific options, listed below.
options.sortOptionalhot | new | top | risingListing sort. Overrides a sort suffix present in the URL.
options.timeOptionalhour | day | week | month | year | allTime window, applied when sort is "top".
options.postedAfterOptionalYYYY-MM-DDOnly posts created on/after this UTC date (offer-dependent).
options.postedBeforeOptionalYYYY-MM-DDOnly posts created before this UTC date (offer-dependent).

Output

Each record has the fields below, whichever offer serves the request. Offers may include additional platform-specific fields on top.

  • post_urlurl

    Link to the post on the subreddit

  • titlestring

    Post title

  • post_textstring

    Self-text body of the post (empty for link posts)

  • author_namestring

    Redditor who posted (e.g. "u/acme_dev")

  • upvotesnumber

    Net upvote score of the post

  • upvote_rationumber

    Share of votes that are upvotes (0-1)

  • comments_countnumber

    Total comments

  • flairstring

    Post flair (when set)

  • posted_atiso8601

    When the post was published

  • sourcestring

    Platform the record was extracted from (e.g. "linkedin")

  • extracted_atiso8601

    UTC timestamp when the record was produced

Going further

Auth, error semantics, and every other endpoint live in the API reference — including the machine-readable OpenAPI spec at /v1/openapi.json.

Frequently asked questions

How much does Reddit subreddit posts cost?

Prices start at $0.0028 per record, depending on the offer that serves the request. You are only charged for records actually returned.

Which offers serve reddit/subreddit.posts?

apify/harshmaur, apify/trudax — 2 offers are available behind the same endpoint. Pin one with the optional "provider" field, or omit it and the router picks with automatic failover. The response's "served_by" field names the offer that ran.

What input does it need?

The "urls" field of the JSON body, as an array of strings: https://www.reddit.com/r/<subreddit> — A sort suffix (/hot, /new, /top, /rising) is accepted too. /r/all and /r/popular work.. For example: https://www.reddit.com/r/programming

Is the output format the same for every offer?

Yes. Every offer returns the normalized record schema documented on this page; some add extra platform-specific fields on top, but the documented fields are always present.

How many URLs can I send per request?

Up to 10 URLs in a single request, depending on the offer.

What happens if an offer fails?

SocialRouter automatically fails over to the next offer serving the same service, so a single upstream outage doesn't break your integration.

What options does it take?

sort (hot|new|top|rising): Listing sort. Overrides a sort suffix present in the URL. time (hour|day|week|month|year|all): Time window, applied when sort is "top". postedAfter (string): Only posts created on/after this UTC date (offer-dependent). postedBefore (string): Only posts created before this UTC date (offer-dependent).

Related services

Get reddit subreddit posts into your app or your AI agent

$5 in free credits to test it — no credit card, no commitment.