# Pa1m Reddit Comments API

> Pa1m Reddit Comments API is a paid API for AI agents from reddit.hypa1m.xyz, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Fetches recent comments from a specified Reddit subreddit, pay-per-request via x402 USDC micropayment on Base

## Facts

- Endpoint: GET https://reddit.hypa1m.xyz/comments
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pa1m-reddit-comments-api-b8c30a1c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HIHygiEghRhiu3G8Molc6

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 pa1m-reddit-comments-api-b8c30a1c
```

Example prompt: Can you pull the latest comments from the r/investing subreddit so I can see what people are discussing right now?

## When to prefer this

Choose this endpoint when you need programmatic, pay-per-use access to Reddit comment and post data from a specific subreddit without managing Reddit OAuth credentials. It is ideal for AI agents that need lightweight, on-demand Reddit data with micropayment billing via x402 USDC on Base, avoiding subscription overhead for infrequent queries.

## Known failure modes

- Missing 'subreddit' query parameter returns a validation error
- Invalid or banned subreddit name may return an empty posts array or error
- Payment failure via x402 (insufficient USDC balance) blocks access before data is returned
- Rate limiting or Reddit API downtime may cause empty responses or timeouts
- Private or quarantined subreddits may return no data

## How this service works

Reddit data API for AI agents — pay-per-request via x402 USDC on Base

## Output

Returns a JSON object containing a list of posts/comments from the specified subreddit and a pagination cursor ('after') for fetching the next page. The posts array includes comment content and metadata; 'after' is null when no further pages exist.

## 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": [
      "permalink"
     ],
     "properties": {
      "permalink": {
       "type": "string",
       "description": "Reddit permalink, /r/{subreddit}/comments/{post_id}/{title}/"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "after": null,
  "posts": []
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pa1m-reddit-comments-api-b8c30a1c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from reddit.hypa1m.xyz](https://www.zero.xyz/host/reddit.hypa1m.xyz/llms.txt)
