Public communities, posts, comments and search.
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.
- Тип: stringsubreddit
Subreddit name. MUST be case sensitive. So 'AskReddit' not 'askreddit'.
- Тип: stringurl
Subreddit URL
- Тип: object · RedditSubredditDetailsResponse200
Successful response
- Тип: integercredits
_remaining Integer numbers.
- Тип: stringdescription
- Тип: stringdisplay
_name - Тип: array object[] | stringrules
Community rules as structured entries or formatted text.
- propertyТип: anything
Name
- Тип: stringsubreddit
_id - Тип: integersubscribers
Integer numbers.
- Тип: booleansuccess
- Тип: integerweekly
_active _users Integer numbers.
- Тип: integerweekly
_contributions Integer numbers.
- Тип: 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/subreddit/details \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
"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": ""
}