Felo API PlatformFelo API Platform
v0.1.0-beta
OpenAPI 3.1.0

Search Reddit

サーバー:https://openapi.felo.ai
クライアントライブラリ

Reddit

​

Public communities, posts, comments and search.

Search Reddit

​

Searches every public subreddit for posts matching a query and returns posts plus an after token to page. Each post carries title, author, selftext, selftext_html, subreddit, score, ups, downs, upvote_ratio, num_comments, created_utc, created_at_iso, url, permalink, subreddit_subscribers, is_video, over_18 and spoiler. sort accepts relevance, new, top and comment_count, and timeframe narrows the window. To stay inside one community use get_reddit_subreddit_search, which is faster and pages with cursor rather than after; to read one post's discussion use get_reddit_post_comments.

クエリパラメーター
  • query
    型: string
    必須

    Search query

  • sort
    型: string 列挙値

    Sort by

    値
    • relevance
    • new
    • top
    • comment_count
  • timeframe
    型: string 列挙値

    Timeframe

    値
    • all
    • day
    • week
    • month
    • year
  • after
    型: string

    Used to paginate to next page

  • trim
    型: boolean

    Set to true for a trimmed down version of the response

レスポンス
  • 200
    型: object · RedditPostsResponse

    Successful response

    • after
      型: string null 許容
    • credits_remaining
      型: integer

      Integer numbers.

    • cursor
      型: string null 許容
    • posts
      型: array object[] · RedditPost[]
      • propertyName
        型: anything
    • success
      型: boolean
    • propertyName
      型: anything
    application/json
  • 400

    The request could not be processed. Check the request parameters.

  • 401

    A valid Felo API key is required.

  • 402

    The request cannot proceed because a billing requirement is not met.

  • 403

    The account is not permitted to perform this operation.

  • 429

    A request or spending limit has been reached.

  • 502

    The service could not complete the request.

  • 503

    The API or billing service is temporarily unavailable.

  • 504

    The service timed out while processing the request.

  • default

    The operation failed. Keep the response request ID when contacting Felo support.

Request Example for get/v1/beta/reddit/search
curl 'https://openapi.felo.ai/v1/beta/reddit/search?query=' \
  --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"
}
Search Reddit