Sand AISand AI MAGI-2MAGI-2 अब SandBase पर है: 1080p वीडियो, नेटीव ऑडियो के साथअभी आज़माएँ

Reddit User Active Subreddits

API दस्तावेज़
https://api.sandbase.ai/v1/api/reddit/app/user-active-subreddits

Returns a list of Reddit communities where a specified user participates most actively. Supports optional response formatting.

मूल्य
$0.001USD / कॉल
मेथड
POST
प्रतिक्रिया
JSON
पैरामीटर
1 आवश्यक · 1 वैकल्पिक

प्लेग्राउंड

इनपुट
Reddit username
Whether to clean and format the data
आउटपुटउदाहरण
प्रतिक्रियाoutputs · 134 B · 10 पंक्तियाँ
[
  {
    "data": {
      "redditorInfoByName": {
        "__typename": "Redditor",
        "activeSubreddits": []
      }
    }
  }
]

उदाहरण

प्लेग्राउंड में इसके इनपुट और परिणाम लोड करने के लिए कोई उदाहरण चुनें।

API README

Reddit User Active Subreddits API

Returns the Reddit communities where a given user is most active. It needs a Reddit username, such as spez. The sample call for spez returned the user object with activeSubreddits set to null.

Use cases

  • Check which subreddits a Reddit user is listed as active in.
  • Confirm that a username resolves to a Redditor record before you call other user APIs.
  • Compare the activeSubreddits value across several usernames to see which accounts have data.

Request

curl -X POST "https://api.sandbase.ai/v1/api/reddit/app/user-active-subreddits" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"username": "spez"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
usernamestringYesReddit username
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.

{
  "redditorInfoByName": {
    "__typename": "Redditor",
    "activeSubreddits": null
  }
}

Response fields

FieldMeaning
redditorInfoByNameThe user record that matches the username you sent.
redditorInfoByName.__typenameThe object type. The value Redditor confirms the lookup found a Reddit user account.
redditorInfoByName.activeSubredditsThe list of communities where the user is most active. It is null in the sample response for spez, so no active subreddits came back for that call.

Notes

  • Send username without the u/ prefix, as in the example spez.
  • Handle a null value in activeSubreddits in your code, since the sample response for spez returned no list.
  • To see what a user posts or comments, call Reddit User Posts or Reddit User Comments.
  • For account details, call Reddit App User Profile.

Pricing

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

और जानें

संबंधित APIs

सभी APIs
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

गाइड्स:Best Reddit API in 2026: Pricing Compared

प्रश्न

FAQ

Reddit User Active Subreddits API का उपयोग कैसे करें?

https://api.sandbase.ai/v1/api/reddit/app/user-active-subreddits पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।

Reddit User Active Subreddits API की लागत कितनी है?

$0.001 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।

Reddit User Active Subreddits API कौन-से parameters स्वीकार करती है?

आवश्यक: username (string)। वैकल्पिक: need_format (boolean)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।

Reddit User Active Subreddits API क्या लौटाती है?

एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।

क्या मुझे एक Reddit developer account या API key चाहिए?

नहीं। Reddit User Active Subreddits SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Reddit API access के लिए आवेदन करने की आवश्यकता नहीं है।