Up to 200 posts at once by id, in the order sent: title, community, link, current score, comment count, NSFW flag, thumbnail and created time; ids Reddit no longer has are listed in missing_ids. with_details=true (at most 25 ids) adds the full post card. Billed 1 request per post found (minimum 1), +1 per post detailed with with_details=true. /post/comments and /post/export already return the full post card with the thread: use /post/batch only for a metadata or status refresh.
HTTP Request
GET /post/batch
Cost (in requests): 1 per post found; +1 per post detailed. Every successful answer reports its cost in data.billed_requests.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
post_ids | string | Yes | - | Post ids, with or without t3_, 1–200 (1–25 with with_details). Comma-separated, duplicates removed, request order kept in the answer. Large batches (over about 100 ids) can return part of the ids in not_attempted; send those again (they are not billed). |
with_details | boolean | No | false | Adds these fields per post (left out without it): author, author_id, upvote_ratio, flair, body_text, body_media, media, poll, subreddit_type, author_flair, author_type, author_avatar_url, is_author_nsfw, is_brand_affiliate, distinguished, is_locked, is_archived, is_stickied, is_crosspost, crosspost_parent_id, crosspost_parent_subreddit, crossposts_count, shares_count, removed_by, removal_category, thumbnail_width, thumbnail_height, is_spoiler, is_subreddit_nsfw, is_subreddit_quarantined, subreddit_icon_url. Caps the batch at 25 ids. Billed: +1 request per post detailed. |
include_html | boolean | No | false | Adds body_html (the rendered HTML body) to every post and comment. Default: left out; body_text carries the same text. |
translate_to | string | No | none | Reddit’s own machine translation of the post titles into this language (default none: original language). Availability varies by post and page: check is_translated on each row. See the allowed values in the API overview
. |
Response
Real response to GET /post/batch?post_ids=t3_1xj9fse,t3_1xm7oif (arrays trimmed to 2 items, long texts cut with …).
| |
Response Fields
| Field | Type | Description |
|---|---|---|
status | boolean | true when the request succeeded |
request_id | string | Unique request identifier |
data | object | Batch result. |
data.requested_count | integer | Ids requested after de-duplication. |
data.found_count | integer | Posts returned; the billing unit. |
data.truncated | boolean | True when the request ran out of time before every post was looked up; the rest are not looked up, not billed, and listed in not_attempted. Send them again in a new request. |
data.not_attempted | array | Requested ids that were not looked up in time (empty unless truncated). Send them again. |
data.missing_ids | array | Requested ids Reddit did not return (deleted, removed or never existed; /post/status tells which). |
data.billed_requests | integer | Requests billed for this call (also sent as Requests in the X-RapidAPI-Billing header when it is not RapidAPI’s default of 1). |
data.items | array of objects | Found posts in request order (ids Reddit does not know are left out and listed in missing_ids). |
data.items[].post_id | string | Post fullname, e.g. t3_z1c9z. |
data.items[].title | string | Post title; null when Reddit shows only its removal placeholder ([ Removed by moderator ]…). |
data.items[].type | string | text, link, image, gif, gallery, video, poll, crosspost, embed, game. A text post with inline images is text (its images in body_media). Only with with_details=true on /post/batch and /answers. |
data.items[].permalink | string | Reddit path, e.g. /r/IAmA/comments/z1c9z/i_am_barack_obama/ (Reddit’s relative value; post_url is the same thread as a full link). Either form can be passed back as url. |
data.items[].post_url | string | Absolute link of the post’s Reddit thread (https://www.reddit.com + permalink), ready to open. |
data.items[].url | string | Where the post points (Reddit’s own url): the outside page for link posts, the image or video file for media posts (https://i.redd.it/…, https://v.redd.it/…), the original post for crossposts, the thread itself for text posts. The post’s own thread is post_url. |
data.items[].domain | string | Link domain (arstechnica.com). For a text post Reddit fills the placeholder self.{subreddit}, which is not a link domain: /domain/posts refuses it; list text posts with /subreddit/posts?post_type=text. |
data.items[].subreddit | string | Subreddit name without r/. |
data.items[].subreddit_id | string | Subreddit id (t5_…). |
data.items[].is_author_deleted | boolean | The author’s account is deleted (the post may remain). |
data.items[].score | integer | Net upvotes at fetch time. |
data.items[].comments_count | integer | Comment count reported by Reddit. |
data.items[].created_at | string | ISO-8601 UTC creation time, microsecond precision. Left out on /media/search and on /answers without with_details. |
data.items[].is_nsfw | boolean | Marked NSFW. |
data.items[].thumbnail_url | string | Thumbnail URL. |
request_params | object | Echo of the parameters you sent |
Error Responses
Invalid input returns HTTP 400, not billed. error is a plain string that names the parameter:
| |
| Status Code | Cause | Description |
|---|---|---|
| 400 | Invalid or missing parameter | Plain-English message per field. Not billed |
200 with status: false | Item not available | error.code is not_found, deleted (post removed or deleted). data is null. Billed 1 request |
| 503 | Reddit temporarily unreachable | "error": "Service temporarily unavailable". Not billed, retry later |
Code Examples
| |
| |
| |
Related Endpoints
- Post Crossposts : Crossposts and other discussions of a post
- Posts by URL : Posts that submitted one exact link
- Post Status : Check whether up to 200 posts are live, removed or deleted