Posts

Post Comment Tree by ID (alias)

Alias of GET /api/reddit/post/{postId}/comments — identical response shape and identical $0.0015 price. Provided so the three intuitive comment URL shapes all resolve: /comments?permalink=…, /post/{postId}/comments, and /comments/{postId}. Does not affect GET /api/reddit/comments?permalink=, which remains the permalink-based form. Cost: $0.0015 per call.

get/api/reddit/comments/{postId}

Request

  • Base URL: https://api.redditapis.com
  • URL: https://api.redditapis.com/api/reddit/comments/{postId}
  • Auth: HTTP bearer

Path parameters

postIdstring required

Reddit post id (e.g. 1sgjld3)

Query parameters

limitinteger

Maximum number of top-level comments, 1-500 (default 100). Reddit's own knob on the thread read.

depthinteger

Maximum reply depth to include, 1-10. Absent, Reddit's full tree is returned. depth=1 returns top-level comments only.

sort'confidence' | 'top' | 'new' | 'controversial' | 'old' | 'qa'

Comment ordering: confidence (Reddit's best), top, new, controversial, old or qa. Absent, Reddit's default for the thread.

Response

Successful response.

postobject nullable
commentsobject[]
afterstring nullable
exhausted_reasonstring nullable
listing_statusstring nullable
items_returnedinteger nullable
final_page_itemsinteger nullable
hintstring nullable

Changes

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