Reddit API endpoint
Use Crawlora's Reddit Comments API to extract supported public Reddit data as structured JSON. This page includes request parameters, cURL examples, response schema, error behavior, credit cost, and a Playground link for testing before integration.
/reddit/comments/{id}Returns a Reddit post with its public comments. The default 1-credit mode uses RSS. Set `include_metrics=true` to use the anonymous HTML post page as the sole content request and return the server-rendered comments with public net score and award count plus post engagement metrics for 3 credits. Large threads may expose only an initial comment subset in anonymous HTML. Reddit does not expose per-comment upvote ratios or exact upvote/downvote totals anonymously. A post that exists but has no comments yet returns a 200 response with an empty comments list; a post that does not exist returns 404, and a temporary block or upstream failure returns 503 (retryable) rather than 404. Developers commonly use this endpoint for data enrichment, monitoring, research dashboards, internal automation, and agent-native workflows that need repeatable structured public web data. Authentication uses the documented Crawlora headers, and usage is metered with the credit cost shown on this page.
Request parameters are generated from the active endpoint catalog. Required values must be sent before Crawlora can call the upstream public web data source.
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| id (path) | string | Yes | Reddit post id or t3_ id | ||
| sort | string | No | Comment order: confidence, top, new, controversial, old, or qa. Applied to the anonymous HTML request when metrics are enabled. Allowed values: confidence, top, new, controversial, old, qa | ||
| limit | integer | No | 25 and clamps to 100 | Maximum comments returned, defaults to 25 and clamps to 100 | |
| depth | integer | No | Maximum flat comment depth returned in metrics mode. | ||
| include_metrics | boolean | No | Include public post and per-comment engagement metrics; costs 3 credits instead of 1 | ||
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/reddit/comments/example?sort=confidence&limit=10&include_metrics=true" \ -H "x-api-key: $CRAWLORA_API_KEY"
Send your scraping API key in the x-api-key header. Use the console API Keys page to rotate or select the active key.
Endpoint usage is metered in credits. The plan prices, included credits, limits, and overage rates below match the active backend billing configuration.
| Plan | Price | Included credits | Daily cap | Rate limit | Overage |
|---|---|---|---|---|---|
| Free | $0/mo | 2,000 | 500 daily credits | 5/min | No overage |
| Starter | $9/mo | 20,000 | 5,000 daily credits | 15/min | $0.75/1,000 overage credits when enabled |
| Growth | $29/mo | 100,000 | 25,000 daily credits | 45/min | $0.45/1,000 overage credits when enabled |
| Pro | $79/mo | 400,000 | No daily cap | 120/min | $0.30/1,000 overage credits |
| Business | $199/mo | 1,200,000 | No daily cap | 300/min | $0.20/1,000 overage credits |
| Enterprise | $499/mo | 5,000,000 | No daily cap | 1,000/min | $0.12/1,000 overage credits |
This endpoint is executed through Crawlora's managed scraping infrastructure.
Some targets require real browser execution because the data is loaded through JavaScript, dynamic rendering, or interaction-like browser behavior.
For supported endpoints, Crawlora can route requests through a managed browser cluster. This allows Crawlora to execute JavaScript, load dynamic content, apply browser-level request behavior, and normalize the rendered result into JSON.
You do not need to operate your own Playwright, Puppeteer, Chrome, proxy, queue, or retry infrastructure.
Example response: ```json {"code":200,"msg":"OK","data":{"post":{"id":"1tka90t","name":"t3_1tka90t","score":78,"upvote_ratio":1,"comment_count":15},"comments":[{"id":"on8jv87","name":"t1_on8jv87","parent_id":"t3_1tka90t","body":"well done! I am working on reversing Turnstile as well.","score":7,"award_count":0}],"source":{"type":"html","url":"https://www.reddit.com/comments/1tka90t/"},"metrics_source":{"type":"html","url":"https://www.reddit.com/comments/1tka90t/"}}} ```
Crawlora does not silently return bad data when the upstream page cannot be used.
| Status | Common failure case |
|---|---|
| 400 | Invalid input or missing required parameter |
| 429 | Plan or endpoint rate limit exceeded |
| 500 | Internal execution error |
| 502 | Upstream platform failed, returned unusable HTML, or served a challenge page that could not be resolved |
When possible, Crawlora returns structured error context so your integration can retry, back off, or inspect the request.
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 404 | Not Found | #/definitions/app.Response |
| 429 | Too Many Requests | #/definitions/app.Response |
| 503 | Service Unavailable | #/definitions/app.Response |
{
"code": 200,
"msg": "OK",
"data": {
"post": {
"id": "1tka90t",
"name": "t3_1tka90t",
"score": 78,
"upvote_ratio": 1,
"comment_count": 15
},
"comments": [
{
"id": "on8jv87",
"name": "t1_on8jv87",
"parent_id": "t3_1tka90t",
"body": "well done! I am working on reversing Turnstile as well.",
"score": 7,
"award_count": 0
}
],
"source": {
"type": "html",
"url": "https://www.reddit.com/comments/1tka90t/"
},
"metrics_source": {
"type": "html",
"url": "https://www.reddit.com/comments/1tka90t/"
}
}
}Request schema
No body schema
Response schema
#/definitions/reddit.commentsResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | reddit.CommentsResponse | No | ||||
| data.comments | array | No | ||||
| data.comments[].author | reddit.Author | No | ||||
| data.comments[].author.name | string | No | reddit_user | |||
| data.comments[].author.profile_url | string | No | https://www.reddit.com/user/reddit_user/ | |||
| data.comments[].award_count | integer | No | ||||
| data.comments[].body | string | No | I agree with this post. | |||
| data.comments[].created | string | No | 2024-04-19T00:00:00Z | |||
| data.comments[].created_utc | integer | No | 1713484800 | |||
| data.comments[].depth | integer | No | 1 | |||
| data.comments[].id | string | No | kabc123 | |||
| data.comments[].name | string | No | t1_kabc123 | |||
| data.comments[].parent_id | string | No | t3_1abcxyz | |||
| data.comments[].permalink | string | No | https://www.reddit.com/r/OpenAI/comments/1abcxyz/openai_discussion_thread/kabc123/ | |||
| data.comments[].replies | array | No | ||||
| data.comments[].score | integer | No | ||||
| data.metrics_source | reddit.SourceDetail | No | ||||
| data.metrics_source.type | string | No | rss | |||
| data.metrics_source.url | string | No | https://www.reddit.com/r/OpenAI/.rss | |||
| data.post | reddit.Post | No | ||||
| data.post.author | reddit.Author | No | ||||
| data.post.author.name | string | No | reddit_user | |||
| data.post.author.profile_url | string | No | https://www.reddit.com/user/reddit_user/ | |||
| data.post.award_count | integer | No | ||||
| data.post.comment_count | integer | No | ||||
| data.post.created | string | No | 2024-04-19T00:00:00Z | |||
| data.post.created_utc | integer | No | 1713484800 | |||
| data.post.domain | string | No | self.OpenAI | |||
| data.post.estimated_downvotes | integer | No | ||||
| data.post.estimated_upvotes | integer | No | ||||
| data.post.flair | string | No | Discussion | |||
| data.post.id | string | No | 1abcxyz | |||
| data.post.is_self | boolean | No | ||||
| data.post.is_video | boolean | No | ||||
| data.post.locked | boolean | No | ||||
| data.post.name | string | No | t3_1abcxyz | |||
| data.post.over_18 | boolean | No | ||||
| data.post.permalink | string | No | https://www.reddit.com/r/OpenAI/comments/1abcxyz/openai_discussion_thread/ | |||
| data.post.score | integer | No | ||||
| data.post.selftext | string | No | Discussion body | |||
| data.post.source_feed_url | string | No | https://www.reddit.com/r/OpenAI/.rss | |||
| data.post.stickied | boolean | No | ||||
| data.post.subreddit | string | No | OpenAI | |||
| data.post.thumbnail | string | No | https://b.thumbs.redditmedia.com/example.jpg | |||
| data.post.title | string | No | OpenAI discussion thread | |||
| data.post.upvote_ratio | number | No | ||||
| data.post.url | string | No | https://www.reddit.com/r/OpenAI/comments/1abcxyz/openai_discussion_thread/ | |||
| data.post.vote_counts_estimated | boolean | No | ||||
| data.source | reddit.SourceDetail | No | ||||
| data.source.type | string | No | rss | |||
| data.source.url | string | No | https://www.reddit.com/r/OpenAI/.rss | |||
| msg | string | No | OK |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/reddit/comments/example?sort=confidence&limit=10&include_metrics=true" \
-H "x-api-key: $CRAWLORA_API_KEY"Crawlora is designed for responsible structured public web data workflows. Customers are responsible for using Crawlora in compliance with applicable laws, third-party rights, target-platform rules, and Crawlora terms.
Read Crawlora terms