Endpoint Playground
Test Crawlora's Reddit Subreddit Posts API with realistic prefilled parameters. Generate a cURL request, inspect the expected structured JSON response, and open the full docs or pricing page when you are ready to integrate this public web data extraction endpoint into your application.
curl "https://api.crawlora.net/api/v1/reddit/subreddit/<subreddit>/posts?sort=hot&time=hour" \
-H "x-api-key: $CRAWLORA_API_KEY"| Parameter | Type | Required | Prefilled value | Description |
|---|---|---|---|---|
| subreddit (path) | string | Yes | Subreddit name, without r/ | |
| sort | string | No | hot | Sort: hot, new, top, or rising |
| time | string | No | hour | Time window for top sort: hour, day, week, month, year, or all |
| limit | integer | No | Maximum posts, defaults to 25 and clamps to 100 | |
| after | string | No | Reddit pagination token |
{
"code": 200,
"msg": "OK",
"data": {
"subreddit": "OpenAI",
"sort": "hot",
"posts": [
{
"id": "1abcxyz",
"name": "t3_1abcxyz",
"subreddit": "OpenAI",
"title": "OpenAI discussion thread",
"url": "https://www.reddit.com/r/OpenAI/comments/1abcxyz/openai_discussion_thread/",
"author": {
"name": "sample_user",
"profile_url": "https://www.reddit.com/user/sample_user/"
},
"created": "2024-04-19T00:00:00Z",
"selftext": "Discussion body",
"source_feed_url": "https://www.reddit.com/r/OpenAI?limit=25"
}
],
"pagination": {
"limit": 25,
"after": "t3_1abcxyz"
},
"source": {
"type": "feed",
"url": "https://www.reddit.com/r/OpenAI?limit=25"
}
}
}Public Playground
Sample responses, schemas, request previews, and code snippets are visible before sign in. Create an account when you are ready to save an API key and run authenticated requests.
Returns normalized public posts from a subreddit.
{
"code": 200,
"msg": "OK",
"data": {
"subreddit": "OpenAI",
"sort": "hot",
"posts": [
{
"id": "1abcxyz",
"name": "t3_1abcxyz",
"subreddit": "OpenAI",
"title": "OpenAI discussion thread",
"url": "https://www.reddit.com/r/OpenAI/comments/1abcxyz/openai_discussion_thread/",
"author": {
"name": "sample_user",
"profile_url": "https://www.reddit.com/user/sample_user/"
},
"created": "2024-04-19T00:00:00Z",
"selftext": "Discussion body",
"source_feed_url": "https://www.reddit.com/r/OpenAI?limit=25"
}
],
"pagination": {
"limit": 25,
"after": "t3_1abcxyz"
},
"source": {
"type": "feed",
"url": "https://www.reddit.com/r/OpenAI?limit=25"
}
}
}curl "https://api.crawlora.net/api/v1/reddit/subreddit/<subreddit>/posts" \
-H "x-api-key: $CRAWLORA_API_KEY"