Reddit — 用户帖子列表
SpiderHubs OpenAPI 文档:Reddit — 用户帖子列表,分类 Reddit。接口 GET /openapi/v1/contentcreator/reddit/app/fetch_user_posts。获取用户发布的帖子列表,after 翻页。
OpId:
rd-user-posts · 最近更新: 2026-05-23说明
获取用户发布的帖子列表,after 翻页。
基础信息
- Endpoint:
- GET /openapi/v1/contentcreator/reddit/app/fetch_user_posts
- 计费:
- 1 积分 / 次
- 限流:
- 300 次 / 分钟 / 用户
请求参数说明
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| username | string | 是 | 用户名 |
| sort | string | 否 | 排序:NEW / TOP / HOT / CONTROVERSIAL |
| 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_user_posts?username=spez&sort=NEW' \
-H 'Authorization: Bearer sk_live_xxxxxxxxxxxxxxxxxxxxxxxx'响应示例
{
"code": 200,
"request_id": "...",
"data": { /* platform-native data — see endpoint reference for shape */ }
}开始调用 SpiderHubs API
使用账户中心生成的 API Key,通过 Authorization: Bearer sk_live_xxx 调用接口。