Reddit
List Reddit subreddit comments
Returns flat public comment entries from a subreddit latest-comments feed. 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}/comments
Request
- Base URL: https://api.crawlora.net/api/v1
- URL: https://api.crawlora.net/api/v1/reddit/subreddit/{subreddit}/comments
- Auth: API key in header x-api-key
Path parameters
subredditstring required
Subreddit name, without r/
Query parameters
limitinteger
Maximum comments, defaults to 25 and clamps to 100
afterstring
Reddit pagination token
Headers
x-api-keystring required
API key required
Response
OK
Example response
{
"code": 200,
"data": {
"comments": [
{
"author": {
"name": "reddit_user",
"profile_url": "https://www.reddit.com/user/reddit_user/"
},
"body": "I agree with this post.",
"created": "2024-04-19T00:00:00Z",
"created_utc": 1713484800,
"depth": 1,
"id": "kabc123",
"name": "t1_kabc123",
"parent_id": "t3_1abcxyz",
"permalink": "https://www.reddit.com/r/OpenAI/comments/1abcxyz/openai_discussion_thread/kabc123/"
}
],
"pagination": {
"after": "t3_1abcxyz",
"limit": 25
},
"source": {
"type": "rss",
"url": "https://www.reddit.com/r/OpenAI/.rss"
},
"subreddit": "OpenAI"
},
"msg": "OK"
}Changes
No recorded changes to this operation across all 2 revisions of this API.