subreddit_idstringrequerido
Subreddit ID starting with "t5_", can be obtained from fetch_subreddit_info endpoint
https://api.sandbase.ai/v1/api/reddit/app/check-subreddit-mutedChecks whether a specified Reddit subreddit is muted by the current account using its ID. Supports an optional flag to format the returned output.
Su salida aparecerá aquí
Complete las entradas y luego haga clic en Ejecutar.
Returns whether the current account has muted a given Reddit subreddit. It needs a subreddit_id that starts with t5_, such as t5_2qh0u.
curl -X POST "https://api.sandbase.ai/v1/api/reddit/app/check-subreddit-muted" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"subreddit_id": "t5_2qh0u"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
subreddit_id | string | Yes | Subreddit ID starting with "t5_", can be obtained from fetch_subreddit_info endpoint |
need_format | boolean | No | Whether to clean and format the data |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"subredditInfoById": {
"__typename": "Subreddit",
"isMuted": false
}
}
| Field | Meaning |
|---|---|
subredditInfoById | Wrapper object for the subreddit that matches the requested subreddit_id. |
subredditInfoById.__typename | Object type name. The value is Subreddit for a subreddit record. |
subredditInfoById.isMuted | Boolean mute flag. true means the current account has muted this subreddit, and false means it has not. |
subreddit_id from the Reddit App Subreddit Info API. The ID starts with t5_.subreddit_id can return different values for different accounts.need_format is optional and is a boolean. The example request omits it.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Empiece a construir
Endpoint de la API de la plataforma con autenticación unificada y seguimiento de uso.
curl -X POST "https://api.sandbase.ai/v1/api/reddit/app/check-subreddit-muted" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"subreddit_id": "t5_2qh0u"
}'Configure su clave de API de SandBase en el entorno de su servidor. Las solicitudes usan autenticación Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserve su clave en el servidor. No la exponga en código del navegador.
subreddit_idstringrequeridoSubreddit ID starting with "t5_", can be obtained from fetch_subreddit_info endpoint
need_formatbooleanWhether to clean and format the data
Respuesta de ejemplo guardada para esta API; no se realiza ninguna solicitud en vivo al verla.
No se ha publicado ninguna respuesta guardada. Ejecute la API en Playground para inspeccionar su respuesta.
Explorar más
| API | Precio | Respuesta |
|---|---|---|
Reddit Subreddit Mute StatusEsta API Reddit | $0.001 por llamada | JSON |
Reddit | $0.001 por llamada | JSON |
Reddit | $0.001 por llamada | JSON |
Reddit | $0.001 por llamada | JSON |
Reddit | $0.001 por llamada | JSON |
Reddit | $0.001 por llamada | JSON |
Preguntas
Envía una solicitud POST a https://api.sandbase.ai/v1/api/reddit/app/check-subreddit-muted con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.
$0.001 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.
Requeridos: subreddit_id (string). Opcionales: need_format (boolean). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.
Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica). El README de esta página incluye una respuesta de ejemplo.
No. Reddit Subreddit Mute Status funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de Reddit por separado.