# API Direct – Reddit User Comments

> API Direct – Reddit User Comments 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).

Fetches paginated comments posted by a Reddit user, identified by username or profile URL, with optional AI sentiment analysis.

## Facts

- Endpoint: GET https://x402.apidirect.io/v1/reddit/user/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/api-direct-reddit-user-comments-8447e4f7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yEuPTs5D9_xjYtl4A4bOe

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 api-direct-reddit-user-comments-8447e4f7
```

Example prompt: Pull the last 2 pages of comments from Reddit user u/spez, sorted by top all-time, and include AI sentiment analysis on each comment.

## When to prefer this

Choose this endpoint when you need to retrieve the comment history of a specific Reddit user by username or profile URL, especially when you want pagination control, multiple sort orders (recent, hot, top, controversial), time-window filtering, and optional AI-powered emotion/sentiment analysis per comment. Prefer it over general Reddit search endpoints when your target is a specific user's comment activity rather than posts or subreddit-level content.

## Known failure modes

- Invalid or nonexistent Reddit username returns an error or empty result
- Providing both username and url simultaneously may cause a validation error
- Using posted_ago with sort_by other than top or controversial is rejected
- Requesting more than 40 pages exceeds the maximum and returns a validation error
- Suspended or deleted Reddit accounts may return no comments
- Rate limiting or Reddit API downtime may cause upstream failures

## How this service works

Get a Reddit user's comments by username or profile URL.

## Output

Returns a paginated list of comments made by the specified Reddit user, each including comment text, post context, score, timestamp, and subreddit. If get_sentiment is true, each comment also includes a sentiment object with eight emotion scores (joy, trust, fear, surprise, sadness, disgust, anger, anticipation each 0–100), a dominant emotion, emotional intensity (0–10), and a polarity label.

## 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": [],
     "properties": {
      "url": {
       "type": "string",
       "maxLength": 500,
       "description": "Reddit profile URL, e.g. https://www.reddit.com/user/spez (max 500 characters). Provide exactly one of username or url."
      },
      "pages": {
       "type": "integer",
       "default": 1,
       "maximum": 40,
       "minimum": 1,
       "description": "Number of pages to fetch, 1-40 (default: 1). Each page returns up to 25 comments."
      },
      "sort_by": {
       "enum": [
        "most_recent",
        "hot",
        "top",
        "controversial"
       ],
       "type": "string",
       "default": "most_recent",
       "description": "Sort order: most_recent, hot, top, or controversial (default: most_recent)"
      },
      "username": {
       "type": "string",
       "maxLength": 26,
       "description": "Reddit username, with or without u/ (3-20 characters). Provide exactly one of username or url."
      },
      "posted_ago": {
       "enum": [
        "1h",
        "24h",
        "7d",
        "30d",
        "12m",
        "all"
       ],
       "type": "string",
       "description": "Time window for sort_by=top or sort_by=controversial: 1h, 24h, 7d, 30d, 12m, or all (default: all). Rejected with any other sort_by."
      },
      "get_sentiment": {
       "type": "boolean",
       "default": false,
       "description": "Set to true to add AI emotion analysis to each comment (returned in the `comments` 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` (posi"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-direct-reddit-user-comments-8447e4f7/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)
