データ API / Reddit / Subreddit
Subreddit Details
Returns metadata about one subreddit, by name or by URL: subreddit_id, display_name, subscribers, weekly_active_users, weekly_contributions, description, rules, icon_img, header_img, advertiser_category, submit_text and created_at. Use it to size a community or read its rules before posting anything elsewhere. The name is case-sensitive, so AskReddit resolves and askreddit does not. It returns no posts at all: for those call get_reddit_subreddit, or get_reddit_subreddit_search to query within the community.
パラメータ
クエリ
subredditstring任意Subreddit name. MUST be case sensitive. So 'AskReddit' not 'askreddit'.
urlstring任意Subreddit URL
リクエスト例
curl -X GET "https://openapi.felo.ai/v1/beta/reddit/subreddit/details" \
-H "Authorization: Bearer $FELO_API_KEY"レスポンス
レスポンス例
{
"success": true,
"credits_remaining": 33950256,
"subreddit_id": "t5_a7wuv",
"display_name": "AbsoluteUnits",
"weekly_active_users": 1428398,
"weekly_contributions": 8923,
"rules": "#ABSOLUTE UNITS\n\n---\n\n Be in awe at the size of these lads\n\n---\n\n###[Check out our deep, well-reflected definitions of an absolute unit.](https://www.reddit.com/r/AbsoluteUnits/wiki/index) ",
"description": "Absolute Unit : an Animal or Public Figure, who is larger than we should normally expect.",
"header_img": null,
"icon_img": "https://styles.redditmedia.com/t5_a7wuv/styles/communityIcon_t3cspt08bl681.png?width=128&frame=1&auto=webp&s=6f7e59ccf1724bd6c8b3e0d2840c9b21297102c3",
"subscribers": 1923642,
"advertiser_category": "",
"created_at": "2018-01-05T10:35:24.000Z",
"submit_text": ""
}レスポンスのフィールド
successboolean任意credits_remaininginteger任意subreddit_idstring任意display_namestring任意descriptionstring任意subscribersinteger任意weekly_active_usersinteger任意weekly_contributionsinteger任意rules任意Community rules as structured entries or formatted text.