# Reddit API (ScrapeIO)

7 endpoints for public Reddit data. Same response format and field names as every other platform.

## Basics

- Base URL: `https://scrapeio.com`
- Auth: send your key in the `x-api-key` header. Get a key at https://scrapeio.com/login (100 free credits, no card).
- Every endpoint is a GET with query parameters and returns JSON:
  `{ "success": true, "cached": false, "credits_used": 1, "credits_remaining": 99, "data": { ... } }`
- Field names are the same on every platform (`handle`, `followers`, `plays`, `likes`, `comments`, `created_at`).
- Lists return `data.items`, `data.cursor` and `data.has_more`. Pass `cursor` back to get the next page.
- Each endpoint has one listed price. Cached repeats, failed calls, private and not-found answers cost 0.
- Limit: 300 requests a minute per key.

## Errors

| Status | Meaning | Charged |
| --- | --- | --- |
| 200 | Success | Yes, unless cached |
| 400 | A parameter is missing or wrong | No |
| 401 | The key is missing or invalid | No |
| 402 | Not enough credits | No |
| 403 | The account or post is private | No |
| 404 | Not found on the platform | No |
| 429 | More than 300 requests a minute | No |
| 502 | Every source is down; retry shortly | No |

### GET /v1/reddit/post

Post Price: 5 credits. MCP tool: `reddit_post`.

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `url` | string | yes | Reddit post URL |

```bash
curl "https://scrapeio.com/v1/reddit/post?url=..." -H "x-api-key: $SCRAPEIO_API_KEY"
```

### GET /v1/reddit/post/comments

Post Comments Price: 5 credits. MCP tool: `reddit_post_comments`.

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `url` | string | yes | Reddit post URL |
| `trim` | boolean | no | Set to true for a trimmed down version of the response |
| `cursor` | string | no | One opaque cursor returned by the previous response to get more comments or replies. |

```bash
curl "https://scrapeio.com/v1/reddit/post/comments?url=..." -H "x-api-key: $SCRAPEIO_API_KEY"
```

### GET /v1/reddit/post/transcript

Post Transcript Price: 5 credits. MCP tool: `reddit_post_transcript`.

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `url` | string | yes | Reddit post URL or direct v.redd.it video URL |
| `language` | string | no | 2 letter language code. |
| `cache_max_age` | string (1d, 3d, 7d, 14d, 30d) | no | If we have a response in the cache that is this many days old or newer, return the cached response (0 credits, with "cached": true and a "ca |

```bash
curl "https://scrapeio.com/v1/reddit/post/transcript?url=..." -H "x-api-key: $SCRAPEIO_API_KEY"
```

### GET /v1/reddit/search

Search Price: 5 credits. MCP tool: `reddit_search`.

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `query` | string | yes | Search query |
| `filter` | string (posts, comments) | no | Search posts or comments |
| `sort` | string (relevance, new, top, comment_count) | no | Sort by. |
| `timeframe` | string (all, day, week, month, year) | no | Post search timeframe |
| `trim` | boolean | no | Set to true for a trimmed down version of the response |
| `after` | string | no | Used to paginate to next page |

```bash
curl "https://scrapeio.com/v1/reddit/search?query=coffee" -H "x-api-key: $SCRAPEIO_API_KEY"
```

### GET /v1/reddit/subreddit

Subreddit Posts Price: 5 credits. MCP tool: `reddit_subreddit`.

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `subreddit` | string | yes | Subreddit name |
| `timeframe` | string (all, day, week, month, year) | no | Timeframe to get posts from |
| `sort` | string (best, hot, new, top, rising) | no | Sort order |
| `trim` | boolean | no | Set to true for a trimmed down version of the response |
| `cache_max_age` | string (1d, 3d, 7d, 14d, 30d) | no | If we have a response in the cache that is this many days old or newer, return the cached response (0 credits, with "cached": true and a "ca |
| `after` | string | no | After to get more posts. |

```bash
curl "https://scrapeio.com/v1/reddit/subreddit?subreddit=..." -H "x-api-key: $SCRAPEIO_API_KEY"
```

### GET /v1/reddit/subreddit/details

Subreddit Details Price: 5 credits. MCP tool: `reddit_subreddit_details`.

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `subreddit` | string | no | Subreddit name. |
| `url` | string | no | Subreddit URL |
| `cache_max_age` | string (1d, 3d, 7d, 14d, 30d) | no | If we have a response in the cache that is this many days old or newer, return the cached response (0 credits, with "cached": true and a "ca |

```bash
curl "https://scrapeio.com/v1/reddit/subreddit/details" -H "x-api-key: $SCRAPEIO_API_KEY"
```

### GET /v1/reddit/subreddit/search

Subreddit Search Price: 5 credits. MCP tool: `reddit_subreddit_search`.

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `subreddit` | string | yes | Subreddit name (e.g. |
| `query` | string | no | Search query to find matching content |
| `sort` | string (relevance, hot, top, new, comments) | no | Sort order. |
| `timeframe` | string (all, year, month, week, day, hour) | no | Timeframe to filter results |
| `cursor` | string | no | Cursor to get more results. |

```bash
curl "https://scrapeio.com/v1/reddit/subreddit/search?subreddit=..." -H "x-api-key: $SCRAPEIO_API_KEY"
```
