> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vexqo.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Reddit

> Search public posts, read subreddit feeds, and retrieve a post with visible comments.

Vexqo supports public Reddit content through the same API key and account limits as other Vexqo endpoints. It does not post, vote, send messages, or access private subreddits.

## Endpoints and credits

| Request | What it returns | Credits per successful request |
| - | - | - |
| `GET /reddit/search` | A bounded page of matching posts | 14 per 25 returned posts, minimum 14 |
| `GET /reddit/r/{subreddit}/posts` | A bounded subreddit feed and available rules | 14 per 25 returned posts, minimum 14 |
| `GET /reddit/posts` | One post and visible comments | 14 |

Search and feed requests are charged by the number of posts actually returned, rounded up to blocks of 25. At the standard price:

| Posts returned | Credits |
| - | - |
| 0–25 | 14 |
| 26–50 | 28 |
| 51–75 | 42 |
| 76–100 | 56 |

The maximum charge for your requested `limit` is reserved before collection. Unused credits are released after collection: `limit=100` reserves 56 credits, but a response with 30 posts costs 28. A successful empty result costs the minimum 14 credits. Single-post reads remain 14 credits, including visible comments. Failed requests cost zero.

Read `credit_costs.reddit_read` from `GET /account` for your account's active block price; the same value is the fixed price for a single-post read. `X-Credits-Used` reports the final charge.

## Search posts

```sh theme={null}
curl --get 'https://api.vexqo.dev/reddit/search' \
  -H "X-API-Key: $VEXQO_KEY" \
  --data-urlencode 'q=ad library' \
  --data 'subreddit=SaaS&sort=relevance&limit=3'
```

| Parameter | Accepted values |
| - | - |
| `q` | Required search text, 1–500 characters |
| `subreddit` | Optional name without `r/`, such as `SaaS` |
| `sort` | `relevance` (default), `hot`, `top`, `new`, `comments` |
| `limit` | 1–100 posts; default 10 |

## Read a subreddit

```sh theme={null}
curl --get 'https://api.vexqo.dev/reddit/r/SaaS/posts' \
  -H "X-API-Key: $VEXQO_KEY" \
  --data 'sort=hot&limit=3'
```

Feed sorting accepts `hot` (default), `new`, or `top`. `limit` accepts 1–100 and defaults to 10.

The earlier `/reddit/subreddits/{subreddit}/posts` URL remains supported as an alias. Both URLs use the same request limits and credit price; returned links use `/reddit/r/{subreddit}/posts`.

## Read a post and comments

```sh theme={null}
curl --get 'https://api.vexqo.dev/reddit/posts' \
  -H "X-API-Key: $VEXQO_KEY" \
  --data-urlencode 'target=1k0ni6s' \
  --data 'sort=best&comment_limit=5'
```

`target` accepts a post ID or a full public HTTPS Reddit post URL. Sorting accepts `best` (default), `top`, `new`, `old`, or `controversial`. `comment_limit` accepts 0–50 and defaults to 20; use 0 when you only need the post. The example ID is illustrative of a previously observed post, not a guarantee of current availability.

## Coverage and response fields

Responses contain `operation`, `sort`, `posts`, `comments`, `posts_returned`, `comments_returned`, `subreddit_rules`, `partial`, `has_more`, `stopping_reason`, `source`, and `links`.

Posts include their ID, source URL, title, available body, optional search `excerpt`, subreddit, author, net score, and displayed comment count. An excerpt is a search preview, not the full post body. Separate upvote and downvote totals are not provided. Comments include their ID, parent ID, available body, author, and score. Missing values remain null; `status` distinguishes available, removed, deleted, and unavailable bodies.

Subreddit feed responses include `subreddit_rules`: each rule has a `number`, `title`, and available `description`, including descriptions collapsed in Reddit's sidebar. A null value means rules were unavailable or this was not a subreddit feed; it does not establish that the community has no rules.

The collector loads additional feed content up to the requested limit within a bounded read. Nonempty results still have `partial: true` and `has_more: null`. `stopping_reason: "limit_reached"` means the requested count was collected; `"load_timeout"` means the browser wait expired before reaching it. Older previews may report `"visible_page_only"`. A limit is a maximum, not a guarantee of available results. There is no client pagination or complete comment-tree export. The displayed comment count can exceed the number of comments returned.

`source.method` identifies `http_public_page` when the response was parsed from HTTP or `rendered_public_page` when a browser was needed. `source.observed_at` records collection time. These endpoints currently collect fresh results and do not accept `max_age`. Preserve timestamps when comparing observations.

## Errors and MCP

Source restrictions can return `403`, unavailable collection can return `502`, and a busy collector, expired login, verification requirement, or source rate limit can return `503`. A missing post returns `404`; invalid parameters return `422`. Inspect the error detail and honor `Retry-After` when supplied. Contact support for persistent availability errors.

The corresponding MCP tools are `search_reddit`, `get_reddit_subreddit_posts`, and `get_reddit_post`. They use the same pricing and response fields. Refresh your client's tool list if it predates the release. See [credits and errors](https://docs.vexqo.dev/usage.md) and the [live API reference](https://docs.vexqo.dev/api-overview.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.