Sand AISand AI MAGI-2ตอนนี้ MAGI-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 / คำขอ
Method
POST
การตอบกลับ
JSON
พารามิเตอร์
0 จำเป็น · 4 ไม่บังคับ

Playground

อินพุต
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"
        ]
      }
    }
  }
]

ตัวอย่าง

เลือกตัวอย่างเพื่อโหลดอินพุตและผลลัพธ์ลงใน playground

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

คำถาม

คำถามที่พบบ่อย

ฉันจะใช้ Reddit App Subreddit Post Channels API ได้อย่างไร?

ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/reddit/app/subreddit-post-channels โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด

Reddit App Subreddit Post Channels API ราคาเท่าไร?

$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 ส่งคืนอะไร?

การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ

ฉันจำเป็นต้องมีบัญชีนักพัฒนาหรือ API key ของ Reddit ไหม?

ไม่จำเป็น Reddit App Subreddit Post Channels ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Reddit API แยกต่างหาก