# ScrapFly Reddit Top Posts API

> ScrapFly Reddit Top Posts API is a paid API for AI agents from scravfly.vercel.app, paid per call via x402, $0.09/call, status unknown (last checked 2026-09-15).

Fetches the top posts from Reddit for a given query or subreddit topic

## Facts

- Endpoint: POST https://scravfly.vercel.app/api/reddit/top
- Price: $0.09/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/scrapfly-reddit-top-posts-api-088e7805
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pQRtZld34CksuhBmr12Ia

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-088e7805 -d '<json body>'
```

Example prompt: Can you pull the top Reddit posts about 'electric vehicles' right now so I can see what the community is discussing?

## When to prefer this

Choose this endpoint when you need real-time Reddit top post data for a specific topic without managing your own Reddit API credentials or scraping infrastructure. Ideal for sentiment analysis, trend detection, content research, and community monitoring use cases where Reddit's public top content is the target data source.

## Known failure modes

- Invalid or empty query returns an error or empty result set
- Reddit rate-limiting or blocking may cause scrape failures
- Query too broad may return irrelevant or mixed results
- Network timeout if Reddit is slow to respond
- Payment failure on Base chain prevents request from being processed

## How this service works

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

## Output

Returns a JSON object with a success flag and a data object containing top Reddit posts matching the query, including post titles, scores, metadata, and other relevant content details extracted 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-088e7805/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from scravfly.vercel.app](https://www.zero.xyz/host/scravfly.vercel.app/llms.txt)
