# Reddit Subreddit Rules Fetcher

> Reddit Subreddit Rules Fetcher is a paid API for AI agents from x402.apidirect.io, paid per call via x402, $0.004/call, status unknown (last checked 2026-10-30).

Fetches the moderation rules of a Reddit subreddit, in listed order, given a subreddit name or URL.

## Facts

- Endpoint: GET https://x402.apidirect.io/v1/reddit/subreddit/rules?utm_source=zero.xyz
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/reddit-subreddit-rules-fetcher-7fbaa737
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fAGtomRq4_eq7TGYxz7Fa

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-rules-fetcher-7fbaa737
```

Example prompt: What are the rules for r/MachineLearning on Reddit? Pull them in the order the subreddit lists them.

## When to prefer this

Use this endpoint when you need to programmatically retrieve the official moderation rules of any public Reddit subreddit, either by name or URL. Prefer it over manual scraping or general web search when you need structured, ordered rule data for compliance checks, research, or automated content moderation workflows.

## Known failure modes

- Subreddit does not exist — returns error or empty result
- Subreddit is private or banned — access denied
- Neither subreddit name nor URL provided — validation error
- Both subreddit and URL provided simultaneously — ambiguous input error
- Rate limiting or Reddit API unavailability — service error

## How this service works

Get a subreddit's rules by name or URL, in the order the subreddit lists them.

## Output

Returns the subreddit's rules in the order they are listed, including rule titles, descriptions, and any associated details as published by the subreddit's moderators.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "url": {
       "type": "string",
       "maxLength": 500,
       "description": "Subreddit URL, e.g. https://www.reddit.com/r/Python/ (max 500 characters). Provide exactly one of subreddit or url."
      },
      "subreddit": {
       "type": "string",
       "maxLength": 25,
       "description": "Subreddit name, with or without r/, e.g. Python. Provide exactly one of subreddit or url."
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/reddit-subreddit-rules-fetcher-7fbaa737/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.apidirect.io](https://www.zero.xyz/host/x402.apidirect.io/llms.txt)
