# Pa1m Reddit Search

> Pa1m Reddit Search 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-13).

Fetches posts from a specified Reddit subreddit via a pay-per-request API using x402 USDC micropayments on Base

## Facts

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

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-search-d5548ef8
```

Example prompt: Pull the latest posts from r/MachineLearning on Reddit so I can see what the community is talking about right now.

## When to prefer this

Choose this endpoint when you need programmatic, pay-per-request access to Reddit subreddit posts without managing Reddit OAuth credentials, and when you want micropayment billing via USDC on Base (x402 protocol) rather than a subscription. Ideal for AI agents that occasionally need Reddit data on-demand rather than at high volume.

## Known failure modes

- Invalid or non-existent subreddit returns empty posts array
- Missing required 'subreddit' query parameter causes request failure
- Payment failure via x402 protocol blocks the request
- Rate limiting or Reddit API downtime causes 5xx errors
- Private or quarantined subreddits may return no results

## How this service works

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

## Output

A JSON object containing a list of Reddit posts from the requested subreddit and a pagination cursor ('after') for fetching subsequent pages. Posts array may be empty if the subreddit has no recent content or is invalid.

## 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": [
      "q"
     ],
     "properties": {
      "q": {
       "type": "string",
       "description": "Search query"
      },
      "t": {
       "type": "string",
       "description": "hour, day, week, month, year or all"
      },
      "nsfw": {
       "type": "boolean",
       "description": "Include adult content"
      },
      "sort": {
       "type": "string",
       "description": "relevance, new, hot, top or comments"
      },
      "after": {
       "type": "string",
       "description": "Pagination cursor"
      },
      "limit": {
       "type": "integer",
       "description": "1-100, default 25"
      },
      "subreddit": {
       "type": "string",
       "description": "Restrict to one subreddit, without the r/ prefix"
      }
     }
    }
   },
   "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-search-d5548ef8/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)
