New posts and comments that mention a phrase, newest first, plus new posts linking to watched websites. Nothing is stored on our side: poll with the same q and since set to the previous next_since, and an item is never delivered twice. classify=true adds an AI label per new mention. Billed 1 request per poll, plus 1 per 5 subreddits / domains watched (a first poll without since is 1), plus 1 AI unit when the model classified it.
HTTP Request
GET /monitor/mentions
Cost (in requests): 1 + 1 per 5 subreddits/domains; +1 AI units classify. Every successful answer reports its cost in data.billed_requests. AI endpoints need a paid plan.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
q | string | Yes | - | Phrase to watch, matched exactly (several words are searched as one phrase, e.g. red hat; your own quotes are kept). -word excludes a word. |
subreddits | string | No | - | Restrict to these communities (comma list, up to 10). |
type | string | No | all | posts, comments or all (default). Allowed: posts, comments, all. |
domains | string | No | - | Also report new posts linking to these hostnames (comma list, up to 5). |
since | string | No | - | next_since from the previous poll, an ISO-8601 UTC timestamp or Unix epoch seconds (e.g. 1761386400); at most 7 days back. Omitted = now (an empty first poll that gives you the token, billed 1 request); a first call with since set to an ISO time up to 7 days back returns the mentions since then right away. |
max_mentions | integer | No | 100 | Most mentions per poll, 1–200 (default 100); truncated is true when the cap stopped the poll. |
classify | boolean | No | false | Adds an AI classification to each mention: sentiment, intent, stance towards the watched phrase, relevance score and a one-line reason. Costs 1 AI unit per poll that classifies at least one new mention. |
prompt | string | No | - | What counts as relevant for you, in plain words (e.g. people choosing a password manager for a small team), at most 1,000 characters. Used only with classify=true; without it, relevance means: the mention is about the watched phrase and not a homonym. |
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 /monitor/mentions?q=fastapi (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 | Poll result; null with error.code invalid_page_token (bad since) or not_found (unknown community). |
data.next_since | string | Pass as since on the next poll. |
data.truncated | boolean | True when max_mentions stopped the poll. Nothing is lost: the rest comes on the next poll. |
data.skipped_older_than | string / null | ISO-8601 UTC. When a source had more new items than one poll reads, mentions older than this time and newer than your previous poll were skipped and will not be delivered later; poll more often or narrow the query. Null when nothing was skipped. |
data.resolved_filters | object | Watch definition as applied. |
data.resolved_filters.q | object | Phrase as applied. |
data.resolved_filters.q.input | string | What the caller sent. |
data.resolved_filters.q.resolved | string | What was applied on Reddit (null when not applied). |
data.resolved_filters.q.source | string | param (applied as given), default, not_found (the value does not exist on Reddit), private / banned / quarantined (a community in the scope that cannot be read: skipped), or not_available (translate_to only: Reddit had no translated listing, the rows are served in their original language). |
data.resolved_filters.type | object | posts / comments / all as applied. |
data.resolved_filters.type.input | string | What the caller sent. |
data.resolved_filters.type.resolved | string | What was applied on Reddit (null when not applied). |
data.resolved_filters.type.source | string | param (applied as given), default, not_found (the value does not exist on Reddit), private / banned / quarantined (a community in the scope that cannot be read: skipped), or not_available (translate_to only: Reddit had no translated listing, the rows are served in their original language). |
data.resolved_filters.subreddits | array | Communities as applied; ones with source not_found, private, banned or quarantined were skipped. |
data.resolved_filters.domains | array | Hostnames as applied. |
data.ai | object / null | How the classification model answered (classify=true): null without classify or when there was nothing new to classify; cached true when every classification came from the stored ones; error set when the model call failed (the mentions are still delivered, without classification). |
data.billed_requests | integer | Requests billed for this call (also sent as Requests in the X-RapidAPI-Billing header when it is not RapidAPI’s default of 1). |
data.items | array | New mentions, newest first. |
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
| |
| |
| |