데이터 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.