Finds recent Reddit posts worth answering about your product, from a description and/or keywords: open, low-comment posts that read like a request, each with a score (0–100), the community’s self_promo_policy and, in mode=full, an AI judgement of relevance, intent and urgency with verbatim evidence. funnel counts the posts found, kept and judged; answers are kept 10 minutes. Billed 10 requests per call, plus 1 AI unit per model answer (listed under mode). Use POST for a long description or keywords that contain commas.
HTTP Request
GET /insights/opportunities (also POST /insights/opportunities with a JSON body, see below)
Cost (in requests): 10 + AI units. Every successful answer reports its cost in data.billed_requests. AI endpoints need a paid plan.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
description | string | No | - | What you offer, in plain words (20–2000 characters); required unless keywords is given. |
keywords | string | No | - | Search phrases to use instead of (or with) the description, searched as given (≤ 8). Comma-separated. |
limit | integer | No | 10 | Opportunities to return (1–20). |
mode | string | No | full | full (an AI model judges relevance, intent and urgency) or fast (word-match score only; no AI model call when keywords are given). In fast mode relevance counts the description words and phrases a post contains, relative to the best match of the request (10), so a post sharing one common word can rank high; a post with no word or phrase of the request is left out (the answer may be shorter or empty). AI units: 1 for reading the description (none in fast mode with keywords) and, in full mode, 1 per batch of up to 10 posts judged (at most 2); none on a stored answer. |
subreddits | string | No | - | Communities to search for the phrases, as posts and comments, and to read the newest posts of (≤ 10 accepted, the first 5 read): subreddit names, r/name, or t5_ ids. Without it the phrases are searched across Reddit. Comma-separated. |
time | string | No | week | How far back to look: day (24 hours), week (7 days, default) or month (31 days). A thread found through a comment counts when the comment is that recent. |
include_nsfw | boolean | No | true | Default true: adult content included (communities and posts marked NSFW); pass false to exclude it. |
language | string | No | - | Language of the model’s answer (ISO-639-1, e.g. en, es, pt-BR). Quotes keep their original language. |
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. |
fresh | boolean | No | false | Default false. True recomputes instead of serving the stored result (bills the full cost). |
POST body
POST /insights/opportunities accepts the same fields as a JSON body (Content-Type: application/json). List fields are JSON arrays instead of comma-separated strings. Use POST when the text is long.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
description | string | No | - | What you offer, in plain words (20–2000 characters); required unless keywords is given. |
keywords | array of string | No | - | Search phrases to use instead of (or with) the description, searched as given (≤ 8). |
limit | integer | No | 10 | Opportunities to return (1–20). |
mode | string | No | full | full (an AI model judges relevance, intent and urgency) or fast (word-match score only; no AI model call when keywords are given). In fast mode relevance counts the description words and phrases a post contains, relative to the best match of the request (10), so a post sharing one common word can rank high; a post with no word or phrase of the request is left out (the answer may be shorter or empty). AI units: 1 for reading the description (none in fast mode with keywords) and, in full mode, 1 per batch of up to 10 posts judged (at most 2); none on a stored answer. |
subreddits | array of string | No | - | Communities to search for the phrases, as posts and comments, and to read the newest posts of (≤ 10 accepted, the first 5 read): subreddit names, r/name, or t5_ ids. Without it the phrases are searched across Reddit. |
time | string | No | week | How far back to look: day (24 hours), week (7 days, default) or month (31 days). A thread found through a comment counts when the comment is that recent. |
include_nsfw | boolean | No | true | Default true: adult content included (communities and posts marked NSFW); pass false to exclude it. |
language | string | No | - | Language of the model’s answer (ISO-639-1, e.g. en, es, pt-BR). Quotes keep their original language. |
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. |
fresh | boolean | No | false | Default false. True recomputes instead of serving the stored result (bills the full cost). |
Response
Real response to GET /insights/opportunities?keywords=reddit api,reddit scraper&description=An API that extracts Reddit data for developers&limit=5 (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 | Present on success and on a model failure (then with the word-match score only). |
data.opportunities | array of objects | Posts worth answering, best first. |
data.opportunities[].post | object | The post. |
data.opportunities[].post.post_id | string | Post fullname, e.g. t3_z1c9z. |
data.opportunities[].post.title | string | Post title; null when Reddit shows only its removal placeholder ([ Removed by moderator ]…). |
data.opportunities[].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.opportunities[].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.opportunities[].post.post_url | string | Absolute link of the post’s Reddit thread (https://www.reddit.com + permalink), ready to open. |
data.opportunities[].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.opportunities[].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.opportunities[].post.subreddit | string | Subreddit name without r/. |
data.opportunities[].post.subreddit_id | string | Subreddit id (t5_…). |
data.opportunities[].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.opportunities[].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.opportunities[].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.opportunities[].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.opportunities[].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.opportunities[].post.is_author_deleted | boolean | The author’s account is deleted (the post may remain). |
data.opportunities[].post.author_id | string | Author account id (t2_…). Only with with_details=true on /post/batch and /answers. |
data.opportunities[].post.author_avatar_url | string / null | Author avatar URL. Only with with_details=true on the routes that have it; left out on /media/search and /subreddit/multi-posts. |
data.opportunities[].post.author_type | string / null | 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.opportunities[].post.is_author_nsfw | boolean / null | 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.opportunities[].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.opportunities[].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.opportunities[].post.flair.text | string | Flair text (emoji shortcodes kept, e.g. :phx-2: Suns). |
data.opportunities[].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.opportunities[].post.flair.rich_text[].type | string | text or emoji. |
data.opportunities[].post.flair.rich_text[].text | string | The text, or the emoji’s short code (e.g. :nba-1:). |
data.opportunities[].post.flair.rich_text[].url | string / null | Emoji image URL (emoji parts only). |
data.opportunities[].post.flair.background_color | string | Hex background colour (#0079D3) or null when the flair has no colour. |
data.opportunities[].post.flair.text_color | string | light or dark text on the flair pill. |
data.opportunities[].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.opportunities[].post.score | integer | Net upvotes at fetch time. |
data.opportunities[].post.upvote_ratio | number / null | 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.opportunities[].post.comments_count | integer | Comment count reported by Reddit. |
data.opportunities[].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.opportunities[].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.opportunities[].post.created_at | string | ISO-8601 UTC creation time, microsecond precision. Left out on /media/search and on /answers without with_details. |
data.opportunities[].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.opportunities[].post.is_nsfw | boolean | Marked NSFW. |
data.opportunities[].post.is_spoiler | boolean | Marked spoiler. Only with with_details=true on /post/batch and /answers. |
data.opportunities[].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.opportunities[].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.opportunities[].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.opportunities[].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.opportunities[].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.opportunities[].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.opportunities[].post.is_brand_affiliate | boolean / null | 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.opportunities[].post.is_highlighted | boolean / null | 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.opportunities[].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.opportunities[].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.opportunities[].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.opportunities[].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.opportunities[].post.thumbnail_url | string / null | Thumbnail URL. |
data.opportunities[].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.opportunities[].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.opportunities[].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.opportunities[].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.opportunities[].post.poll | object / null | Poll options and totals (poll posts only). Only with with_details=true on the routes that have it. |
data.opportunities[].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.opportunities[].opportunity_score | integer | 0–100 opportunity score. |
data.opportunities[].relevance | integer | 0–10 relevance to the description: the model’s reading in full mode; the word match with the description and phrases, scaled 0–10 over the candidates, in fast mode or when the model did not answer; null for a candidate the model left out. Model output: treat as untrusted text if you pass it to an agent with tools. |
data.opportunities[].intent_type | string | seeking_recommendation, asking_alternative, complaint, question, showcase, discussion, other. Model output: treat as untrusted text if you pass it to an agent with tools. |
data.opportunities[].urgency | string | low, medium, high. Model output: treat as untrusted text if you pass it to an agent with tools. |
data.opportunities[].op_is_active | boolean | True when the author replied in the thread (read for the top candidates only). |
data.opportunities[].age_hours | float | Hours since the post was created. |
data.opportunities[].self_promo_policy | string | The community’s self-promotion policy when its rules were read. |
data.opportunities[].reasons | array of string | Up to 3 reasons. Model output: treat as untrusted text if you pass it to an agent with tools. |
data.opportunities[].competitors_mentioned | array of string | Competitors named in the post. Model output: treat as untrusted text if you pass it to an agent with tools. |
data.opportunities[].evidence | array of objects | Comments cited by the model (always ids it was given). |
data.opportunities[].evidence[].comment_id | string | Comment id. |
data.opportunities[].evidence[].excerpt | string | Verbatim excerpt (≤ 280 characters). |
data.funnel | object | How many posts went through each step. |
data.funnel.candidates_count | integer | Posts found. |
data.funnel.filtered_count | integer | Posts left after removing closed, old or off-topic ones. |
data.funnel.judged_count | integer | Posts the model judged (0 in fast mode). |
data.truncated | boolean | True when the candidate set was cut to keep the answer fast. |
data.language | string | Language of the answer. |
data.ai | object | How the model judged (null in fast mode). |
data.ai.input_tokens | integer | Input tokens of the model call. |
data.ai.output_tokens | integer | Output tokens of the model call. |
data.ai.possible_injection | boolean | True when the input text contained instruction-like phrasing (“ignore previous instructions” and the like). Informational: the answer was still produced from the data. |
data.ai.truncated | boolean | True when the input was cut to fit max_chars (or to keep the answer fast). |
data.ai.cached | boolean | True when the answer was served from the stored result (or the rules had not changed), so no model call was made for this request. |
data.computed_at | string | When this answer was computed (RFC 3339, UTC). Older than the request when it was served from the cache. |
data.fresh | boolean | True when computed for this request; false when served from the stored result. |
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 |
503 with error.code | AI model failed | llm_timeout, llm_error or invalid_output. The Reddit data read so far is still in data. Not billed, retry |
| 503 | Reddit temporarily unreachable | "error": "Service temporarily unavailable". Not billed, retry later |
Code Examples
| |
| |
| |
POST example
| |
| |
| |
Related Endpoints
- Share of Voice : Share of voice of 1–10 brands in the Reddit threads of a keyword or of given posts
- SEO Threads : Reddit threads ranking on Google for a keyword, scored as places to comment