# Reddit Comments Search by Keyword

> Reddit Comments Search by Keyword is a paid API for AI agents from x402.apidirect.io, paid per call via x402, $0.004/call, status unknown (last checked 2026-10-30).

Search for Reddit comments by keyword across all subreddits or within a specific subreddit, with optional AI sentiment analysis.

## Facts

- Endpoint: GET https://x402.apidirect.io/v1/reddit/comments?utm_source=zero.xyz
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/reddit-comments-search-by-keyword-b47fb77d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hVl1nXwSawPDTphsJEdRW

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability reddit-comments-search-by-keyword-b47fb77d
```

Example prompt: Search Reddit comments mentioning 'GPT-5' sorted by most recent, pulling 3 pages of results, and include AI sentiment analysis so I can see what emotions people are expressing.

## When to prefer this

Choose this endpoint when you need to search Reddit comment content by keyword, optionally scoped to a specific subreddit, with optional AI-powered emotion scoring. Prefer it over Reddit Posts Search when you specifically want comments rather than top-level posts. Ideal for brand monitoring, community sentiment research, or competitive analysis where user discussion depth matters.

## Known failure modes

- Query string missing or empty — returns validation error
- Subreddit does not exist — returns empty results or 404-style error
- Pages parameter out of range (below 1 or above 10) — returns schema validation error
- Rate limit exceeded — returns 429 or payment-related error
- Reddit API downtime — upstream failure returns 502 or timeout

## How this service works

Search for Reddit comments by keyword across all subreddits, or in one subreddit.

## Output

Returns an array of Reddit comments matching the query, each including the comment text, author, subreddit, score, timestamp, and permalink. If get_sentiment is enabled, each comment also includes a sentiment object with emotion scores (joy, trust, fear, surprise, sadness, disgust, anger, anticipation each 0-100), dominant_emotion, emotional_intensity (0-10), and polarity.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "query"
     ],
     "properties": {
      "pages": {
       "type": "integer",
       "default": 1,
       "maximum": 10,
       "minimum": 1,
       "description": "Number of pages to fetch and merge (1-10). Billed per page."
      },
      "query": {
       "type": "string",
       "maxLength": 500,
       "description": "Search query (max 500 characters)"
      },
      "sort_by": {
       "enum": [
        "most_recent",
        "relevance",
        "top"
       ],
       "type": "string",
       "default": "most_recent",
       "description": "Sort order for results"
      },
      "subreddit": {
       "type": "string",
       "maxLength": 25,
       "description": "Only return comments from this subreddit, with or without r/ (e.g. Python)."
      },
      "get_sentiment": {
       "type": "boolean",
       "default": false,
       "description": "Set to true to add AI emotion analysis to each comment (returned in the `posts` array). Adds a `sentiment` object containing `emotions` (joy, trust, fear, surprise, sadness, disgust, anger and anticipation, each scored 0-100), `dominant_emotion`, `emotional_intensity` (0-10), and `polarity` (positiv"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/reddit-comments-search-by-keyword-b47fb77d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.apidirect.io](https://www.zero.xyz/host/x402.apidirect.io/llms.txt)
