Reddit — 版块帖子流
SpiderHubs OpenAPI 文档:Reddit — 版块帖子流,分类 Reddit。接口 GET /openapi/v1/contentcreator/reddit/app/fetch_subreddit_feed。获取某个 subreddit 的帖子流,after 翻页。注意 sort 取值为大写枚举。
OpId:
rd-subreddit-feed · 最近更新: 2026-05-23说明
获取某个 subreddit 的帖子流,after 翻页。注意 sort 取值为大写枚举。
基础信息
- Endpoint:
- GET /openapi/v1/contentcreator/reddit/app/fetch_subreddit_feed
- 计费:
- 1 积分 / 次
- 限流:
- 300 次 / 分钟 / 用户
请求参数说明
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| subreddit_name | string | 是 | 版块名(不带 r/ 前缀) |
| sort | string | 否 | 排序:BEST / HOT / NEW / TOP / CONTROVERSIAL / RISING |
| after | string | 否 | 翻页游标(上一页 pageInfo.endCursor) |
| need_format | string | 否 | true 返回清洗后的精简结构 |
响应字段说明
| 字段 | 类型 | 说明 |
|---|---|---|
| code | int | 业务状态码,200 表示成功 |
| request_id | string | 本次请求唯一标识,排查问题时可提供 |
| data | object | 业务数据容器,具体字段见下 |
| data.*.elements.edges | array | 帖子列表(GraphQL edge,node 内含帖子单元格) |
| data.*.elements.pageInfo.endCursor | string | 下一页游标,传回 after 参数翻页 |
请求示例 · cURL
curl 'https://api.spiderhubs.com/openapi/v1/contentcreator/reddit/app/fetch_subreddit_feed?subreddit_name=python&sort=HOT' \
-H 'Authorization: Bearer sk_live_xxxxxxxxxxxxxxxxxxxxxxxx'响应示例
{
"code": 200,
"request_id": "0d9fbf95-c49e-4c11-ab16-6a6adc106f51",
"data": {
"subredditV3": {
"elements": {
"dist": 4,
"pageInfo": { "endCursor": "dDNfMXV0czMxMw==" },
"edges": [
{
"__typename": "FeedElementEdge",
"node": {
"__typename": "CellGroup",
"groupId": "t3_1unctej",
"cells": [
{ "__typename": "MetadataCell", "createdAt": "2026-07-04T16:05:06.955000+0000", "authorName": "AutoModerator" },
{ "__typename": "TitleCell", "title": "..." }
// ... vote counts, preview media, etc.
]
}
}
// ... 7 more edges
]
}
}
}
}开始调用 SpiderHubs API
使用账户中心生成的 API Key,通过 Authorization: Bearer sk_live_xxx 调用接口。