# API Direct – Get Reddit Post by URL or ID

> API Direct – Get Reddit Post by URL or ID 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 full details for a single Reddit post given its URL or post ID, with optional AI sentiment analysis.

## Facts

- Endpoint: GET https://x402.apidirect.io/v1/reddit/post?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-get-reddit-post-by-url-or-id-c6084263
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vicH4dmWXf7Rl3tg741W3

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-get-reddit-post-by-url-or-id-c6084263
```

Example prompt: Can you pull up the Reddit post at https://www.reddit.com/r/Python/comments/1wwv97o/my_python_magic_is_gone/ and include the sentiment analysis so I can see how people are reacting emotionally?

## When to prefer this

Use this endpoint when you have a specific Reddit post URL or post ID and need full post details plus optional emotion/sentiment scoring. Prefer this over a Reddit search endpoint when you already know the exact post you want — it is faster and more precise than keyword search. Ideal for agents that need to verify, summarize, or emotionally profile a particular Reddit submission.

## Known failure modes

- Invalid or malformed post URL returns an error
- Post ID not found or deleted returns a 404-style error
- Providing both url and post_id simultaneously is rejected
- Providing neither url nor post_id returns a validation error
- Private or quarantined subreddit posts may be inaccessible
- Rate limiting or payment failure returns a 402 error

## How this service works

Get one Reddit post by URL or post ID.

## Output

Returns a post object containing the Reddit post's title, body text, author, subreddit, score, upvote ratio, comment count, creation timestamp, URL, and other metadata. When get_sentiment is true, adds 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": [],
     "properties": {
      "url": {
       "type": "string",
       "maxLength": 500,
       "description": "Reddit post URL, e.g. https://www.reddit.com/r/Python/comments/1wwv97o/my_python_magic_is_gone/ or https://redd.it/1wwv97o (max 500 characters). Provide exactly one of url or post_id."
      },
      "post_id": {
       "type": "string",
       "description": "Reddit post ID, e.g. 1wwv97o (a t3_ prefix is accepted). Provide exactly one of url or post_id."
      },
      "get_sentiment": {
       "type": "boolean",
       "default": false,
       "description": "Set to true to add AI emotion analysis to each post (returned in the `post` object). 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` (positive, "
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-direct-get-reddit-post-by-url-or-id-c6084263/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)
