GroundsocialDocs

API · Reddit

GET /reddit/posts/{id}/thread

A post's full comment tree with collapsed replies read in.

RequestGET /v1/reddit/posts/{id}/thread
Operation idreddit.post.thread
Cost5 credits, refunded if the call fails
AuthAPI key: Authorization: Bearer <key> or x-api-key.

A post's full comment tree with collapsed replies read in.

Path parameters

NameTypeRequiredDescription
idstringyesA post id (1y1u285), fullname (t3_1y1u285) or post URL. Example: 1y1u285.

Query parameters

NameTypeRequiredDescription
sort"confidence" | "top" | "new" | "controversial" | "old" | "qa"noComment order. Default confidence. One of confidence, top, new, controversial, old, qa.
limitintegernoComments on the first read, 1 to 500. Default 100.
max_expansionsintegernoExpansion reads, 1 to 9. Default 9.

Responses

StatusMeaningSchema
200The post and its expanded comment tree.ExpandedThread
400Invalid input. Nothing was charged.Error
401Missing or invalid API key.Error
402Not enough credits, a spend cap was reached, or payment is required.Error
403The target is private, or the account is suspended.Error
404The subreddit, post or user does not exist.Error
429Too many requests. Wait for Retry-After seconds.Error
503Reddit is temporarily unavailable. Retryable; nothing was charged.Error

ExpandedThread fields

FieldTypeDescription
postLink
commentsCommentTree
expansionobject

Errors use one shape everywhere; see Errors for every code and what to do.