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.
- 型: stringquery必須
Search query
- 型: string 列挙値sort
Sort by
値- relevance
- new
- top
- comment
_count
- 型: string 列挙値timeframe
Timeframe
値- all
- day
- week
- month
- year
- 型: stringafter
Used to paginate to next page
- 型: booleantrim
Set to true for a trimmed down version of the response
- 型: object · RedditPostsResponse200
Successful response
- 型: string null 許容after
- 型: integercredits
_remaining Integer numbers.
- 型: string null 許容cursor
- 型: array object[] · RedditPost[]posts
- property型: anything
Name
- 型: booleansuccess
- 型: anythingproperty
Name
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.
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"
}