Felo API PlatformFelo API Platform
全部 Reddit 端点
v0.2.0-beta
OpenAPI 3.1.0

Subreddit 帖子

服务器:https://openapi.felo.ai
客户端库

Reddit

​

Public communities, posts, comments and search.

Subreddit 帖子

​

返回单个 subreddit 的帖子流,并提供用于分页的 after 令牌。帖子携带与 get_reddit_search 相同的字段,包括 title、author、selftext、score、ups、upvote_ratio、num_comments、created_utc、created_at_iso、url、permalink 和 subreddit_subscribers。sort 接受 best、hot、new、top 和 rising。重要:timeframe 只能与 sort=top 一起使用,其他任何组合都会返回 400,而不是忽略该参数。subreddit 名称区分大小写。要在同一 subreddit 内搜索,请使用 get_reddit_subreddit_search;要获取其元数据,请使用 get_reddit_subreddit_details。

计费参考

  • 计量方式:按结果数量计量。
  • 参考请求估算:0.00188 美元。
  • 参考客户倍率:1.0。不得对已结算的客户金额再次应用。

仅供参考的元数据,不是账户报价、保证价格或消费上限。资源额度不同于 Felo 额度。最终扣费以 Felo 计费记录为准。

查询参数
  • after
    类型: string
  • cache_max_age
    类型: string
  • sort
    类型: string
  • subreddit
    类型: string
  • timeframe
    类型: string
  • trim
    类型: string
响应
  • 200
    类型: object · Response799D183Abaf0_RedditPostsResponse

    成功响应

    • after
      类型: string | null
    • credits_remaining
      类型: integer

      Integer numbers.

    • cursor
      类型: string | null
    • posts
      类型: array object[] · Response799D183Abaf0_RedditPost[]
      • propertyName
        类型: anything
    • success
      类型: boolean
    • propertyName
      类型: anything
    application/json
  • 400

    无法处理该请求。请检查请求参数。

  • 401

    需要有效的 Felo API 密钥。

  • 402

    由于未满足计费要求,请求无法继续。

  • 403

    该账户无权执行此操作。

  • 429

    已达到请求或支出限额。

  • 502

    服务无法完成该请求。

  • 503

    API 或计费服务暂时不可用。

  • 504

    服务在处理请求时超时。

  • default

    错误响应;上游透传响应可能采用提供方格式

    application/json
Request Example for get/v1/beta/reddit/subreddit
curl https://openapi.felo.ai/v1/beta/reddit/subreddit \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
  "posts": [
    {
      "id": "1lfbo7u",
      "author": "Vetro_Nodulare2",
      "author_fullname": "t2_16syu27ar1",
      "subreddit": "AskReddit",
      "title": "What is a thing you love that lots of people hate?",
      "downs": 0,
      "name": "t3_1lfbo7u",
      "upvote_ratio": 0.9,
      "ups": 45,
      "total_awards_received": 0,
      "score": 45,
      "created": 1750341959,
      "num_comments": 349,
      "url": "https://www.reddit.com/r/AskReddit/comments/1lfbo7u/what_is_a_thing_you_love_that_lots_of_people_hate/",
      "subreddit_subscribers": 56146328,
      "is_video": false,
      "created_utc": 1750341959
    }
  ],
  "after": "t3_1lfogps"
}
Subreddit Posts

需要帮助?