GET /insights/opportunities

Opportunities

Recent Reddit posts worth answering about a product, scored and judged. Reddit Scraper API endpoint /insights/opportunities: parameters, JSON response fields and code examples.

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

ParameterTypeRequiredDefaultDescription
descriptionstringNo-What you offer, in plain words (20–2000 characters); required unless keywords is given.
keywordsstringNo-Search phrases to use instead of (or with) the description, searched as given (≤ 8). Comma-separated.
limitintegerNo10Opportunities to return (1–20).
modestringNofullfull (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.
subredditsstringNo-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.
timestringNoweekHow 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_nsfwbooleanNotrueDefault true: adult content included (communities and posts marked NSFW); pass false to exclude it.
languagestringNo-Language of the model’s answer (ISO-639-1, e.g. en, es, pt-BR). Quotes keep their original language.
include_htmlbooleanNofalseAdds body_html (the rendered HTML body) to every post and comment. Default: left out; body_text carries the same text.
freshbooleanNofalseDefault 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.

ParameterTypeRequiredDefaultDescription
descriptionstringNo-What you offer, in plain words (20–2000 characters); required unless keywords is given.
keywordsarray of stringNo-Search phrases to use instead of (or with) the description, searched as given (≤ 8).
limitintegerNo10Opportunities to return (1–20).
modestringNofullfull (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.
subredditsarray of stringNo-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.
timestringNoweekHow 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_nsfwbooleanNotrueDefault true: adult content included (communities and posts marked NSFW); pass false to exclude it.
languagestringNo-Language of the model’s answer (ISO-639-1, e.g. en, es, pt-BR). Quotes keep their original language.
include_htmlbooleanNofalseAdds body_html (the rendered HTML body) to every post and comment. Default: left out; body_text carries the same text.
freshbooleanNofalseDefault 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 …).

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
{
  "status": true,
  "request_id": "1ecdedfb-33d1-91fd-e64c-12fbaff1",
  "data": {
    "opportunities": [
      {
        "post": {
          "post_id": "t3_1y3f06z",
          "title": "Ethical agent browser for Claude: lost cause?",
          "type": "text",
          "permalink": "/r/ClaudeAI/comments/1y3f06z/ethical_agent_browser_for_claude_lost_cause/",
          "post_url": "https://www.reddit.com/r/ClaudeAI/comments/1y3f06z/ethical_agent_browser_for_claude_lost_cause/",
          "url": "https://www.reddit.com/r/ClaudeAI/comments/1y3f06z/ethical_agent_browser_for_claude_lost_cause/",
          "domain": "self.ClaudeAI",
          "subreddit": "ClaudeAI",
          "subreddit_id": "t5_7t8hvt",
          "subreddit_type": "public",
          "subreddit_icon_url": "https://styles.redditmedia.com/t5_7t8hvt/styles/communityIcon_97yk0vsmp4cf1.png?width=64&frame=1&auto=webp&s=c2584bef06b25821cde64887ee356242451b03ca",
          "is_subreddit_nsfw": false,
          "is_subreddit_quarantined": false,
          "author": "sabotizer",
          "is_author_deleted": false,
          "author_id": "t2_2gwoo5fg",
          "author_avatar_url": null,
          "author_type": null,
          "is_author_nsfw": null,
          "author_flair": null,
          "flair": {
            "text": "Custom agents",
            "rich_text": [
              {
                "type": "text",
                "text": "Custom agents",
                "url": null
              }
            ],
            "background_color": "#2222DD",
            "text_color": "light",
            "flair_id": "ff7b90b4-69ed-11f0-8dd6-6ae4dcf6b0c1"
          },
          "score": 2,
          "upvote_ratio": null,
          "comments_count": 8,
          "shares_count": null,
          "crossposts_count": null,
          "created_at": "2026-11-23T10:32:37.292000+00:00",
          "edited_at": null,
          "is_nsfw": false,
          "is_spoiler": false,
          "is_stickied": false,
          "is_locked": false,
          "is_archived": false,
          "is_crosspost": false,
          "crosspost_parent_id": null,
          "crosspost_parent_subreddit": null,
          "is_brand_affiliate": null,
          "is_highlighted": null,
          "distinguished": null,
          "removed_by": null,
          "removal_category": null,
          "position": null,
          "thumbnail_url": null,
          "thumbnail_width": null,
          "thumbnail_height": null,
          "body_text": "I'm using Claude heavily for browser automation, and I'm currently building a browser (Chromium fork) for agents that makes this easier. So far I've only focused on technical benefits (built-in MCP, persistent sessions/profiles, tab groups …",
          "body_media": [],
          "poll": null,
          "media": null
        },
        "opportunity_score": 74,
        "relevance": 8,
        "intent_type": "question",
        "urgency": "medium",
        "op_is_active": true,
        "age_hours": 34.4,
        "self_promo_policy": "not_stated",
        "reasons": [
          "The post discusses building a Chromium fork for agent browsing, which relates to extracting Reddit data via APIs.",
          "Mentions Reddit's robots.txt and the need for ethical scraping, directly tied to Reddit data extraction."
        ],
        "competitors_mentioned": [
          "Claude",
          "Chromium"
        ],
        "evidence": [
          {
            "comment_id": "t1_19t2dk3b4yhxe",
            "excerpt": "Why are we obligated to announce to websites if it's agentic browsing or a human browsing?\n\nOnly thing unethical is unmanned automatic scraping scripts"
          },
          {
            "comment_id": "t1_19t2f58l8mkw5",
            "excerpt": "I would also argue that scraping at typical human speed is in no way unethical."
          }
        ]
      },
      {
        "post": {
          "post_id": "t3_1y4oa9e",
          "title": "AI cuts build time but that doesn't mean the game is ready to ship",
          "type": "image",
          "permalink": "/r/aigamedev/comments/1y4oa9e/ai_cuts_build_time_but_that_doesnt_mean_the_game/",
          "post_url": "https://www.reddit.com/r/aigamedev/comments/1y4oa9e/ai_cuts_build_time_but_that_doesnt_mean_the_game/",
          "url": "https://i.redd.it/zus13yrjem3i1.png",
          "domain": "i.redd.it",
          "subreddit": "aigamedev",
          "subreddit_id": "t5_7k1nxi",
          "subreddit_type": "public",
          "subreddit_icon_url": "https://styles.redditmedia.com/t5_7k1nxi/styles/communityIcon_8jf9kmkm6g5a1.png?width=64&frame=1&auto=webp&s=7fd4dd58601a7d84b30a17b512284499a70adf92",
          "is_subreddit_nsfw": false,
          "is_subreddit_quarantined": false,
          "author": "Sloptrawler",
          "is_author_deleted": false,
          "author_id": "t2_2rgno9nval",
          "author_avatar_url": null,
          "author_type": null,
          "is_author_nsfw": null,
          "author_flair": null,
          "flair": {
            "text": "Discussion",
            "rich_text": null,
            "background_color": "#646D73",
            "text_color": "light",
            "flair_id": "713155f6-a928-11ed-bb00-a2defb729b48"
          },
          "score": 3,
          "upvote_ratio": null,
          "comments_count": 3,
          "shares_count": null,
          "crossposts_count": null,
          "created_at": "2026-11-24T20:44:01.126000+00:00",
          "edited_at": null,
          "is_nsfw": false,
          "is_spoiler": false,
          "is_stickied": false,
          "is_locked": false,
          "is_archived": false,
          "is_crosspost": false,
          "crosspost_parent_id": null,
          "crosspost_parent_subreddit": null,
          "is_brand_affiliate": null,
          "is_highlighted": null,
          "distinguished": null,
          "removed_by": null,
          "removal_category": null,
          "position": null,
          "thumbnail_url": "https://preview.redd.it/zus13yrjem3i1.png?width=140&height=140&crop=1%3A1%2Csmart&auto=webp&s=ba5f1dbf7a229a64facd291bae24fb919d889ebf",
          "thumbnail_width": 140,
          "thumbnail_height": 140,
          "body_text": "Follow-up to my last post about Steam getting 86–200 new games a day [link]. A lot of the comments landed on “marketing matters more now,” so I charted what the pipeline actually looks like with and without AI. This is not a doomer post.\n\nT…",
          "body_media": [],
          "poll": null,
          "media": {
            "type": "image",
            "preview_url": "https://preview.redd.it/ai-cuts-build-time-but-that-doesnt-mean-the-game-is-ready-v0-zus13yrjem3i1.png?width=1080&crop=smart&auto=webp&s=92bb7551c762b47701dd57690b7727034431f41d",
            "preview_width": 1080,
            "preview_height": 1122,
            "preview_variants": [
              {
                "size": "thumbnail",
                "url": "https://preview.redd.it/ai-cuts-build-time-but-that-doesnt-mean-the-game-is-ready-v0-zus13yrjem3i1.png?width=108&crop=smart&auto=webp&s=73932cac38b71d6fa0fff6c904dca90f9da27a53",
                "width": 108,
                "height": 112
              },
              {
                "size": "compact",
                "url": "https://preview.redd.it/ai-cuts-build-time-but-that-doesnt-mean-the-game-is-ready-v0-zus13yrjem3i1.png?width=216&crop=smart&auto=webp&s=c2750f263dfa17de8422f8a28c4f12400ea522a1",
                "width": 216,
                "height": 224
              }
            ],
            "alt_text": null,
            "hls_url": null,
            "video_url": null,
            "poster_url": null,
            "captions_url": null,
            "duration_seconds": null,
            "width": null,
            "height": null,
            "renditions": [],
            "embed_html": null,
            "embed_provider": null,
            "gallery": []
          }
        },
        "opportunity_score": 54,
        "relevance": 2,
        "intent_type": "discussion",
        "urgency": "low",
        "op_is_active": true,
        "age_hours": 0.3,
        "self_promo_policy": null,
        "reasons": [
          "Discusses AI in game development, tangentially related to data pipelines but not Reddit data extraction.",
          "Mentions charts and sources, but no request for Reddit API."
        ],
        "competitors_mentioned": [],
        "evidence": []
      }
    ],
    "funnel": {
      "candidates_count": 117,
      "filtered_count": 66,
      "judged_count": 11
    },
    "truncated": false,
    "language": "en",
    "ai": {
      "input_tokens": 9411,
      "output_tokens": 1306,
      "possible_injection": false,
      "truncated": false,
      "cached": true
    },
    "computed_at": "2026-11-24T20:59:43.915712+00:00",
    "fresh": false,
    "billed_requests": 10
  },
  "request_params": {
    "keywords": "reddit api,reddit scraper",
    "description": "An API that extracts Reddit data for developers",
    "limit": "5"
  }
}

Response Fields

FieldTypeDescription
statusbooleantrue when the request succeeded
request_idstringUnique request identifier
dataobjectPresent on success and on a model failure (then with the word-match score only).
data.opportunitiesarray of objectsPosts worth answering, best first.
data.opportunities[].postobjectThe post.
data.opportunities[].post.post_idstringPost fullname, e.g. t3_z1c9z.
data.opportunities[].post.titlestringPost title; null when Reddit shows only its removal placeholder ([ Removed by moderator ]…).
data.opportunities[].post.typestringtext, 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.permalinkstringReddit 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_urlstringAbsolute link of the post’s Reddit thread (https://www.reddit.com + permalink), ready to open.
data.opportunities[].post.urlstringWhere 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.domainstringLink 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.subredditstringSubreddit name without r/.
data.opportunities[].post.subreddit_idstringSubreddit id (t5_…).
data.opportunities[].post.subreddit_typestringCommunity 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_urlstringCommunity 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_nsfwbooleanThe 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_quarantinedbooleanThe 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.authorstringAuthor 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_deletedbooleanThe author’s account is deleted (the post may remain).
data.opportunities[].post.author_idstringAuthor account id (t2_…). Only with with_details=true on /post/batch and /answers.
data.opportunities[].post.author_avatar_urlstring / nullAuthor 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_typestring / nulluser 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_nsfwboolean / nullThe 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_flairobject / nullAuthor’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.flairobjectPost 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.textstringFlair text (emoji shortcodes kept, e.g. :phx-2: Suns).
data.opportunities[].post.flair.rich_textarray of objectsRich-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[].typestringtext or emoji.
data.opportunities[].post.flair.rich_text[].textstringThe text, or the emoji’s short code (e.g. :nba-1:).
data.opportunities[].post.flair.rich_text[].urlstring / nullEmoji image URL (emoji parts only).
data.opportunities[].post.flair.background_colorstringHex background colour (#0079D3) or null when the flair has no colour.
data.opportunities[].post.flair.text_colorstringlight or dark text on the flair pill.
data.opportunities[].post.flair.flair_idstringFlair 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.scoreintegerNet upvotes at fetch time.
data.opportunities[].post.upvote_rationumber / nullUpvote 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_countintegerComment count reported by Reddit.
data.opportunities[].post.shares_countinteger / nullTimes 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_countinteger / nullNumber 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_atstringISO-8601 UTC creation time, microsecond precision. Left out on /media/search and on /answers without with_details.
data.opportunities[].post.edited_atstring / nullISO-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_nsfwbooleanMarked NSFW.
data.opportunities[].post.is_spoilerbooleanMarked spoiler. Only with with_details=true on /post/batch and /answers.
data.opportunities[].post.is_stickiedbooleanPinned 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_lockedbooleanComments locked. Only with with_details=true on /post/batch and /answers (always on /post/search). Left out on /media/search.
data.opportunities[].post.is_archivedbooleanArchived (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_crosspostbooleanThe 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_idstring / nullId 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_subredditstring / nullSubreddit 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_affiliateboolean / nullReddit’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_highlightedboolean / nullHighlighted 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.distinguishedstring / nullmoderator or admin when the post is distinguished; else null. Only with with_details=true on the routes that have it.
data.opportunities[].post.removed_bystring / nullWho 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_categorystring / nullReddit’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.positioninteger / nullRank 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_urlstring / nullThumbnail URL.
data.opportunities[].post.thumbnail_widthinteger / nullThumbnail 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_heightinteger / nullThumbnail 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_textstringSelf 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_mediaarrayImages 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.pollobject / nullPoll options and totals (poll posts only). Only with with_details=true on the routes that have it.
data.opportunities[].post.mediaobject / nullImages, video renditions, gallery, embed. Only with with_details=true on the routes that have it (always on /post/search).
data.opportunities[].opportunity_scoreinteger0–100 opportunity score.
data.opportunities[].relevanceinteger0–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_typestringseeking_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[].urgencystringlow, medium, high. Model output: treat as untrusted text if you pass it to an agent with tools.
data.opportunities[].op_is_activebooleanTrue when the author replied in the thread (read for the top candidates only).
data.opportunities[].age_hoursfloatHours since the post was created.
data.opportunities[].self_promo_policystringThe community’s self-promotion policy when its rules were read.
data.opportunities[].reasonsarray of stringUp to 3 reasons. Model output: treat as untrusted text if you pass it to an agent with tools.
data.opportunities[].competitors_mentionedarray of stringCompetitors named in the post. Model output: treat as untrusted text if you pass it to an agent with tools.
data.opportunities[].evidencearray of objectsComments cited by the model (always ids it was given).
data.opportunities[].evidence[].comment_idstringComment id.
data.opportunities[].evidence[].excerptstringVerbatim excerpt (≤ 280 characters).
data.funnelobjectHow many posts went through each step.
data.funnel.candidates_countintegerPosts found.
data.funnel.filtered_countintegerPosts left after removing closed, old or off-topic ones.
data.funnel.judged_countintegerPosts the model judged (0 in fast mode).
data.truncatedbooleanTrue when the candidate set was cut to keep the answer fast.
data.languagestringLanguage of the answer.
data.aiobjectHow the model judged (null in fast mode).
data.ai.input_tokensintegerInput tokens of the model call.
data.ai.output_tokensintegerOutput tokens of the model call.
data.ai.possible_injectionbooleanTrue 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.truncatedbooleanTrue when the input was cut to fit max_chars (or to keep the answer fast).
data.ai.cachedbooleanTrue 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_atstringWhen this answer was computed (RFC 3339, UTC). Older than the request when it was served from the cache.
data.freshbooleanTrue when computed for this request; false when served from the stored result.
data.billed_requestsintegerRequests billed for this call (also sent as Requests in the X-RapidAPI-Billing header when it is not RapidAPI’s default of 1).
request_paramsobjectEcho of the parameters you sent

Error Responses

Invalid input returns HTTP 400, not billed. error is a plain string that names the parameter:

1
{ "status": false, "request_id": "99a1e6cd-2e57-9e8f-4e44-2dea7f6d", "error": "Invalid parameter 'post_id': must be a post id such as z1c9z or t3_z1c9z", "request_params": { "post_id": "!!" } }
Status CodeCauseDescription
400Invalid or missing parameterPlain-English message per field. Not billed
503 with error.codeAI model failedllm_timeout, llm_error or invalid_output. The Reddit data read so far is still in data. Not billed, retry
503Reddit temporarily unreachable"error": "Service temporarily unavailable". Not billed, retry later

Code Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
import requests

url = "https://reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com/insights/opportunities"

params = {
    "keywords": "reddit api,reddit scraper",
    "description": "An API that extracts Reddit data for developers",
    "limit": "5",
}

headers = {
    "X-RapidAPI-Key": "YOUR_API_KEY",
    "X-RapidAPI-Host": "reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com"
}

response = requests.get(url, headers=headers, params=params)
data = response.json()["data"]

print(data["truncated"])
print(data["language"])
print("Billed requests:", data["billed_requests"])
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
const url = "https://reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com/insights/opportunities";

const params = new URLSearchParams({
  keywords: "reddit api,reddit scraper",
  description: "An API that extracts Reddit data for developers",
  limit: "5",
});

const response = await fetch(`${url}?${params}`, {
  headers: {
    "X-RapidAPI-Key": "YOUR_API_KEY",
    "X-RapidAPI-Host": "reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com"
  }
});

const { data } = await response.json();
console.log(data.truncated, data.language);
1
2
3
4
5
6
curl -G "https://reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com/insights/opportunities" \
  --data-urlencode "keywords=reddit api,reddit scraper" \
  --data-urlencode "description=An API that extracts Reddit data for developers" \
  --data-urlencode "limit=5" \
  -H "X-RapidAPI-Key: YOUR_API_KEY" \
  -H "X-RapidAPI-Host: reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com"

POST example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import requests

url = "https://reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com/insights/opportunities"

payload = {
    "description": "An API that extracts Reddit data for developers",
    "keywords": [
        "reddit api",
        "reddit scraper"
    ],
    "limit": 5
}

headers = {
    "X-RapidAPI-Key": "YOUR_API_KEY",
    "X-RapidAPI-Host": "reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com",
    "Content-Type": "application/json"
}

response = requests.post(url, headers=headers, json=payload)
data = response.json()["data"]

print(data["truncated"])
print(data["language"])
print("Billed requests:", data["billed_requests"])
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
const response = await fetch("https://reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com/insights/opportunities", {
  method: "POST",
  headers: {
    "X-RapidAPI-Key": "YOUR_API_KEY",
    "X-RapidAPI-Host": "reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
  "description": "An API that extracts Reddit data for developers",
  "keywords": [
    "reddit api",
    "reddit scraper"
  ],
  "limit": 5
})
});

const { data } = await response.json();
console.log(data.truncated, data.language);
1
2
3
4
5
curl -X POST "https://reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com/insights/opportunities" \
  -H "X-RapidAPI-Key: YOUR_API_KEY" \
  -H "X-RapidAPI-Host: reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com" \
  -H "Content-Type: application/json" \
  -d '{"description": "An API that extracts Reddit data for developers", "keywords": ["reddit api", "reddit scraper"], "limit": 5}'
  • 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
Start building today

Get your API key and make your first request in under a minute.

Get Your API Key on RapidAPI