Reddit API endpoint
Use Crawlora's Reddit Leads 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/leadsScans a Reddit search page for people actively asking for a product or service, scores each post 0-10 for buying intent, and returns them ranked highest-first with the signals that fired. Self-promotion, hiring posts, freelancer service adverts, revenue-milestone posts, duplicate reposts, and Title Case article headlines are filtered out before scoring. A deterministic prefilter always runs; when `classifier` resolves to `llm` the surviving candidates are additionally refined in one batched model call. A `503` with a `Retry-After` header means Reddit is temporarily throttling the request; wait that many seconds and retry. 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 |
|---|---|---|---|---|---|
| q | string | Yes | What you offer, in plain language | ||
| subreddit | string | No | Restrict the search to a subreddit name, without r/ | ||
| sort | string | No | Sort: relevance, hot, new, top, or comments Allowed values: relevance, hot, new, top, comments | ||
| time | string | No | Time window: hour, day, week, month, year, or all Allowed values: hour, day, week, month, year, all | ||
| limit | integer | No | 25 and clamps to 100 | Maximum leads returned, defaults to 25 and clamps to 100 | |
| min_score | integer | No | 4 | Minimum buying-intent score to return, 0-10, defaults to 4 | |
| classifier | string | No | Classifier: auto uses the model when configured, heuristic skips it, llm requires it Allowed values: auto, heuristic, llm | ||
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/reddit/leads?q=coffee&sort=relevance&time=hour&limit=10&classifier=auto" \ -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.
Provider configuration: the model pass resolves its base URL from `REDDIT_LEADS_LLM_BASE`, then the shared `OPENAI_API_BASE`, then `https://api.openai.com/v1`. It also reads `REDDIT_LEADS_LLM_MODEL` (defaults to `gpt-5.4-mini`) and `REDDIT_LEADS_LLM_KEY` (falls back to `OPENAI_API_KEY`). Set `REDDIT_LEADS_LLM_BASE` to route this endpoint to a different provider than the rest of the deployment. Example response: ```json {"code":200,"msg":"OK","data":{"query":"crm for small teams","subreddit":"smallbusiness","classifier":"llm","model":"gpt-5.4-mini","min_score":4,"leads":[{"score":9,"signals":[{"id":"explicit-ask","label":"asking for a tool"},{"id":"budget","label":"budget or paying"}],"reason":"states a budget and asks for options","title":"Looking for a CRM for a 3-person team, budget ~$50/mo","subreddit":"smallbusiness","author":"someuser","permalink":"https://www.reddit.com/r/smallbusiness/comments/1abcxyz/","comment_count":12,"post_score":20,"created":"2026-08-01T00:00:00Z"}],"stats":{"scanned":100,"prefiltered":88,"classified":12,"returned":9}}} ```
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": {
"query": "crm for small teams",
"subreddit": "smallbusiness",
"classifier": "llm",
"model": "gpt-5.4-mini",
"min_score": 4,
"leads": [
{
"score": 9,
"signals": [
{
"id": "explicit-ask",
"label": "asking for a tool"
},
{
"id": "budget",
"label": "budget or paying"
}
],
"reason": "states a budget and asks for options",
"title": "Looking for a CRM for a 3-person team, budget ~$50/mo",
"subreddit": "smallbusiness",
"author": "someuser",
"permalink": "https://www.reddit.com/r/smallbusiness/comments/1abcxyz/",
"comment_count": 12,
"post_score": 20,
"created": "2026-08-01T00:00:00Z"
}
],
"stats": {
"scanned": 100,
"prefiltered": 88,
"classified": 12,
"returned": 9
}
}
}Request schema
No body schema
Response schema
#/definitions/reddit.leadsResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | redditleads.Response | No | ||||
| data.classifier | string | No | llm | |||
| data.leads | array | No | ||||
| data.leads[].author | string | No | someuser | |||
| data.leads[].comment_count | integer | No | 12 | |||
| data.leads[].created | string | No | 2026-08-01T00:00:00Z | |||
| data.leads[].permalink | string | No | https://www.reddit.com/r/smallbusiness/comments/1abcxyz/ | |||
| data.leads[].post_score | integer | No | 20 | |||
| data.leads[].reason | string | No | Asking for a CRM and states a monthly budget. | |||
| data.leads[].score | integer | No | 9 | |||
| data.leads[].signals | array | No | ||||
| data.leads[].signals[].id | string | No | explicit-ask | |||
| data.leads[].signals[].label | string | No | asking for a tool | |||
| data.leads[].subreddit | string | No | smallbusiness | |||
| data.leads[].title | string | No | Looking for a CRM for a 3-person team, budget ~$50/mo | |||
| data.min_score | integer | No | 4 | |||
| data.model | string | No | gpt-5.4-mini | |||
| data.query | string | No | crm for small teams | |||
| data.stats | redditleads.Stats | No | ||||
| data.stats.classified | integer | No | 12 | |||
| data.stats.prefiltered | integer | No | 88 | |||
| data.stats.returned | integer | No | 9 | |||
| data.stats.scanned | integer | No | 100 | |||
| data.subreddit | string | No | smallbusiness | |||
| 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/leads?q=coffee&sort=relevance&time=hour&limit=10&classifier=auto" \
-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