Search by Type
Search Subreddits and Communities by Topic
Search subreddits by name or topic — the Communities tab on reddit.com. Verified to match Reddit's UI rank order for SFW and NSFW queries, with pagination.
GET
/api/reddit/search/communities$0.002 / callSearch subreddits. Mirrors the "Communities" tab on reddit.com search with the same rank order.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
q | string | Yes | Search query |
nsfw | boolean | No | true to include NSFW communities |
limit | number | No | Number of communities to return, 1-100 (default 25) |
after | string | No | Pagination cursor |
Example
curl -H "Authorization: Bearer $TOKEN" \
"https://api.redditapis.com/api/reddit/search/communities?q=twitter"const response = await fetch(
"https://api.redditapis.com/api/reddit/search/communities?q=twitter",
{ headers: { Authorization: "Bearer TOKEN" } }
);import requests
response = requests.get(
"https://api.redditapis.com/api/reddit/search/communities",
params={"q": "twitter"},
headers={"Authorization": "Bearer TOKEN"},
)User Comments
Fetch a Reddit user's recent comments by username — sorted by new, top, or controversial. Includes comment body, score, subreddit, and cursor pagination.
LoginNew
Log in to a Reddit account with username and password (plus optional 2FA TOTP). Returns the full set of session cookies for /comment, /vote, and /dm.
