# Reddit Surf - r/programming Posts

> Reddit Surf - r/programming Posts is a paid API for AI agents from reddit.surf.cascade.fyi, paid per call via x402, $0.001/call, status down (last checked 2026-09-15, last successful call 2026-04-23).

Fetches posts and metadata from the Reddit r/programming community via the Reddit.Surf paid API gateway

## Facts

- Endpoint: GET https://reddit.surf.cascade.fyi/r/programming
- Price: $0.001/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Last successful call: 2026-04-23
- Success rate: 50% of calls made through Zero
- Activations on Zero: 2
- Tags: x402
- Canonical page: https://www.zero.xyz/c/reddit-surf-cascade-fyi-968c9a6b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PrHpZpwHogzyMm4Hkx2R2

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-surf-cascade-fyi-968c9a6b
```

Example prompt: Can you pull the latest posts from Reddit's r/programming subreddit so I can see what the programming community is currently discussing?

## When to prefer this

Use this endpoint when you need programmatic access to r/programming posts with a micro-payment model (USDC/Solana), especially in crypto-native agentic workflows. Prefer this over direct Reddit API when you want a simple pay-per-call model without OAuth credential management.

## Known failure modes

- Payment not fulfilled — 402 response requiring USDC/Solana payment before content is returned
- Invalid or missing query parameters — malformed request returns error
- Reddit.Surf upstream unavailable — gateway or Reddit API is down, returns 5xx
- Rate limit exceeded — too many requests within a time window

## How this service works

Paid access to r/programming posts and metadata via Reddit.Surf, accepting Solana and USDC payments.

## Output

Returns a list of r/programming posts including post content, metadata (titles, scores, authors, timestamps), and pagination information for browsing through the programming subreddit feed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/reddit-surf-cascade-fyi-968c9a6b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from reddit.surf.cascade.fyi](https://www.zero.xyz/host/reddit.surf.cascade.fyi/llms.txt)
