Sand AISand AI MAGI-2MAGI-2 artık SandBase'de: yerel sesli 1080p videoŞimdi deneyin

Reddit App Subreddit Post Channels

API dokümanları
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.

Fiyat
$0.001USD / çağrı
Yöntem
POST
Yanıt
JSON
Parametreler
0 gerekli · 4 isteğe bağlı

Oynatma Alanı

Girdi
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
ÇıktıÖrnek
Yanıtoutputs · 735 B · 30 satır
[
  {
    "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"
        ]
      }
    }
  }
]

Örnekler

Bir örnek seçerek girdilerini ve sonucunu playground'a yükleyin.

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.

Daha fazlasını keşfedin

İlgili APIs

Tüm APIs
APIFiyatYanıt
Reddit$0.001 çağrı başınaJSON
Reddit$0.001 çağrı başınaJSON
Reddit$0.001 çağrı başınaJSON
Reddit$0.001 çağrı başınaJSON
Reddit$0.001 çağrı başınaJSON
Reddit$0.001 çağrı başınaJSON

Kılavuzlar:Best Reddit API in 2026: Pricing Compared

Sorular

SSS

Reddit App Subreddit Post Channels API'sini nasıl kullanırım?

SandBase API anahtarınızı Authorization başlığında (Bearer) ve parametreleri JSON gövdesi olarak ile https://api.sandbase.ai/v1/api/reddit/app/subreddit-post-channels adresine bir POST isteği gönderin. Ayrıca bu sayfadaki Playground’da kod yazmadan da deneyebilirsiniz.

Reddit App Subreddit Post Channels API'sinin fiyatı nedir?

çağrı başına $0.001, SandBase bakiyenizden tahsil edilir. Yalnızca yaptığınız çağrılar için ücretlendirilirsiniz; abonelik yoktur.

Reddit App Subreddit Post Channels API'si hangi parametreleri kabul eder?

Gerekli parametre yoktur. İsteğe bağlı: need_format (boolean), range (string), sort (string) ve subreddit_name (string). Parametreler tablosu ve bu sayfadaki Playground, tüm alanları listeler.

Reddit App Subreddit Post Channels API'si ne döndürür?

Aynı HTTP isteğinde döndürülen bir JSON yanıtı (senkron). Bu sayfadaki README'de örnek bir yanıt yer alır.

Bir Reddit geliştirici hesabına veya API anahtarına ihtiyacım var mı?

Hayır. Reddit App Subreddit Post Channels, SandBase üzerinden çalışır; bu nedenle tek bir SandBase API anahtarı bu uç noktayı ve katalogdaki diğer tüm API'leri ve modelleri kapsar. Reddit API erişimi için ayrıca başvuru yapmanız gerekmez.