subreddit_idstringआवश्यक
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.
आपका आउटपुट यहाँ दिखाई देगा
इनपुट पूरा करें, फिर Run पर क्लिक करें।
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.
बिल्डिंग शुरू करें
एकीकृत authentication और usage tracking के साथ Platform API endpoint.
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"
}'अपने SandBase API key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
subreddit_idstringआवश्यकSubreddit ID starting with "t5_", can be obtained from fetch_subreddit_info endpoint
need_formatbooleanWhether to clean and format the data
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
कोई सेव response प्रकाशित नहीं किया गया है। इसका response देखने के लिए Playground में API चलाएँ।
और जानें
| API | कीमत | प्रतिक्रिया |
|---|---|---|
Reddit | $0.001 प्रति कॉल | JSON |
Reddit | $0.001 प्रति कॉल | JSON |
Reddit | $0.001 प्रति कॉल | JSON |
Reddit | $0.001 प्रति कॉल | JSON |
Reddit | $0.001 प्रति कॉल | JSON |
Reddit | $0.001 प्रति कॉल | JSON |
प्रश्न
https://api.sandbase.ai/v1/api/reddit/app/check-subreddit-muted पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.001 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।
आवश्यक: subreddit_id (string)। वैकल्पिक: need_format (boolean)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।
नहीं। Reddit Subreddit Mute Status SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Reddit API access के लिए आवेदन करने की आवश्यकता नहीं है।