Subreddits V2
Join / Leave Subreddit V2
Join or leave a subreddit. Accepts subreddit name (e.g. test), r/name, full Reddit URL, or t5_ ID. Automatically resolves the subreddit name to its ID before su
POST /api/v2/subreddit/subscription
Join or leave a subreddit. Accepts subreddit name (e.g. test), r/name, full Reddit URL, or t5_ ID. Automatically resolves the subreddit name to its ID before subscribing. Requires bearer token.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
subreddit | string | Yes | Subreddit: name (test), r/name, URL, or t5_ID (t5_2qh1i) |
action | string | Yes | Action: join or leave |
bearer | string | No | Your Reddit bearer token. Skip if stored in Token Vault. |
proxy | string | No | Your proxy as ip:port:user:pass. Skip if stored in Token Vault. |
Authentication
| Header | Value |
|---|---|
X-RapidAPI-Key | Your RapidAPI key |
X-RapidAPI-Host | red-crawler1.p.rapidapi.com |
Example request
cURL
curl -X POST "https://red-crawler1.p.rapidapi.com/api/v2/subreddit/subscription?subreddit=test&action=join&bearer=<bearer>&proxy=<proxy>" \
-H "X-RapidAPI-Key: YOUR_RAPIDAPI_KEY" \
-H "X-RapidAPI-Host: red-crawler1.p.rapidapi.com"JavaScript
const res = await fetch("https://red-crawler1.p.rapidapi.com/api/v2/subreddit/subscription?subreddit=test&action=join&bearer=<bearer>&proxy=<proxy>", {
method: "POST",
headers: {
"X-RapidAPI-Key": "YOUR_RAPIDAPI_KEY",
"X-RapidAPI-Host": "red-crawler1.p.rapidapi.com"
}
});
const data = await res.json();
console.log(data);Python
import requests
url = "https://red-crawler1.p.rapidapi.com/api/v2/subreddit/subscription?subreddit=test&action=join&bearer=<bearer>&proxy=<proxy>"
headers = {
"X-RapidAPI-Key": "YOUR_RAPIDAPI_KEY",
"X-RapidAPI-Host": "red-crawler1.p.rapidapi.com"
}
resp = requests.post(url, headers=headers)
print(resp.json())Example response
HTTP 200 — captured from a live call to the gateway.
{
"success": true,
"data": {
"success": true,
"subreddit_id": "t5_2qhta",
"state": "SUBSCRIBED",
"result": {
"updateSubredditSubscriptions": {
"ok": true,
"errors": null,
"payloads": [
{
"subreddit": {
"id": "t5_2qhta",
"name": "cats",
"isSubscribed": false
},
"state": "SUBSCRIBED",
"ok": true
}
]
}
}
},
"error": null,
"meta": {
"vault_expires_at": "2026-04-30T07:47:21.906002+00:00",
"vault_remaining": "14h 0m"
},
"timestamp": "2026-04-29T17:47:20.093808+00:00"
}