API · Reddit
POST /reddit/subreddits/batch
Up to 25 subreddits in one call, by name.
| Request | POST /v1/reddit/subreddits/batch |
| Operation id | reddit.subreddit.batch |
| Cost | 5 credits, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
Up to 25 subreddits in one call, by name.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
names | string[] | yes | Subreddit names, up to 25. |
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | The subreddits found and the names that were not. | SubredditBatch |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | The subreddit, post or user does not exist. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | Reddit is temporarily unavailable. Retryable; nothing was charged. | Error |
SubredditBatch fields
| Field | Type | Description |
|---|---|---|
subreddits | Subreddit[] | |
requested | number | |
returned | number | |
missing | string[] |
Errors use one shape everywhere; see Errors for every code and what to do.