status | boolean | true when the request succeeded |
request_id | string | Unique request identifier |
data | object | The post and its top comments; null with error.code = not_found / deleted. |
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.returned_comments | integer | Comments in top_comments. |
data.post | object | The post card. |
data.post.post_id | string | Post fullname, e.g. t3_z1c9z. |
data.post.title | string | Post title; null when Reddit shows only its removal placeholder ([ Removed by moderator ]…). |
data.post.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.post.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.post.post_url | string | Absolute link of the post’s Reddit thread (https://www.reddit.com + permalink), ready to open. |
data.post.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.post.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.post.subreddit | string | Subreddit name without r/. |
data.post.subreddit_id | string | Subreddit id (t5_…). |
data.post.subreddit_type | string | Community type: public, restricted, private, user (a post on a profile)…; null when this endpoint does not carry it. Only with with_details=true on /post/batch and /answers (always on /post/search). Left out on /subreddit/posts, /feed/best, /feed/popular, /feed/games, /content/stories, /content/viral-media, /media/search, /user/activity and /user/insights. |
data.post.subreddit_icon_url | string | Community icon URL; null when this endpoint does not carry it. Only with with_details=true on /post/batch, /domain/posts and /answers. Left out on /subreddit/posts, /feed/best, /feed/popular, /feed/games, /content/stories, /content/viral-media, /media/search, /user/activity, /user/insights and /subreddit/multi-posts. |
data.post.is_subreddit_nsfw | boolean | The community is 18+ (a post can be safe for work in an 18+ community); null when this endpoint does not carry it. Only with with_details=true on /post/batch, /domain/posts and /answers. Left out on /subreddit/multi-posts. |
data.post.is_subreddit_quarantined | boolean | The community is quarantined; null when this endpoint does not carry it. Only with with_details=true on /post/batch, /domain/posts and /answers. Left out on /subreddit/posts, /feed/best, /feed/popular, /feed/games, /content/stories, /content/viral-media, /media/search, /user/activity, /user/insights and /subreddit/multi-posts. |
data.post.is_author_deleted | boolean | The author’s account is deleted (the post may remain). |
data.post.author_id | string | Author account id (t2_…). Only with with_details=true on /post/batch and /answers. |
data.post.is_author_nsfw | boolean | The author’s profile is marked 18+; null when this endpoint does not carry it. Only with with_details=true on the routes that have it. Left out on /subreddit/posts, /feed/best, /feed/popular, /feed/games, /content/stories, /content/viral-media, /media/search, /user/activity, /user/insights and /subreddit/multi-posts. |
data.post.score | integer | Net upvotes at fetch time. |
data.post.upvote_ratio | float | Upvote share 0–1, 4 decimals (e.g. 0.8218). Only with with_details=true on the routes that have it. Left out on /subreddit/multi-posts. Left out on /media/search. |
data.post.comments_count | integer | Comment count reported by Reddit. |
data.post.crossposts_count | integer / null | Number of crossposts; null when Reddit sends no count (it sends none, not 0, for most posts never crossposted) or this endpoint does not carry it. Only with with_details=true on /post/batch and /answers (always on /post/search). Left out on /subreddit/posts, /feed/best, /feed/popular, /feed/games, /content/stories, /content/viral-media, /media/search, /user/activity and /user/insights. On the /post/crossposts source_post: Reddit’s total of crossposts of the post. |
data.post.created_at | string | ISO-8601 UTC creation time, microsecond precision. Left out on /media/search and on /answers without with_details. |
data.post.is_nsfw | boolean | Marked NSFW. |
data.post.is_spoiler | boolean | Marked spoiler. Only with with_details=true on /post/batch and /answers. |
data.post.is_archived | boolean | Archived (no new votes or comments). Only with with_details=true on the routes that have it (always on /post/search). Left out on /media/search. |
data.post.is_crosspost | boolean | The post is a crosspost. Only with with_details=true on the routes that have it. Left out on /media/search. |
data.post.crosspost_parent_id | string / null | Id of the original post (t3_…) this crosspost shares; null unless is_crosspost and the endpoint carries it. Pass it to /post/details. Only with with_details=true on /post/batch and /answers (always on /post/search). |
data.post.crosspost_parent_subreddit | string / null | Subreddit of the original post, without r/; null unless is_crosspost. Only with with_details=true on /post/batch and /answers (always on /post/search). |
data.post.removed_by | string / null | Who removed the post: moderator, author, automod, spam, reddit or other; null when live or when this endpoint does not carry it. Only with with_details=true on the routes that have it. |
data.post.removal_category | string / null | Reddit’s removal reason as sent, e.g. moderator or automod_filtered; null when live. Only with with_details=true on the routes that have it. |
data.post.thumbnail_url | string / null | Thumbnail URL. |
data.post.thumbnail_width | integer / null | Thumbnail pixel width; null when this endpoint does not carry it. Only with with_details=true on the routes that have it. |
data.post.thumbnail_height | integer / null | Thumbnail pixel height; null when this endpoint does not carry it. Only with with_details=true on the routes that have it. |
data.post.body_text | string | Self text as plain text. Only with with_details=true on the routes that have it. Left out on /post/crossposts, /post/by-url and /subreddit/multi-posts. Left out on /media/search. |
data.post.body_media | array | Images and videos embedded in the text body, in order; empty when none or when this endpoint does not carry them. Only with with_details=true on the routes that have it. |
data.post.poll | object / null | Poll options and totals (poll posts only). Only with with_details=true on the routes that have it. |
data.post.media | object | Images, video renditions, gallery, embed. Only with with_details=true on the routes that have it (always on /post/search). |
data.post.media.type | string / null | Media kind: image, video, gif, gallery, embed or null. |
data.post.media.preview_url | string | Largest still preview URL. |
data.post.media.preview_width | integer | Preview pixel width. |
data.post.media.preview_height | integer | Preview pixel height. |
data.post.media.preview_variants | array of objects | Every size Reddit renders of the preview image, smallest first; empty when this endpoint does not carry them. |
data.post.media.preview_variants[].size | string | thumbnail (108 px wide), compact, medium (320), large (640), extra_large (1080) or full (the original size). |
data.post.media.preview_variants[].url | string | Image URL at that size. |
data.post.media.preview_variants[].width | integer | Pixel width. |
data.post.media.preview_variants[].height | integer | Pixel height. |
data.post.media.alt_text | string / null | Image description the author set for screen readers; null when none. |
data.post.media.hls_url | string / null | HLS playlist (.m3u8) for hosted video. |
data.post.media.video_url | string / null | Player URL of a third-party embed (YouTube, Streamable…), or the downloadable MP4 of a Reddit-hosted video (signed, expires within about a day). Null when the source of the route does not carry it (a hosted video on a listing card: use renditions). |
data.post.media.poster_url | string / null | Video poster image. |
data.post.media.captions_url | string / null | WebVTT captions URL when available. |
data.post.media.duration_seconds | integer / null | Video duration in seconds. |
data.post.media.width | integer / null | Video pixel width (a hosted video’s full size, or the embed player’s size). |
data.post.media.height | integer / null | Video pixel height (a hosted video’s full size, or the embed player’s size). |
data.post.media.renditions | array | MP4 renditions with bitrate and size (hosted video only). |
data.post.media.embed_html | string / null | oEmbed iframe HTML for third-party embeds (YouTube, Streamable…). |
data.post.media.embed_provider | string / null | Embed provider name, e.g. YouTube or Streamable; null on Reddit-hosted media. |
data.post.media.gallery | array | Gallery images in page order. |
data.post.is_self_post | boolean | Text post (no outbound link). |
data.post.subreddit_subscribers_count | integer | Subscribers of the subreddit at fetch time. |
data.post.subreddit_weekly_visitors | integer | Weekly visitors of the subreddit at fetch time. |
data.post.subreddit_weekly_contributions | integer | Posts and comments made in the subreddit over the last week, at fetch time. |
data.awards | array | Awards the post received, one row per award type; empty when it has none. |
data.top_comments | array of objects | The comments Reddit shows first, in Reddit’s order (at most 11, or limit). Reddit chooses them; there is no next page. Full tree: /post/comments. |
data.top_comments[].comment_id | string | Comment fullname, e.g. t1_19rn8ir2ppdpf (read from the permalink). Pass it to /comment/replies or /comment/details. |
data.top_comments[].permalink | string | Comment path, e.g. /r/technology/comments/1xf9ssl/lg_smart_tvs/19rn8ir2ppdpf/. |
data.top_comments[].post_url | string | Absolute link of the comment on Reddit (https://www.reddit.com + permalink), ready to open. |
data.top_comments[].author | string | Username; null with is_author_deleted true for a deleted account. |
data.top_comments[].is_author_deleted | boolean | The author’s account is deleted (the comment may remain). |
data.top_comments[].author_avatar_url | string | Author avatar URL (64 px). |
data.top_comments[].score | integer | Net upvotes at fetch time; null when Reddit hides the score. |
data.top_comments[].created_at | string | ISO-8601 UTC creation time. |
data.top_comments[].distinguished | string / null | moderator or admin when distinguished; else null. |
data.top_comments[].is_stickied | boolean | Pinned at the top of the thread. |
data.top_comments[].is_removed | boolean | Removed by a moderator (body replaced by Reddit’s notice). |
data.top_comments[].body_text | string | Comment as plain text. When Reddit sends no rich text for a comment, this is Reddit’s own preview, cut at 300 characters. |
data.top_comments[].body_media | array | Images and videos embedded in the comment, in order; empty when none. |
request_params | object | Echo of the parameters you sent |