Reddit (live)

Get Reddit post comments (live)

Fetch the comment thread of a Reddit post on demand, flattened. Later pages expand "load more" batches and "continue this thread" branches; rank and topLevelRank continue across pages. A cursor expires shortly after the last page was fetched; restart from the first page if it does. Fetches directly from the platform and returns one page with a cursor. Not available for trial access keys.

get/api/data/reddit/posts/{id}/comments/live

Request

  • Base URL: https://api.xpoz.ai
  • URL: https://api.xpoz.ai/api/data/reddit/posts/{id}/comments/live
  • Auth: HTTP bearer

Path parameters

idstring required

Reddit post ID.

Query parameters

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

Thread order. Defaults to best.

fieldsstring[]

Reddit comment fields to return. Comma-separated. Allowed values: id, body, parentPostId, parentId, authorId, authorUsername, postSubredditName, postSubredditId, score, upvotes, downvotes, controversiality, depth, isSubmitter, stickied, collapsed, edited, distinguished, createdAt, createdAtTimestamp, createdAtDate, collapsedReasonCode, collapsedReason, removal, rank, topLevelRank.

limitinteger

Comments per page (1-500). Defaults to 100. Pages that expand a "load more" batch are capped at 100.

treeboolean

When true, replies are nested under their parent in a replies array (formatted with the same fields) instead of returned as a flat list.

cursorstring

Opaque cursor from next_page_cursor of the previous page.

Response

One page of results.

resultsobject[] required
countinteger required
dataSource'database' | 'api' | 'hybrid' required

Where the results came from.

has_moreboolean required
next_page_cursorstring nullable required

Changes

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