Reddit
Get Reddit subreddit metadata
Returns public metadata and sample posts for a subreddit. Subscriber counts, icons, and banners are omitted because they are not available on anonymous Reddit pages. A 503 with a Retry-After header means Reddit is temporarily throttling the request; wait that many seconds and retry. If source.type is redlib, public fields and credit weights are preserved.
get/reddit/subreddit/{subreddit}/about
Request
- Base URL: https://api.crawlora.net/api/v1
- URL: https://api.crawlora.net/api/v1/reddit/subreddit/{subreddit}/about
- Auth: API key in header x-api-key
Path parameters
subredditstring required
Subreddit name, without r/
Query parameters
limitinteger
Maximum sample posts inspected, defaults to 25 and clamps to 100
Headers
x-api-keystring required
API key required
Response
OK
Example response
{
"code": 200,
"data": {
"display_name": "r/OpenAI",
"feed_url": "https://www.reddit.com/r/OpenAI.rss?limit=10",
"latest_post_created": "2024-04-19T00:00:00Z",
"latest_post_created_utc": 1713484800,
"public_url": "https://www.reddit.com/r/OpenAI/",
"recent_post_count": 10,
"sample_posts": [
{
"author": {
"name": "reddit_user",
"profile_url": "https://www.reddit.com/user/reddit_user/"
},
"created": "2024-04-19T00:00:00Z",
"created_utc": 1713484800,
"domain": "self.OpenAI",
"flair": "Discussion",
"id": "1abcxyz",
"name": "t3_1abcxyz",
"permalink": "https://www.reddit.com/r/OpenAI/comments/1abcxyz/openai_discussion_thread/",
"selftext": "Discussion body",
"source_feed_url": "https://www.reddit.com/r/OpenAI/.rss",
"subreddit": "OpenAI",
"thumbnail": "https://b.thumbs.redditmedia.com/example.jpg",
"title": "OpenAI discussion thread",
"url": "https://www.reddit.com/r/OpenAI/comments/1abcxyz/openai_discussion_thread/"
}
],
"source": {
"type": "rss",
"url": "https://www.reddit.com/r/OpenAI/.rss"
},
"subreddit": "OpenAI",
"title": "OpenAI"
},
"msg": "OK"
}Changes
No recorded changes to this operation across all 2 revisions of this API.