Reddit

Subreddit posts

Retrieve public subreddit posts, newest first by default, with ranking, timeframe, publication-time filters, after continuation and optional trimmed records. Each successful request costs 1 account credit, including partial results. Failed requests cost 0 credits.

get/v1/reddit/subreddit

Request

  • Base URL: https://api.scrapeatlas.com
  • URL: https://api.scrapeatlas.com/v1/reddit/subreddit
  • Auth: API key in header x-api-key

Query parameters

subredditstring required
sort'best' | 'hot' | 'new' | 'top' | 'rising'

new (default), hot, best, top or rising.

timeframe'all' | 'day' | 'week' | 'month' | 'year'
number
OR
string

Earliest publication time to include, ISO 8601 or Unix seconds. With sort=new, pagination ends once posts are older than since.

number
OR
string

Publication time to stop before, ISO 8601 or Unix seconds; later than since.

afterstring
boolean
OR
'true' | 'false'
cache_max_age'1d' | '3d' | '7d' | '14d' | '30d'

Optional compatibility value: 1d, 3d, 7d, 14d or 30d.

Response

Inspect the response status and failure or coverage fields.

OR

Changes

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