跳转到主要内容
GET
search
在整个 Reddit 中搜索与查询匹配的帖子。

示例

请求规范

  • 方法与路径: GET /apis/v1/reddit/search
  • 可用状态: enabled
  • 请求 URL 模板: https://api.aisa.one/apis/v1/reddit/search
  • after: query; 可选
  • count: query; 可选
  • filter: query; 可选
  • limit: query; 可选
  • query: query; 必填
  • sort: query; 可选
  • time: query; 可选
  • timeframe: query; 可选
  • trim: query; 可选
  • trimmed: 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

用于分页至下一页

count
string
filter
enum<string>

Search posts or comments

可用选项:
comments,
posts
limit
string
query
string
必填

搜索查询

sort
string

Sort by

Provider reference (supplier schema): {"enum":["relevance","new","top","comment_count"],"type":"string"}.

time
string
timeframe
string

Timeframe

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

trim
string

设为 true 以返回精简版响应

trimmed
string

响应

成功响应

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