reddit

Reddit community posts

Get a page of the posts of a Reddit community by its name, hot, newest or top score first. Top score is of the last day unless window asks for the last week, month or year, or all time.

Price: $0.002 per call.

Not taken together: sort=hot and window.

Not taken together: sort=latest and window.

25 items on a usual page, 25 at most. A cursor is valid for 3600 seconds.

A community that does not exist cannot be told from a community without posts: both return an empty result, not a 404.

get/v1/reddit/subreddits/posts/list

Request

  • Base URL
    https://api.dataxapi.com
  • Auth
    HTTP bearer

Query parameters

idstring required

Community name, without the r/

sort'hot' | 'latest' | 'popular'

Hot, newest first, or top score first; top score ranks the posts of the last day unless window asks for another period

window'24h' | '7d' | '30d' | '365d' | 'all'

Which period top score first (sort=popular) ranks the posts of: the last 24 hours, 7, 30 or 365 days, or all time; the last 24 hours when left out. Only with sort=popular

cursorstring

The next_cursor of the previous page. A new page is a new call.

view'compact' | 'standard' | 'full'

How much of each item: compact (the most used fields, long text cut short), standard, or full (adds ext).

fieldsstring[]

Return only these fields of each item, by path (author.name).

Response

OK

code'ok' required
request_idstring uuid required

Changes

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