跳转到主要内容
GET
subreddit
获取某个 subreddit 的帖子流。subreddit 名称区分大小写(应使用 AskReddit,而非 askreddit)。

示例

请求规范

  • 方法与路径: GET /apis/v1/reddit/subreddit
  • 可用状态: enabled
  • 请求 URL 模板: https://api.aisa.one/apis/v1/reddit/subreddit
  • after: query; 可选
  • cache_max_age: query; 可选
  • sort: query; 可选
  • subreddit: query; 必填
  • timeframe: query; 可选
  • trim: query; 可选
完整 OpenAPI 定义 有效请求声明(包括认证和引用的 schema):

费用与请求规则

按实际计费结果数量收费。 默认请求预估费用:$0.00188 USD。 最终费用以实际用量为准。 账户适用价格可能不同;支持报价的接口可按实际请求获取报价。

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

查询参数

after
string

用于获取更多帖子的 after。请从上一次响应中获取 'after'。

cache_max_age
string
sort
string

Sort order

Provider reference (supplier schema): {"enum":["best","hot","new","top","rising"],"type":"string"}.

subreddit
string
必填

Subreddit 名称

timeframe
string

Timeframe to get posts from. Runtime requires sort=top when timeframe is provided.

Provider reference (supplier schema): {"enum":["all","day","week","month","year"],"type":"string"}.

trim
string

设为 true 以返回精简版响应

响应

成功响应

after
string | null
credits_remaining
integer
cursor
string | null
posts
object[]
success
boolean