OpenAPI 文档/RedditGET

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_namestring版块名(不带 r/ 前缀)
sortstring排序:BEST / HOT / NEW / TOP / CONTROVERSIAL / RISING
afterstring翻页游标(上一页 pageInfo.endCursor)
need_formatstringtrue 返回清洗后的精简结构

响应字段说明

字段类型说明
codeint业务状态码,200 表示成功
request_idstring本次请求唯一标识,排查问题时可提供
dataobject业务数据容器,具体字段见下
data.*.elements.edgesarray帖子列表(GraphQL edge,node 内含帖子单元格)
data.*.elements.pageInfo.endCursorstring下一页游标,传回 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 调用接口。