Datasets API endpoint
Use Crawlora's Search the reddit-trending dataset API to search or inspect stored structured datasets as JSON. This page includes request parameters, cURL examples, response schema, validation behavior, credit cost, and a Playground link for testing before integration. Dataset endpoints read indexed records and do not apply proxy routing.
/datasets/reddit-trending/searchSearches daily snapshots of each tracked subreddit's hot-feed post order, stored in a search index (one document per subreddit × snapshot × rank) so history accumulates. With no `date` the latest snapshot is returned (today's trending); pair `subreddit` with `sort=date_desc` for a subreddit's trending history over time. There is no score or comment-count field — the underlying credential-free scraper does not expose vote counts, so `rank` reflects Reddit's own hot-feed order rather than a locally computed score. Developers commonly use this endpoint for repeatable dataset search, filtering, facets, local business enrichment, analytics, exports, and internal tools that need structured records beyond the limited manual refinement available in the Google Maps app. Authentication uses the x-api-key header, usage is metered with the credit cost shown on this page, and the request does not trigger live scraping or proxy routing.
Request parameters are generated from the active endpoint catalog. Dataset parameters filter, page, facet, or locate stored structured records; they do not configure a live scraper or proxy path.
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| q | string | No | Full-text query over the post title, max 256 characters | ||
| subreddit | string | No | Exact subreddit-name filter, max 128 characters | ||
| date | string | No | the latest snapshot | Snapshot date filter yyyy-MM-dd; defaults to the latest snapshot | |
| sort | string | No | Sort enum: rank, date_desc Allowed values: rank, date_desc | ||
| page | integer | No | 1 | Page number, defaults to 1 | |
| page_size | integer | No | 20 and maxes at 100 | Page size, defaults to 20 and maxes at 100; page * page_size must be <= 10000 | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/datasets/reddit-trending/search?q=coffee&sort=rank&page=1" \ -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 reads stored indexed dataset records. It does not execute a live upstream Google Maps request, browser session, or proxy-routed scraping job.
- With no `date` the latest snapshot is resolved automatically, so the default response is today's trending posts in rank order. - The response echoes the resolved `snapshot_date` so callers know which day was returned. - The maximum result window is `10000`; `page * page_size` must not exceed `10000`. - Invalid enum values return the standard invalid params envelope. - A not-yet-populated index (or a subreddit not yet tracked) returns an empty `items` list rather than an error. - Does not trigger live scraping — for live subreddit posts use `/reddit/subreddit/{subreddit}/posts`. Example response: ```json { "code": 200, "msg": "OK", "data": { "dataset": "reddit-trending", "items": [ { "post_uid": "webscraping:2026-07-27:1", "subreddit": "webscraping", "snapshot_date": "2026-07-27", "rank": 1, "post_id": "1v7p3i7", "title": "I own a wood factory and want to use webscrapers to get info", "author": "Thin-Application-575", "permalink": "https://www.reddit.com/r/webscraping/comments/1v7p3i7/i_own_a_wood_factory_and_want_to_use_webscrapers/", "url": "https://www.reddit.com/r/webscraping/comments/1v7p3i7/i_own_a_wood_factory_and_want_to_use_webscrapers/", "domain": "self.webscraping", "created_utc": 1785123567 } ], "snapshot_date": "2026-07-27", "page": 1, "page_size": 20, "total": 10, "sort": "rank" } } ```
Crawlora does not silently return invalid dataset search results when filters, pagination, coordinates, or stored record lookups cannot be satisfied.
| Status | Common failure case |
|---|---|
| 400 | Invalid input, missing required parameter, invalid enum, bad coordinate pair, or result window beyond the dataset limit |
| 404 | Requested stored dataset item is not present |
| 429 | Plan or endpoint rate limit exceeded |
| 500 | Internal dataset query or storage error |
When possible, Crawlora returns structured error context so your integration can adjust filters, page size, location inputs, or lookup identifiers.
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 429 | Too Many Requests | #/definitions/app.Response |
| 500 | Internal Server Error | #/definitions/app.Response |
{
"code": 200,
"msg": "OK",
"data": {
"dataset": "reddit-trending",
"items": [
{
"post_uid": "webscraping:2026-07-27:1",
"subreddit": "webscraping",
"snapshot_date": "2026-07-27",
"rank": 1,
"post_id": "1v7p3i7",
"title": "I own a wood factory and want to use webscrapers to get info",
"author": "Thin-Application-575",
"permalink": "https://www.reddit.com/r/webscraping/comments/1v7p3i7/i_own_a_wood_factory_and_want_to_use_webscrapers/",
"url": "https://www.reddit.com/r/webscraping/comments/1v7p3i7/i_own_a_wood_factory_and_want_to_use_webscrapers/",
"domain": "self.webscraping",
"created_utc": 1785123567
}
],
"snapshot_date": "2026-07-27",
"page": 1,
"page_size": 20,
"total": 10,
"sort": "rank"
}
}Request schema
No body schema
Response schema
#/definitions/datasets.redditTrendingSearchResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | datasets.RedditTrendingSearchResponse | No | ||||
| data.dataset | string | No | ||||
| data.items | array | No | ||||
| data.items[].author | string | No | ||||
| data.items[].crawled_at | string | No | ||||
| data.items[].created_utc | integer | No | ||||
| data.items[].domain | string | No | ||||
| data.items[].permalink | string | No | ||||
| data.items[].post_id | string | No | ||||
| data.items[].post_uid | string | No | ||||
| data.items[].rank | integer | No | ||||
| data.items[].snapshot_date | string | No | ||||
| data.items[].subreddit | string | No | ||||
| data.items[].title | string | No | ||||
| data.items[].url | string | No | ||||
| data.page | integer | No | ||||
| data.page_size | integer | No | ||||
| data.snapshot_date | string | No | ||||
| data.sort | string | No | ||||
| data.total | integer | No | ||||
| 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/datasets/reddit-trending/search?q=coffee&sort=rank&page=1" \
-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