Reddit scraper API

Reddit Subreddit Posts

Returns structured JSON for Reddit Subreddit Posts. Billed $0.00149 per successful call ($1.49 per 1,000); errors, timeouts and rate limits are never charged, while a lookup whose target does not exist is billed like a successful call because the platform was queried. POST with a JSON body works too.

get/api/v1/scrape/reddit/subreddit-posts

Request

  • Base URL: https://hproxy.com
  • URL: https://hproxy.com/api/v1/scrape/reddit/subreddit-posts
  • Auth: API key in header X-API-Key

Query parameters

x-api-keystring required

Your HProxy API key with the scrape scope.

subredditstring required

Subreddit name, without the r/ prefix.

timeframestring

Filter by date, as YYYY-MM-DD. Allowed values: all, day, week, month, year.

sortstring

Ordering to apply to the results. Allowed values: best, hot, new, top, rising.

afterstring

The after parameter.

trimboolean

Return a slimmed-down payload (drops verbose fields).

cache_max_agestring

Accept a cached result up to this old (1d, 3d, 7d, 14d or 30d) and pay nothing for it. Omit for a live scrape. Allowed values: 1d, 3d, 7d, 14d, 30d.

Response

Success

object required

Changes

No recorded changes to this operation across all 1 revision of this API.