Sand AISand AI MAGI-2MAGI-2 jest teraz na SandBase: wideo 1080p z natywnym dźwiękiemWypróbuj teraz

Reddit Subreddit Mute Status

Dokumentacja API
https://api.sandbase.ai/v1/api/reddit/app/check-subreddit-muted

Checks whether a specified Reddit subreddit is muted by the current account using its ID. Supports an optional flag to format the returned output.

Cena
$0.001USD / wywołanie
Metoda
POST
Odpowiedź
JSON
Parametry
1 wymaganych · 1 opcjonalnych

Playground

Wejście
Subreddit ID starting with "t5_", can be obtained from fetch_subreddit_info endpoint
Whether to clean and format the data
WyjścieGotowe

Twój wynik pojawi się tutaj

Uzupełnij dane wejściowe, a następnie kliknij Uruchom.

README API

Reddit Subreddit Mute Status API

Returns whether the current account has muted a given Reddit subreddit. It needs a subreddit_id that starts with t5_, such as t5_2qh0u.

Use cases

  • Check if a subreddit is muted before showing its posts in a custom Reddit client.
  • Show a mute toggle state next to subreddit details in an account settings screen.
  • Audit a list of subreddit IDs to find which ones the account has muted.

Request

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.

Parameters

NameTypeRequiredDescription
subreddit_idstringYesSubreddit ID starting with "t5_", can be obtained from fetch_subreddit_info endpoint
need_formatbooleanNoWhether to clean and format the data

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "subredditInfoById": {
    "__typename": "Subreddit",
    "isMuted": false
  }
}

Response fields

FieldMeaning
subredditInfoByIdWrapper object for the subreddit that matches the requested subreddit_id.
subredditInfoById.__typenameObject type name. The value is Subreddit for a subreddit record.
subredditInfoById.isMutedBoolean mute flag. true means the current account has muted this subreddit, and false means it has not.

Notes

  • Get subreddit_id from the Reddit App Subreddit Info API. The ID starts with t5_.
  • The result applies to the account tied to the call, so the same subreddit_id can return different values for different accounts.
  • need_format is optional and is a boolean. The example request omits it.

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Odkryj więcej

Powiązane APIs

Wszystkie APIs
APICenaOdpowiedź
Reddit$0.001 za wywołanieJSON
Reddit$0.001 za wywołanieJSON
Reddit$0.001 za wywołanieJSON
Reddit$0.001 za wywołanieJSON
Reddit$0.001 za wywołanieJSON
Reddit$0.001 za wywołanieJSON

Przewodniki:Best Reddit API in 2026: Pricing Compared

Pytania

FAQ

Jak używać API Reddit Subreddit Mute Status?

Wyślij żądanie POST do https://api.sandbase.ai/v1/api/reddit/app/check-subreddit-muted z kluczem API SandBase w nagłówku Authorization (Bearer) oraz parametrami w treści JSON. Możesz też wypróbować je w Playground na tej stronie bez pisania kodu.

Ile kosztuje API Reddit Subreddit Mute Status?

$0.001 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.

Jakie parametry przyjmuje API Reddit Subreddit Mute Status?

Wymagane: subreddit_id (string). Opcjonalne: need_format (boolean). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.

Co zwraca API Reddit Subreddit Mute Status?

Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie). README na tej stronie zawiera przykładową odpowiedź.

Czy potrzebuję konta deweloperskiego Reddit lub klucza API?

Nie. Reddit Subreddit Mute Status działa przez SandBase, więc jeden klucz API SandBase obejmuje ten endpoint i każde inne API oraz model w katalogu. Nie musisz osobno ubiegać się o dostęp do API Reddit.