Public communities, posts, comments and search.
Reddit 操作
搜索 Reddit
使用文档记载的 query、count、limit、time 和裁剪控制项搜索公开 Reddit 内容。本契约未声明 after 令牌;响应中的分页字段不是额外支持的输入。
计费参考
- 计量方式:按结果数量计量。
- 参考请求估算:0.00188 美元。
- 参考客户倍率:1.0。不得对已结算的客户金额再次应用。
仅供参考的元数据,不是账户报价、保证价格或消费上限。资源额度不同于 Felo 额度。最终扣费以 Felo 计费记录为准。
查询参数
- 类型: stringcount
- 类型: stringlimit
- 类型: stringquery
- 类型: stringsort
- 类型: stringtime
- 类型: stringtimeframe
- 类型: stringtrim
- 类型: stringtrimmed
响应
- 类型: object · Response799D183Abaf0_RedditPostsResponse200
成功响应
- 类型: string | nullafter
- 类型: integercredits
_remaining Integer numbers.
- 类型: string | nullcursor
- 类型: array object[] · Response799D183Abaf0_RedditPost[]posts
- property类型: anything
Name
- 类型: booleansuccess
- 类型: anythingproperty
Name
application/json - 400
无法处理该请求。请检查请求参数。
- 401
需要有效的 Felo API 密钥。
- 402
由于未满足计费要求,请求无法继续。
- 403
该账户无权执行此操作。
- 429
已达到请求或支出限额。
- 502
服务无法完成该请求。
- 503
API 或计费服务暂时不可用。
- 504
服务在处理请求时超时。
- default
错误响应;上游透传响应可能采用提供方格式
application/json
Request Example for get/v1/beta/reddit/search
curl https://openapi.felo.ai/v1/beta/reddit/search \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
"success": true,
"posts": [
{
"id": "w63dgy",
"author": "Morgentau7",
"author_fullname": "t2_2hy2xjit",
"subreddit": "MadeMeSmile",
"title": "Player realizes that he nearly stole the dogs job",
"downs": 0,
"name": "t3_w63dgy",
"upvote_ratio": 0.97,
"ups": 220403,
"total_awards_received": 0,
"score": 220403,
"created": 1658580900,
"num_comments": 1246,
"url": "https://www.reddit.com/r/MadeMeSmile/comments/w63dgy/player_realizes_that_he_nearly_stole_the_dogs_job/",
"subreddit_subscribers": 11605207,
"is_video": true,
"created_utc": 1658580900
}
],
"after": "t3_1izmcgx"
}