# Pa1m Reddit Posts API

> Pa1m Reddit Posts 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 Reddit posts from a specified subreddit via a pay-per-request API using x402 USDC micropayments on Base

## Facts

- Endpoint: GET https://reddit.hypa1m.xyz/posts
- 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-posts-api-0235f345
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_C21tU--Ola9CUAmfD0Lob

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-posts-api-0235f345
```

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

## When to prefer this

Choose this endpoint when an AI agent needs to retrieve Reddit post data programmatically without managing Reddit OAuth credentials, and the use case suits a pay-per-request micropayment model via USDC on Base. Ideal for lightweight, on-demand Reddit data fetching in agent workflows where you want to avoid subscription overhead.

## Known failure modes

- Missing or invalid subreddit parameter returns an error or empty posts array
- Payment failure via x402 prevents access to the endpoint
- Subreddit does not exist or is private/banned, returning empty results
- Rate limiting or upstream Reddit API unavailability causing failures
- Invalid HTTP method (non-GET/HEAD/DELETE) rejected by the schema

## How this service works

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

## Output

Returns a JSON object containing an array of Reddit posts from the specified subreddit and a pagination cursor (`after`) for fetching subsequent pages; posts array may be empty if no content is found.

## 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": [
      "subreddit"
     ],
     "properties": {
      "t": {
       "type": "string",
       "description": "Time window for top/controversial: hour, day, week, month, year or all"
      },
      "sort": {
       "type": "string",
       "description": "hot, new, top, rising, controversial or best"
      },
      "after": {
       "type": "string",
       "description": "Pagination cursor from the previous response"
      },
      "limit": {
       "type": "integer",
       "description": "1-100, default 25"
      },
      "subreddit": {
       "type": "string",
       "description": "Subreddit name 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-posts-api-0235f345/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)
