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 はどのように使いますか?

Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/reddit/app/user-active-subreddits に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。

Reddit User Active Subreddits API の料金はいくらですか?

1回あたり $0.001、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。

Reddit User Active Subreddits API はどのパラメータを受け付けますか?

必須: username (string)。 任意: need_format (boolean)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。

Reddit User Active Subreddits API は何を返しますか?

同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。

Reddit の開発者アカウントまたは API key は必要ですか?

いいえ。Reddit User Active Subreddits は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Reddit の API アクセスを別途申請する必要はありません。