Widget V1
Delete Widget V1
Delete a sidebar widget. Requires mod permissions.
DELETE /api/v1/communities/{name}/widget/{widget_id}
Delete a sidebar widget. Requires mod permissions.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Subreddit name. |
widget_id | string | Yes | Widget ID to delete (from All Widgets response). |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
proxy | string | No | Proxy. Optional if stored in Token Vault. |
bearer | string | No | Bearer token. Optional 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 DELETE "https://red-crawler1.p.rapidapi.com/api/v1/communities/SpaceX_Starship_News/widget/<widget_id>?proxy=<proxy>&bearer=<bearer>" \
-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/v1/communities/SpaceX_Starship_News/widget/<widget_id>?proxy=<proxy>&bearer=<bearer>", {
method: "DELETE",
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/v1/communities/SpaceX_Starship_News/widget/<widget_id>?proxy=<proxy>&bearer=<bearer>"
headers = {
"X-RapidAPI-Key": "YOUR_RAPIDAPI_KEY",
"X-RapidAPI-Host": "red-crawler1.p.rapidapi.com"
}
resp = requests.delete(url, headers=headers)
print(resp.json())Example response
HTTP 200 — captured from a live call to the gateway.
{
"success": true,
"data": "",
"error": null,
"timestamp": "2026-04-29T18:18:08.289328+00:00"
}