# ScrapFly Reddit Top Posts API

> ScrapFly Reddit Top Posts API is a paid API for AI agents from scrapfly.vercel.app, paid per call via x402, $0.03/call, status unknown (last checked 2026-10-24).

Fetches the top posts from Reddit for a given query or subreddit via a pay-per-request scraping endpoint

## Facts

- Endpoint: POST https://scrapfly.vercel.app/api/reddit/top?utm_source=zero.xyz
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-24
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/scrapfly-reddit-top-posts-api-f23f835c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__0iIfLROX-uTWhmRbc-Sa

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 scrapfly-reddit-top-posts-api-f23f835c -d '<json body>'
```

Example prompt: Pull the top Reddit posts about 'electric vehicles' so I can see what the community is currently talking about and which threads are getting the most attention.

## When to prefer this

Use this endpoint when you need programmatic access to Reddit's top posts without managing Reddit API credentials or rate limits, especially when paying per-request via crypto (x402/Base chain) is acceptable and you need Reddit data integrated into an agent workflow quickly.

## Known failure modes

- Query parameter missing — returns validation error
- Reddit rate limiting or blocking — scrape may fail or return partial data
- Invalid or empty query string — may return empty results
- Network timeout from Reddit's servers — request may time out
- Subreddit not found or private — returns empty or error data

## How this service works

69 endpoints for data, content generation, and web scraping. Pay per request via x402 on Base chain.

## Output

Returns a success flag and a data object containing the top Reddit posts matching the query, including post titles, scores, metadata, and community engagement details scraped from Reddit.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "query"
 ],
 "properties": {
  "query": {
   "type": "string",
   "description": "Input query"
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

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