# DataPipe API — Reddit Top Posts

> DataPipe API — Reddit Top Posts is a paid API for AI agents from kidnapi.vercel.app, paid per call via x402, $0.03/call, status unknown (last checked 2026-09-13).

Fetches the top posts from a specified Reddit subreddit, returning structured post data via a pay-per-call API.

## Facts

- Endpoint: POST https://kidnapi.vercel.app/api/reddit/top
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/datapipe-api-reddit-top-posts-41c9ec22
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YMbmg6mMdWgNVqtXXoq2O

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 datapipe-api-reddit-top-posts-41c9ec22 -d '<json body>'
```

Example prompt: Can you pull the top 10 posts from r/personalfinance on Reddit so I can see what people are discussing most right now?

## When to prefer this

Use this endpoint when you need structured top-post data from a specific Reddit subreddit and want a simple pay-per-call model via USDC on Base chain without managing Reddit API credentials yourself.

## Known failure modes

- Invalid or non-existent subreddit name returns an error or empty data
- Missing required 'subreddit' field in request body causes validation error
- Reddit API rate limiting or unavailability may cause upstream failures
- Subreddit may be private or banned, returning no accessible posts
- Network timeout if Reddit upstream is slow

## How this service works

Multi-source data API for AI agents. Search, news, Reddit, translation, web scraping. Pay with x402 on Base chain.

## Output

Returns a JSON object with a success boolean and a data object containing the top posts from the specified subreddit, including post metadata such as titles, scores, authors, and URLs.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "subreddit"
 ],
 "properties": {
  "limit": {
   "type": "number",
   "description": "Number of posts"
  },
  "subreddit": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "type": "object"
  },
  "success": {
   "type": "boolean"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/datapipe-api-reddit-top-posts-41c9ec22/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from kidnapi.vercel.app](https://www.zero.xyz/host/kidnapi.vercel.app/llms.txt)
