获取Reddit APP指定版块的帖子频道信息
curl --request GET \
--url https://api.keyapi.ai/v1/reddit/fetch_subreddit_post_channels \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.keyapi.ai/v1/reddit/fetch_subreddit_post_channels"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.keyapi.ai/v1/reddit/fetch_subreddit_post_channels', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.get("https://api.keyapi.ai/v1/reddit/fetch_subreddit_post_channels")
.header("Authorization", "Bearer <token>")
.asString();{
"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"
}{
"code": 400,
"data": null,
"message": "Missing required parameter: handle"
}{
"code": 401,
"data": null,
"message": "apiKey is null"
}{
"code": 402,
"data": null,
"message": "apiKey quota is not enough"
}{
"code": 429,
"data": null,
"message": "qps limit exceeded"
}{
"code": 500,
"data": null,
"message": "Internal server error"
}Reddit 用户与社区
获取Reddit APP指定版块的帖子频道信息
获取指定版块的帖子频道信息。
GET
/
v1
/
reddit
/
fetch_subreddit_post_channels
获取Reddit APP指定版块的帖子频道信息
curl --request GET \
--url https://api.keyapi.ai/v1/reddit/fetch_subreddit_post_channels \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.keyapi.ai/v1/reddit/fetch_subreddit_post_channels"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.keyapi.ai/v1/reddit/fetch_subreddit_post_channels', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.get("https://api.keyapi.ai/v1/reddit/fetch_subreddit_post_channels")
.header("Authorization", "Bearer <token>")
.asString();{
"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"
}{
"code": 400,
"data": null,
"message": "Missing required parameter: handle"
}{
"code": 401,
"data": null,
"message": "apiKey is null"
}{
"code": 402,
"data": null,
"message": "apiKey quota is not enough"
}{
"code": 429,
"data": null,
"message": "qps limit exceeded"
}{
"code": 500,
"data": null,
"message": "Internal server error"
}🪙1 credits每次请求
复制给 AI
🤖 为什么还要自己写代码?
让 AI 来处理重复工作。点击按钮即可复制一段整理好的提示词,用于 ChatGPT、Claude 或你常用的 AI 助手。
授权
接口鉴权凭证。请在请求 Header 中传入 Authorization: Bearer <YOUR_API_KEY>。
可在 Dashboard 获取你的 API Key。
查询参数
响应
请求成功
The response is of type object.

