# Reddit Programming Posts Feed

> Reddit Programming Posts Feed is a paid API for AI agents from reddit.surf.cascade.fyi, paid per call via x402, $0.003/call, status down (last checked 2026-09-15).

Fetches posts from the Reddit r/programming community with sorting, time-filtering, and result-limit options.

## Facts

- Endpoint: GET https://reddit.surf.cascade.fyi/r/programming/posts
- Price: $0.003/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/reddit-surf-cascade-fyi-5e279186
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__GI22wVdXKxcoO9rgq6B-

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-5e279186
```

Example prompt: Show me the top 10 hot posts from Reddit's r/programming subreddit for this week.

## When to prefer this

Use this endpoint when you need programmatic access to r/programming Reddit posts with flexible sorting (hot, new, top, rising) and time-filtering in a paid, reliable API form. Prefer over scraping Reddit directly or using the free Reddit API when you need monetized, stable access. Best for agents monitoring programming trends, summarizing community discussions, or surfacing popular developer content.

## Known failure modes

- Payment not included or insufficient — endpoint returns 402 requiring USDC payment
- Invalid sort enum value (not hot/new/top/rising) — request rejected
- Invalid time period enum (not hour/day/week/month/year/all) — request rejected
- Limit out of range (not 1-100) — request rejected
- Reddit upstream unavailable — may return error or empty results
- Truncated large responses due to payload size limits

## How this service works

Fetches posts from the Reddit programming community.

## Output

A paginated list of Reddit r/programming posts including post content, titles, metadata (scores, comments, author), and pagination information, up to the requested limit.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "t": "week",
   "sort": "hot",
   "limit": 10
  }
 }
}
```

## 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": {
      "t": {
       "enum": [
        "hour",
        "day",
        "week",
        "month",
        "year",
        "all"
       ],
       "type": "string"
      },
      "sort": {
       "enum": [
        "hot",
        "new",
        "top",
        "rising"
       ],
       "type": "string"
      },
      "limit": {
       "type": "number",
       "description": "Max results (1-100)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "_truncated",
  "_originalSize"
 ],
 "properties": {
  "_truncated": {
   "type": "boolean"
  },
  "_originalSize": {
   "type": "number"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/reddit-surf-cascade-fyi-5e279186/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)
