reddit

Reddit post comments

Get a page of comments on a Reddit post by ID or link: text, commenter, score, reply count, time posted, with the first levels of replies.

Price: $0.002 per call.

Give exactly one of id, url.

Links taken by url: long (https://www.reddit.com/r/nasa/comments/1nnrvkr/); share_text (Look at this https://www.reddit.com/r/nasa/comments/1nnrvkr/ via the app).

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

get/v1/reddit/posts/comments/list

Request

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

Query parameters

idstring

Post ID, with its t3_ prefix

urlstring

Link to the post, pasted as it is: the https://www.reddit.com/r/<community>/comments/… web link (phone or old site too), a redd.it short link, or the /r/<community>/s/… link the app shares. A share link is opened once to see which post it leads to

sort'best' | 'latest' | 'popular'

Reddit's default order (best), newest first, or top score first

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.