# Pa1m Reddit DM Endpoint

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

Fetches Reddit posts and threads via a pay-per-request API using x402 USDC micropayments on Base

## Facts

- Endpoint: POST https://reddit.hypa1m.xyz/dm?utm_source=zero.xyz
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pa1m-reddit-dm-endpoint-28e1e55c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Sccn6YJ6I929rg1MpemLS

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-dm-endpoint-28e1e55c -d '<json body>'
```

Example prompt: Pull the top 10 posts from r/MachineLearning from the last week — I want to see what the community is discussing right now.

## When to prefer this

Choose this endpoint when you need programmatic, pay-per-use access to Reddit post data without managing Reddit API credentials or OAuth flows. It is ideal for AI agents that need to query Reddit on demand using USDC micropayments on Base via the x402 protocol, especially in autonomous agent pipelines where subscription-based API access is impractical.

## Known failure modes

- Payment failure if USDC balance is insufficient or x402 transaction is rejected
- Empty posts array returned when subreddit doesn't exist or query matches no results
- Rate limiting or access denial if Reddit's underlying data source is unavailable
- Null 'after' cursor indicating end of pagination or no further results
- Invalid subreddit name or malformed query causing empty or error response

## How this service works

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

## Output

Returns a JSON object with a list of Reddit posts (titles, content, metadata) and an 'after' pagination cursor for fetching subsequent pages. Returns empty posts array and null cursor when no results are found.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "loid": {
   "type": "string",
   "description": "loid cookie from /login"
  },
  "message": {
   "type": "string",
   "description": "Message body"
  },
  "csrf_token": {
   "type": "string",
   "description": "Optional CSRF token"
  },
  "to_user_t2": {
   "type": "string",
   "description": "Recipient t2 user ID, as an alternative to to_username"
  },
  "to_username": {
   "type": "string",
   "description": "Recipient username, without the u/ prefix"
  },
  "reddit_session": {
   "type": "string",
   "description": "Session cookie from /login"
  }
 }
}
```

## 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-dm-endpoint-28e1e55c/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)
