# ScrapFly Reddit Subreddit Data API

> ScrapFly Reddit Subreddit Data 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 structured data about a Reddit subreddit by name, including metadata and posts

## Facts

- Endpoint: POST https://scrapfly.vercel.app/api/reddit/subreddit?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-subreddit-data-api-d96fe9d6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5chW15dLfsSdTeXqhHdQz

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-subreddit-data-api-d96fe9d6 -d '<json body>'
```

Example prompt: Can you pull the latest data and community info from the r/MachineLearning subreddit for me?

## When to prefer this

Use this endpoint when you need structured Reddit subreddit data without managing your own Reddit API credentials or scraping infrastructure. Ideal for agents that need community metadata, post listings, or subreddit stats on demand with pay-per-request pricing via x402 on Base chain, avoiding Reddit API rate limits and authentication complexity.

## Known failure modes

- Subreddit does not exist — returns success: false or empty data
- Private or quarantined subreddit — access may be blocked
- Invalid or missing subreddit name — validation error
- Rate limiting or Reddit anti-bot measures — request may fail
- Network timeout — no response returned

## 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 boolean and a data object containing subreddit metadata such as community description, subscriber count, rules, recent posts, and other structured information scraped from the Reddit subreddit page.

## Request schema (JSON Schema)

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

## 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-subreddit-data-api-d96fe9d6/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)
