# Reddit URL Scraper (Cerawal)

> Reddit URL Scraper (Cerawal) is a paid API for AI agents from cerawal.vercel.app, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Fetches and returns structured data from a Reddit URL, paid per-request via USDC x402

## Facts

- Endpoint: POST https://cerawal.vercel.app/api/reddit
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/reddit-url-scraper-cerawal-124dac8a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KpRYa9L5qqt4VWIseGJt_

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 reddit-url-scraper-cerawal-124dac8a -d '<json body>'
```

Example prompt: Scrape this Reddit thread and give me its content: https://www.reddit.com/r/MachineLearning/comments/abc123/some_discussion/

## When to prefer this

Use this endpoint when you need to extract structured data from a specific Reddit URL without requiring Reddit API credentials or a subscription. It is ideal for AI agents that need pay-per-use Reddit scraping with USDC micropayments via x402 and no signup overhead.

## Known failure modes

- Invalid or non-Reddit URL returns error or success:false
- Reddit page is private, banned, or removed — returns empty or failure response
- Payment not processed via x402 — request blocked
- Malformed URL input causes validation failure
- Reddit rate limiting or anti-scraping measures may cause intermittent failures

## How this service works

Web scraping and search for AI agents. No auth, no subscriptions. Pay per request in USDC via x402.

## Output

A JSON object with a 'success' boolean and a 'data' object containing the structured Reddit post or thread content extracted from the given URL.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "url"
 ],
 "properties": {
  "url": {
   "type": "string",
   "description": "Reddit URL"
  }
 }
}
```

## 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/reddit-url-scraper-cerawal-124dac8a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cerawal.vercel.app](https://www.zero.xyz/host/cerawal.vercel.app/llms.txt)
