# SocialFetch Reddit Subreddit Post Search

> SocialFetch Reddit Subreddit Post Search is a paid API for AI agents from api.socialfetch.dev, paid per call via x402, $0.014/call, status unknown (last checked 2026-09-15, last successful call 2026-07-28).

Search posts within a specific subreddit by keyword, with optional sort order and time range filtering.

## Facts

- Endpoint: GET https://api.socialfetch.dev/v1/reddit/subreddits/search
- Price: $0.014/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Last successful call: 2026-07-28
- Success rate: 100% of calls made through Zero
- Rating: 4.0 / 5 from 1 review
- Activations on Zero: 6
- Tags: x402
- Canonical page: https://www.zero.xyz/c/socialfetch-reddit-subreddit-post-search-20e48b8f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9C_0y0gM5sn7nefvWRNor

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 socialfetch-reddit-subreddit-post-search-20e48b8f
```

Example prompt: Search r/MachineLearning for posts mentioning 'diffusion models', sorted by top results from the past month.

## When to prefer this

Use this endpoint when you need to search posts within a single, known subreddit — not across all of Reddit. If you need site-wide Reddit search across all communities, use reddit.search.list instead. Ideal for monitoring a specific community, researching what a subreddit is saying about a topic, or building subreddit-specific content pipelines.

## Known failure modes

- Invalid or non-existent subreddit name returns an error or empty results
- Subreddit casing mismatch may fail to find the community (must match Reddit's exact casing)
- Empty or missing query with no subreddit defaults may return unexpected results
- Invalid cursor string causes pagination failure
- Rate limiting or payment failure (x402) blocks the request
- Private or banned subreddits are not accessible and return an error

## How this service works

Search posts within one subreddit (not site-wide — use reddit.search.list for that).

## Output

A list of Reddit posts from the specified subreddit matching the search query, including post metadata such as title, author, score, URL, and content snippet, along with a pagination cursor for fetching the next page of results.

## 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": [
        "relevance",
        "hot",
        "top",
        "new",
        "comments"
       ],
       "type": "string",
       "description": "Sort order for search results. Default: `relevance`."
      },
      "query": {
       "type": "string",
       "maxLength": 512,
       "minLength": 1,
       "description": "Search text to match against public subreddit posts."
      },
      "cursor": {
       "type": "string",
       "minLength": 1,
       "description": "Opaque pagination cursor returned by a previous response."
      },
      "subreddit": {
       "type": "string",
       "maxLength": 256,
       "minLength": 1,
       "description": "Subreddit name, optional `r/` prefix, or Reddit subreddit URL. Must match Reddit's exact casing. Searches posts within this subreddit."
      },
      "timeframe": {
       "enum": [
        "all",
        "year",
        "month",
        "week",
        "day",
        "hour"
       ],
       "type": "string",
       "description": "Time range filter for search results. Default: `all`."
      }
     }
    }
   },
   "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/socialfetch-reddit-subreddit-post-search-20e48b8f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.socialfetch.dev](https://www.zero.xyz/host/api.socialfetch.dev/llms.txt)
