# Reddit Subreddit Feed Scraper

> Reddit Subreddit Feed Scraper is a paid API for AI agents from reddit.apitoll.cloud, paid per call via x402, $0.03/call, status unknown (last checked 2026-09-14).

Fetches the latest posts from any Reddit subreddit sorted by hot, new, top, rising, or controversial, returning post metadata including title, score, author, comments, links, and flair — no Reddit API key required.

## Facts

- Endpoint: GET https://reddit.apitoll.cloud/v1/reddit/subreddit
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/reddit-subreddit-feed-scraper-d91ce504
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_OOs_P5C0LAfwwr1GOQawd

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-subreddit-feed-scraper-d91ce504
```

Example prompt: Pull the top 25 hot posts from r/MachineLearning right now and give me each post's title, score, and comment count.

## When to prefer this

Use this endpoint when you need to monitor or analyze the feed of a specific Reddit subreddit without authenticating with the Reddit API. Ideal for tracking trending posts, pulling social signals from a community, or building content pipelines from Reddit. Prefer this over search-based endpoints when you want the full subreddit feed rather than keyword-filtered results. Choose this over comment or user endpoints when post-level metadata (title, score, links, flair) is the primary need.

## Known failure modes

- Invalid or nonexistent subreddit name returns empty results or error
- Case-sensitive subreddit name mismatch may return wrong community or error
- time parameter ignored unless sort is 'top' or 'controversial'
- Private or quarantined subreddits may not return posts
- limit values outside 1–100 are rejected by schema validation
- Network or scraping failures may return partial or empty results

## How this service works

Reddit subreddit feed scraper — the latest posts from any subreddit (r/<name>) for AI agents, sorted by hot, new, top, rising, or controversial with an optional time window. Returns each post’s title, author, score, comment count, permalink, external link + domain, flair, NSFW flag, and timestamp. No login, no Reddit API key. Monitor communities, track trending posts, and feed social signals to agents.

## Output

Returns a JSON object with the subreddit name, sort type, timestamp, post count, and an array of up to 100 posts each containing: post ID, title, author, score, number of comments, permalink, external URL, domain, flair, NSFW flag, self-post flag, creation timestamp, and scrape timestamp.

## 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",
     "required": [
      "subreddit"
     ],
     "properties": {
      "sort": {
       "enum": [
        "hot",
        "new",
        "top",
        "rising",
        "controversial"
       ],
       "type": "string",
       "description": "Feed sort order."
      },
      "time": {
       "enum": [
        "hour",
        "day",
        "week",
        "month",
        "year",
        "all"
       ],
       "type": "string",
       "description": "Time window — only applies to top/controversial."
      },
      "limit": {
       "type": "integer",
       "maximum": 100,
       "minimum": 1,
       "description": "Max posts to return (1-100)."
      },
      "subreddit": {
       "type": "string",
       "description": "Subreddit name (with or without the r/ prefix), e.g. programming, wallstreetbets, technology. Case-sensitive — use the exact casing from the subreddit’s URL (AskReddit, not askreddit). Defaults to a demo subreddit if omitted."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": "string"
      },
      "sort": {
       "type": "string"
      },
      "count": {
       "type": "number"
      },
      "posts": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "id": {
          "type": "string"
         },
         "url": {
          "type": "string"
         },
         "flair": {
          "type": "string"
         },
         "score": {
          "type": "number"
         },
         "title": {
          "type": "string"
         },
         "author": {
          "type": "string"
         },
         "domain": {
          "type": "string"
         },
         "fullId": {
          "type": "string"
         },
         "isNsfw": {
          "type": "boolean"
         },
         "isSelf": {
          "type": "boolean"
         },
         "created
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "asOf": "2026-07-15T12:00:00Z",
  "sort": "hot",
  "count": 25,
  "posts": [
   {
    "id": "abc123",
    "url": "https://www.reddit.com/r/programming/comments/abc123/show_hn_i_built/",
    "flair": "Show & Tell",
    "score": 1842,
    "title": "Show HN: I built a type-safe API framework",
    "author": "some_dev",
    "domain": "github.com",
    "fullId": "t3_abc123",
    "isNsfw": false,
    "isSelf": false,
    "createdAt": "2026-07-15T09:14:00Z",
    "scrapedAt": "2026-07-15T12:00:00Z",
    "subreddit": "programming",
    "recordType": "post",
    "externalUrl": "https://github.com/some/repo",
    "numComments": 231
   }
  ],
  "source": {
   "via": "Apify",
   "name": "Reddit"
  },
  "subreddit": "programming"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/reddit-subreddit-feed-scraper-d91ce504/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from reddit.apitoll.cloud](https://www.zero.xyz/host/reddit.apitoll.cloud/llms.txt)
