GroundsocialDocs

API · Reddit

POST /reddit/posts/batch

Up to 25 posts in one call, by id.

RequestPOST /v1/reddit/posts/batch
Operation idreddit.post.batch
Cost5 credits, refunded if the call fails
AuthAPI key: Authorization: Bearer <key> or x-api-key.

Up to 25 posts in one call, by id.

Request body

FieldTypeRequiredDescription
idsstring[]yesPost ids, t3_ fullnames or URLs, up to 25.

Responses

StatusMeaningSchema
200The posts found, in the order asked, and the ids that were not.PostBatch
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

PostBatch fields

FieldTypeDescription
postsLinkListing
requestednumber
returnednumber
missingstring[]

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