Reddit Search Subreddits API finds subreddits by keyword. Each subreddit has name, title, public description, subscribers, creation date, type, language and icon.
Every list has pagination with limit, after, next_after and has_more. Pass next_after as after to read the next page. A page is never another page's data under a new label. Reddit ends every list after about 1000 items.
Run this endpoint
Endpoint
Parameters
Start with the required fields, then add optional filters only when your use case needs them.
Runnable path
1 required parameter needed before sending a request.
2 optional filters available.
string
Required
Search text, up to 256 characters. Example: php.
coffee shops
string
Optional
Cursor from pagination.next_after of the previous page. Example: t3_1xhv532.
example
integer
Optional
Items per page, 1 to 100 (default 25). Example: 25.
10
Response Schema
Example response fields are illustrative; inspect the JSON before integrating.
Example response fields
Scan these fields before integrating.
data
meta
success
{
"data": {
"query": "php",
"pagination": {
"after": null,
"limit": 2,
"has_more": true,
"next_after": "t5_3a0bg"
},
"subreddits": [
{
"id": "2qh38",
"url": "https://www.reddit.com/r/PHP/",
"name": "PHP",
"type": "public",
"title": "PHP: The latest news in the PHP world",
"over_18": false,
"fullname": "t5_2qh38",
"icon_url": "https://styles.redditmedia.com/t5_2qh38/styles/communityIcon_wyhpynob75c71.png?width=256&s=d815bcfa11c0a8e5db0a72d033452d685ea6edf0",
"language": "en",
"key_color": "#7e53c1",
"banner_url": null,
"created_at": "2008-01-25T06:37:50+00:00",
"quarantine": false,
"created_utc": 1201243070,
"description": "Please follow [the rules](https://www.reddit.com/r/PHP/about/rules/)\n\nReleases: [Current Releases](http://php.net/downloads.php), [Window...",
"subscribers": 206375,
"allows_polls": true,
"wiki_enabled": true,
"allows_images": false,
"allows_videos": false,
"primary_color": "#8893bd",
"submission_type": "any",
"allows_galleries": false,
"spoilers_enabled": false,
"public_description": "Share and discover the latest news about the PHP ecosystem and its community.\n\nPlease respect r/php's rules."
}
]
},
"meta": {
"billable": true,
"endpoint_family": "search_subreddits"
},
"success": true
}
Errors
Handle these documented responses before retrying or showing customer-facing failures.
Validation Error
A required parameter or a value is invalid. This response is not billable.
{
"errors": {
"query": [
"The query field is required."
]
},
"message": "The request validation failed"
}Upstream Unavailable
Reddit could not be reached or returned data that does not match the request. This response is not billable and is retryable.
{
"meta": {
"billable": false,
"retryable": true,
"endpoint_family": "search_subreddits"
},
"error": {
"code": "UPSTREAM_UNAVAILABLE",
"message": "Reddit could not be reached. Please retry shortly."
},
"success": false
}Generate Code with AI
Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.
Try It Live
Test this endpoint in our interactive playground with real data.