跳转到主要内容
GET
/
v1
/
reddit
/
fetch_subreddit_post_channels
cURL
curl --request GET \
  --url 'https://api.keyapi.ai/v1/reddit/fetch_subreddit_post_channels?subreddit_name=pics&sort=HOT&range=DAY&need_format=false' \
  --header 'Authorization: Bearer <YOUR_API_KEY>'
{
  "code": 0,
  "message": "success",
  "data": {
    "subredditInfoByName": {
      "__typename": "Subreddit",
      "postFlairTemplates": [
        {
          "id": "260873e0-c9b8-11e5-be06-0ecbb6f4dd8d",
          "text": "Politics",
          "isModOnly": false,
          "richtext": null
        },
        {
          "id": "66cf8d7a-8718-11e9-803a-0e44312dcdb8",
          "text": "Misleading Title",
          "isModOnly": false,
          "richtext": null
        },
        {
          "id": "1fd2615c-c9b8-11e5-a106-0e47f9bd707d",
          "text": "Backstory",
          "isModOnly": false,
          "richtext": null
        },
        {
          "id": "2d9ae03a-cbd3-11e5-94f0-0eea8ef60395",
          "text": "Picture of text",
          "isModOnly": false,
          "richtext": null
        },
        {
          "id": "e43df516-e8f9-11e8-8bdf-0ec71fb13d9c",
          "text": "! Broken Link !",
          "isModOnly": false,
          "richtext": null
        },
        {
          "id": "9144ca30-b41a-11f0-a5e5-bab1ece82e7c",
          "text": "OC",
          "isModOnly": false,
          "richtext": null
        },
        {
          "id": "9f2f09de-e154-11e9-9b7f-0e4b02470cc4",
          "text": "uncivil/7 day ban",
          "isModOnly": false,
          "richtext": null
        },
        {
          "id": "a768ac40-e154-11e9-88c3-0e2175216af4",
          "text": "uncivil/ban",
          "isModOnly": false,
          "richtext": null
        },
        {
          "id": "d4931296-e154-11e9-821a-0e0830f0378c",
          "text": "spam/ban",
          "isModOnly": false,
          "richtext": null
        },
        {
          "id": "f988392c-41f4-11ea-856e-0e3f43166111",
          "text": "Arts/Crafts",
          "isModOnly": false,
          "richtext": null
        },
        {
          "id": "1aaffde0-873d-11e1-a158-12313b08a511",
          "text": "r3: gratuitous",
          "isModOnly": false,
          "richtext": null
        },
        {
          "id": "86d860a2-873d-11e1-8aab-12313d2c1af1",
          "text": "r4: no pi",
          "isModOnly": false,
          "richtext": null
        },
        {
          "id": "f3540c8c-aeba-11e1-b874-12313b078981",
          "text": "r5: title guidelines",
          "isModOnly": false,
          "richtext": null
        },
        {
          "id": "6473d42a-aee7-11e1-885f-12313d051e91",
          "text": "r6: bad host",
          "isModOnly": false,
          "richtext": null
        },
        {
          "id": "fed7622a-aeba-11e1-817b-12313d051e91",
          "text": "R6: Indirect Link",
          "isModOnly": false,
          "richtext": null
        },
        {
          "id": "31d36ec2-e349-11e1-a6a1-12313d051e91",
          "text": "r7: animated",
          "isModOnly": false,
          "richtext": null
        },
        {
          "id": "2b4de71e-fd6e-11e1-b6c7-12313b0ce1e2",
          "text": "r9: progresspic",
          "isModOnly": false,
          "richtext": null
        },
        {
          "id": "8fbc89f2-a303-11e9-ad41-0ed60e30de86",
          "text": "R11: Front Page Repost",
          "isModOnly": false,
          "richtext": null
        },
        {
          "id": "db8d2b8e-31aa-11f0-b76e-0ee6b4914630",
          "text": "r1: ai generated image",
          "isModOnly": false,
          "richtext": null
        }
      ]
    }
  },
  "requestId": "5d265ad0-8c50-48ea-b86a-1156112e660e"
}
🪙1 credit每次请求

Copy for AI

🤖 让 AI 帮你写调用代码

点击按钮复制一段结构化提示词,可直接交给 ChatGPT、Claude 或其他 AI 助手生成接口调用代码。

授权

Authorization
string
header
必填

接口鉴权凭证。请在请求 Header 中传入 Authorization: Bearer <YOUR_API_KEY>。 可在 Dashboard 获取你的 API Key。

查询参数

subreddit_name
string

版块名称(不带r/前缀)

示例:

"pics"

sort
string
默认值:HOT

排序方式,可选值:HOT, NEW, TOP, CONTROVERSIAL, RISING

range
string
默认值:DAY

时间范围,可选值:HOUR, DAY, WEEK, MONTH, YEAR, ALL

need_format
boolean
默认值:false

是否需要清洗数据

响应

请求成功

The response is of type object.