Sand AISand AI MAGI-2MAGI-2 が SandBase に登場しました: ネイティブ音声付き 1080p 動画今すぐ試す

Reddit App Subreddit Post Channels

APIドキュメント
https://api.sandbase.ai/v1/api/reddit/app/subreddit-post-channels

Returns post channel and flair details for a target subreddit. Supports custom sort methods and time range filters.

料金
$0.001USD / 回
メソッド
POST
レスポンス
JSON
パラメータ
必須 0 件 · 任意 4 件

プレイグラウンド

入力
Whether to clean and format the data
Time range, supports HOUR, DAY, WEEK, MONTH, YEAR, ALL
Sort method, supports HOT, NEW, TOP, CONTROVERSIAL, RISING
Subreddit name
出力例
レスポンスoutputs · 735 B · 30 行
[
  {
    "data": {
      "subredditInfoByName": {
        "__typename": "Subreddit",
        "postFlairTemplates": [
          {
            "id": "f988392c-41f4-11ea-856e-0e3f43166111",
            "isModOnly": false,
            "richtext": null,
            "text": "Arts/Crafts"
          },
          {
            "id": "260873e0-c9b8-11e5-be06-0ecbb6f4dd8d",
            "isModOnly": false,
            "richtext": null,
            "text": "Politics"
          },
          {
            "id": "66cf8d7a-8718-11e9-803a-0e44312dcdb8",
            "isModOnly": false,
            "richtext": null,
            "text": "Misleading Title"
          },
          "… 16 more items in the full response"
        ]
      }
    }
  }
]

例

例を選択すると、その入力と結果がプレイグラウンドに読み込まれます。

API README

Reddit App Subreddit Post Channels API

Returns the post flair templates for a subreddit. You send the subreddit name in subreddit_name. The request also accepts sort, range and need_format.

Use cases

  • List every flair a subreddit offers so a posting tool can show a flair picker.
  • Find which flairs are restricted to moderators before you submit a post.
  • Map flair id values to their text labels when you group posts by category.
  • Compare the flair sets of several communities to see how each one organizes its posts.

Request

curl -X POST "https://api.sandbase.ai/v1/api/reddit/app/subreddit-post-channels" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

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

Parameters

NameTypeRequiredDescription
need_formatbooleanNoWhether to clean and format the data
rangestringNoTime range, supports HOUR, DAY, WEEK, MONTH, YEAR, ALL
sortstringNoSort method, supports HOT, NEW, TOP, CONTROVERSIAL, RISING
subreddit_namestringNoSubreddit name

Example response

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

{
  "subredditInfoByName": {
    "__typename": "Subreddit",
    "postFlairTemplates": [
      {
        "id": "260873e0-c9b8-11e5-be06-0ecbb6f4dd8d",
        "isModOnly": false,
        "richtext": null,
        "text": "Politics"
      }
    ]
  }
}

Response fields

FieldMeaning
subredditInfoByNameTop-level object for the requested subreddit.
subredditInfoByName.__typenameObject type. The value is Subreddit.
subredditInfoByName.postFlairTemplates[]List of post flair templates that the subreddit defines.
subredditInfoByName.postFlairTemplates[].idUnique ID of the flair template, in UUID format.
subredditInfoByName.postFlairTemplates[].textDisplay label of the flair, such as Politics or Backstory.
subredditInfoByName.postFlairTemplates[].isModOnlyBoolean. When true, only moderators can use this flair. In the sample it is false for every flair.
subredditInfoByName.postFlairTemplates[].richtextRich text version of the flair label. It is null in the sample, so the plain text field holds the label.

Notes

  • The sample request sent an empty body, so the defaults applied: subreddit_name is pics, sort is HOT, range is DAY and need_format is false.
  • sort accepts HOT, NEW, TOP, CONTROVERSIAL and RISING. range accepts HOUR, DAY, WEEK, MONTH, YEAR and ALL.
  • To read the posts in a subreddit, call Reddit Subreddit Feed. For general community details, use Reddit App Subreddit Info.

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

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

Reddit App Subreddit Post Channels API の料金はいくらですか?

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

Reddit App Subreddit Post Channels API はどのパラメータを受け付けますか?

必須パラメータはありません。 任意: need_format (boolean), range (string), sort (string) と subreddit_name (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。

Reddit App Subreddit Post Channels API は何を返しますか?

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

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

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