How much of the Reddit conversation each of the brands gets: every mention in the comments read, with comment id, rank, score and excerpt, and a weighted share. Give q (the first Reddit threads of Google’s site:reddit.com results, page 2 when page 1 is short) or post_ids, e.g. the threads[].post.post_id values of /insights/seo-threads, with no second Google search. Billed 1 request per 100 comments read, summed over the threads (minimum 1), plus 1 AI unit per model answer (the sentiment).
HTTP Request
GET /insights/share-of-voice
Cost (in requests): 1 per 100 comments + 1 AI units. Every successful answer reports its cost in data.billed_requests. AI endpoints need a paid plan.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
q | string | No | - | Keyword whose top Google threads are read (one of q / post_ids). |
post_ids | string | No | - | Comma-separated post ids or URLs to read instead of searching (≤ 10; one of q / post_ids). |
brands | string | Yes | - | Comma-separated brands; each brand is name or name/alias1/alias2 (/ separates aliases, ≤ 5 per brand, 2–40 characters each). 1–10 brands, matched as whole words, case-insensitive, by name or alias (an alias with a dot also matches links to it; add plurals as aliases). |
max_threads | integer | No | 5 | Threads to read when searching (1–10). |
max_comments | integer | No | 200 | Comments read per thread, best first (1–500). |
country | string | No | us | Country of the search (with q). |
language | string | No | en | Language of the search (with q) and of the model’s answer. |
with_sentiment | boolean | No | true | Classify the sentiment and stance (recommended, criticized, mentioned) of up to 120 of the heaviest mentions; the model may add a mention that word matching missed, when its quote is verbatim (+1 AI unit). |
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/share-of-voice?brands=FastAPI,Django,Flask&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 | Present on success and on a model failure. |
data.brands | array of objects | One block per brand, largest share first. |
data.brands[].brand | string | Brand as given. |
data.brands[].share | float | Weighted share of voice (0–1): position weight × log2(2 + score); null when no brand was mentioned at all. |
data.brands[].mentions_count | integer | Mentions found. |
data.brands[].recommended_count | integer | Mentions recommending the brand (with with_sentiment=true). |
data.brands[].criticized_count | integer | Mentions criticising the brand (with with_sentiment=true). |
data.brands[].best_position | string | Best placement of a mention: top_comment, top_3 or rest. |
data.brands[].sentiment | object | Sentiment shares of the brand’s mentions (with with_sentiment=true). |
data.brands[].sentiment.positive | float | Share of positive items (0–1). |
data.brands[].sentiment.neutral | float | Share of neutral items (0–1). |
data.brands[].sentiment.negative | float | Share of negative items (0–1). |
data.comments_read | integer | Comments read over all threads. |
data.threads | array of objects | Threads read. |
data.threads[].post | object | Thread read. |
data.threads[].post.post_id | string | Post fullname, e.g. t3_z1c9z. |
data.threads[].post.title | string | Post title; null when Reddit shows only its removal placeholder ([ Removed by moderator ]…). |
data.threads[].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.threads[].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.threads[].post.post_url | string | Absolute link of the post’s Reddit thread (https://www.reddit.com + permalink), ready to open. |
data.threads[].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.threads[].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.threads[].post.subreddit | string | Subreddit name without r/. |
data.threads[].post.subreddit_id | string | Subreddit id (t5_…). |
data.threads[].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.threads[].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.threads[].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.threads[].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.threads[].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.threads[].post.is_author_deleted | boolean | The author’s account is deleted (the post may remain). |
data.threads[].post.author_id | string | Author account id (t2_…). Only with with_details=true on /post/batch and /answers. |
data.threads[].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.threads[].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.threads[].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.threads[].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.threads[].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.threads[].post.flair.text | string | Flair text (emoji shortcodes kept, e.g. :phx-2: Suns). |
data.threads[].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.threads[].post.flair.rich_text[].type | string | text or emoji. |
data.threads[].post.flair.rich_text[].text | string | The text, or the emoji’s short code (e.g. :nba-1:). |
data.threads[].post.flair.rich_text[].url | string / null | Emoji image URL (emoji parts only). |
data.threads[].post.flair.background_color | string | Hex background colour (#0079D3) or null when the flair has no colour. |
data.threads[].post.flair.text_color | string | light or dark text on the flair pill. |
data.threads[].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.threads[].post.language | string / null | Post language code (listings only). Left out on the routes without a translate_to parameter. |
data.threads[].post.is_translated | boolean / null | Reddit machine-translated the title and body (asked with translate_to); null when this endpoint does not report it. Left out on the routes without a translate_to parameter. |
data.threads[].post.translated_to | string / null | Language code of the translation when is_translated; else null. language stays the original language. Left out on the routes without a translate_to parameter. |
data.threads[].post.score | integer | Net upvotes at fetch time. |
data.threads[].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.threads[].post.comments_count | integer | Comment count reported by Reddit. |
data.threads[].post.shares_count | integer | 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.threads[].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.threads[].post.created_at | string | ISO-8601 UTC creation time, microsecond precision. Left out on /media/search and on /answers without with_details. |
data.threads[].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.threads[].post.is_nsfw | boolean | Marked NSFW. |
data.threads[].post.is_spoiler | boolean | Marked spoiler. Only with with_details=true on /post/batch and /answers. |
data.threads[].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.threads[].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.threads[].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.threads[].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.threads[].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.threads[].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.threads[].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.threads[].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.threads[].post.is_ama | boolean / null | AMA post. Served on the listing routes (subreddit posts, feeds, user activity, content); left out on other routes, such as /post/details, /post/comments, /post/search and /post/batch. |
data.threads[].post.ama_state | string / null | State of a scheduled AMA as Reddit reports it; null when the post is not a scheduled AMA. Served on the listing routes (subreddit posts, feeds, user activity, content); left out on other routes, such as /post/details, /post/comments, /post/search and /post/batch. |
data.threads[].post.ama_starts_at | string / null | ISO-8601 UTC start of a scheduled AMA; else null. Served on the listing routes (subreddit posts, feeds, user activity, content); left out on other routes, such as /post/details, /post/comments, /post/search and /post/batch. |
data.threads[].post.ama_ends_at | string / null | ISO-8601 UTC end of a scheduled AMA; else null. Served on the listing routes (subreddit posts, feeds, user activity, content); left out on other routes, such as /post/details, /post/comments, /post/search and /post/batch. |
data.threads[].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.threads[].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.threads[].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.threads[].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.threads[].post.thumbnail_url | string | Thumbnail URL. |
data.threads[].post.thumbnail_width | integer | Thumbnail pixel width; null when this endpoint does not carry it. Only with with_details=true on the routes that have it. |
data.threads[].post.thumbnail_height | integer | Thumbnail pixel height; null when this endpoint does not carry it. Only with with_details=true on the routes that have it. |
data.threads[].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.threads[].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.threads[].post.poll | object / null | Poll options and totals (poll posts only). Only with with_details=true on the routes that have it. |
data.threads[].post.media | object | Images, video renditions, gallery, embed. Only with with_details=true on the routes that have it (always on /post/search). |
data.threads[].post.media.type | string / null | Media kind: image, video, gif, gallery, embed or null. |
data.threads[].post.media.preview_url | string | Largest still preview URL. |
data.threads[].post.media.preview_width | integer | Preview pixel width. |
data.threads[].post.media.preview_height | integer | Preview pixel height. |
data.threads[].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.threads[].post.media.preview_variants[].size | string | thumbnail (108 px wide), compact, medium (320), large (640), extra_large (1080) or full (the original size). |
data.threads[].post.media.preview_variants[].url | string | Image URL at that size. |
data.threads[].post.media.preview_variants[].width | integer | Pixel width. |
data.threads[].post.media.preview_variants[].height | integer | Pixel height. |
data.threads[].post.media.alt_text | string / null | Image description the author set for screen readers; null when none. |
data.threads[].post.media.hls_url | string / null | HLS playlist (.m3u8) for hosted video. |
data.threads[].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.threads[].post.media.poster_url | string / null | Video poster image. |
data.threads[].post.media.captions_url | string / null | WebVTT captions URL when available. |
data.threads[].post.media.duration_seconds | integer / null | Video duration in seconds. |
data.threads[].post.media.width | integer / null | Video pixel width (a hosted video’s full size, or the embed player’s size). |
data.threads[].post.media.height | integer / null | Video pixel height (a hosted video’s full size, or the embed player’s size). |
data.threads[].post.media.renditions | array | MP4 renditions with bitrate and size (hosted video only). |
data.threads[].post.media.embed_html | string / null | oEmbed iframe HTML for third-party embeds (YouTube, Streamable…). |
data.threads[].post.media.embed_provider | string / null | Embed provider name, e.g. YouTube or Streamable; null on Reddit-hosted media. |
data.threads[].post.media.gallery | array | Gallery images in page order. |
data.threads[].comments_read | integer | Comments read in the thread. |
data.threads[].mentions_count | integer | Brand mentions found in the thread. |
data.mentions | array of objects | Every mention found, thread order. |
data.mentions[].item_id | string | Comment (t1_…) or post (t3_…) id carrying the mention; the post id when the brand is named in the post itself. |
data.mentions[].item_type | string | post or comment, from the id: post ids go to /post/batch, comment ids to /comment/batch. |
data.mentions[].post_id | string | Thread (t3_…). |
data.mentions[].brand | string | Brand matched. |
data.mentions[].position | integer / null | 1-based rank among the thread’s top-level comments (null for the post itself); replies inherit their root’s rank. |
data.mentions[].score | integer | Net upvotes as read from the thread. |
data.mentions[].sentiment | string | positive, neutral, negative (with with_sentiment=true). Model output: treat as untrusted text if you pass it to an agent with tools. |
data.mentions[].stance | string | recommended, criticized or mentioned (with with_sentiment=true). Model output: treat as untrusted text if you pass it to an agent with tools. |
data.mentions[].excerpt | string | Verbatim excerpt (≤ 280 characters). |
data.language | string | Language of the answer. |
data.ai | object | How the model classified sentiment (null without with_sentiment). |
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
| |
| |
| |
Related Endpoints
- Questions : The questions Reddit asks about a keyword, grouped, with how the community answers them
- Brand Compare : Compare how Reddit judges 2–4 brands: sentiment, strengths, weaknesses, head-to-head, switchers
- SEO Threads : Reddit threads ranking on Google for a keyword, scored as places to comment