The posts a community’s moderators pinned to its highlights carousel, in carousel order, each with the moderator label and the full post card; many communities answer items: []. Give the name or the t5_ id. Billed 1 request per call.
HTTP Request
GET /subreddit/highlights
Cost (in requests): 1. Every successful answer reports its cost in data.billed_requests.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
subreddit | string | Yes | - | Subreddit name (case-insensitive, with or without r/) or its t5_ id. |
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. |
Response
Real response to GET /subreddit/highlights?subreddit=python (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 | Highlights; null with error.code = not_found. |
data.subreddit | string | Subreddit name. |
data.items | array of objects | Highlighted posts in carousel order (often empty). |
data.items[].label | string / null | Highlight label set by the moderators. |
data.items[].post | object | The highlighted post. |
data.items[].post.post_id | string | Post fullname, e.g. t3_z1c9z. |
data.items[].post.title | string | Post title; null when Reddit shows only its removal placeholder ([ Removed by moderator ]…). |
data.items[].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.items[].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.items[].post.post_url | string | Absolute link of the post’s Reddit thread (https://www.reddit.com + permalink), ready to open. |
data.items[].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.items[].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.items[].post.subreddit | string | Subreddit name without r/. |
data.items[].post.subreddit_id | string | Subreddit id (t5_…). |
data.items[].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.items[].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.items[].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.items[].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.items[].post.author | string | Author username; [deleted] is reported as null with is_author_deleted true. Only with with_details=true on /post/batch and /answers. |
data.items[].post.is_author_deleted | boolean | The author’s account is deleted (the post may remain). |
data.items[].post.author_id | string | Author account id (t2_…). Only with with_details=true on /post/batch and /answers. |
data.items[].post.author_avatar_url | string | Author avatar URL. Only with with_details=true on the routes that have it; left out on /media/search and /subreddit/multi-posts. |
data.items[].post.author_type | string | user or app (an app account that posts games or bot content); 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.items[].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.items[].post.author_flair | object / null | Author’s flair in this subreddit; null when this endpoint does not carry it. Only with with_details=true on the routes that have it. Left out on /subreddit/multi-posts and the listing-card routes (/subreddit/posts, /feed/best, /feed/popular, /content/stories, /content/viral-media, /user/activity, /user/insights). |
data.items[].post.flair | object | Post flair. Only with with_details=true on /post/batch and /answers (always on /post/search). On the listing-card routes (/subreddit/posts, the feeds, /content/*, /user/activity and /user/insights posts) it holds text and background_color only. |
data.items[].post.flair.text | string | Flair text (emoji shortcodes kept, e.g. :phx-2: Suns). |
data.items[].post.flair.rich_text | array of objects | Rich-text flair as parts in display order (text, and emoji with their image URL); null for a plain-text flair or when this endpoint does not carry it. |
data.items[].post.flair.rich_text[].type | string | text or emoji. |
data.items[].post.flair.rich_text[].text | string | The text, or the emoji’s short code (e.g. :nba-1:). |
data.items[].post.flair.rich_text[].url | string / null | Emoji image URL (emoji parts only). |
data.items[].post.flair.background_color | string | Hex background colour (#0079D3) or null when the flair has no colour. |
data.items[].post.flair.text_color | string | light or dark text on the flair pill. |
data.items[].post.flair.flair_id | string | Flair template id, the same as flair_id on /subreddit/flairs. A reference id, not an input of this API; null when this endpoint does not carry it. |
data.items[].post.score | integer | Net upvotes at fetch time. |
data.items[].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.items[].post.comments_count | integer | Comment count reported by Reddit. |
data.items[].post.shares_count | integer / null | Times the post was shared, as Reddit counts it; 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.items[].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.items[].post.created_at | string | ISO-8601 UTC creation time, microsecond precision. Left out on /media/search and on /answers without with_details. |
data.items[].post.edited_at | string / null | ISO-8601 UTC last edit; null when never edited. Filled on /post/details; never on /post/batch; the post embedded in /post/comments, /post/export, /post/summary and the other single-post routes leaves it out (read it on /post/details). |
data.items[].post.is_nsfw | boolean | Marked NSFW. |
data.items[].post.is_spoiler | boolean | Marked spoiler. Only with with_details=true on /post/batch and /answers. |
data.items[].post.is_stickied | boolean | Pinned in the feed (feeds and listings only). Only with with_details=true on /post/batch and /answers (always on /post/search). Left out on /media/search. |
data.items[].post.is_locked | boolean | Comments locked. Only with with_details=true on /post/batch and /answers (always on /post/search). Left out on /media/search. |
data.items[].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.items[].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.items[].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.items[].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.items[].post.is_brand_affiliate | boolean | Reddit’s paid-partnership disclosure is set on the post; 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.items[].post.is_highlighted | boolean | Highlighted by the moderators. Served on the listing routes and on /post/details; the post embedded in /post/comments, /post/export, /post/summary and the other single-post routes leaves it out (read it on /post/details), as do the routes that do not have it. |
data.items[].post.distinguished | string / null | moderator or admin when the post is distinguished; else null. Only with with_details=true on the routes that have it. |
data.items[].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.items[].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.items[].post.position | integer / null | Rank in the feed or the search results, 1-based and counted across pages (feeds keep Reddit’s gaps where ads were). |
data.items[].post.thumbnail_url | string / null | Thumbnail URL. |
data.items[].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.items[].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.items[].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.items[].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.items[].post.poll | object / null | Poll options and totals (poll posts only). Only with with_details=true on the routes that have it. |
data.items[].post.media | object / null | Images, video renditions, gallery, embed. Only with with_details=true on the routes that have it (always on /post/search). |
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). |
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, banned, private, quarantined. data is null. Billed 1 request |
| 503 | Reddit temporarily unreachable | "error": "Service temporarily unavailable". Not billed, retry later |
Code Examples
| |
| |
| |
Related Endpoints
- Subreddit Recommend : Communities where a product or topic fits, ranked, with their self-promotion policy
- Subreddit Flairs : Post and user flair templates of a subreddit
- Subreddit Wiki : A subreddit wiki page (HTML, markdown, latest revision)