Endpoint Playground
Returns up to 50 Reddit trending-facet buckets ordered by count, using the same filters as `datasets_reddit_trending_search`. Page and page_size do not change the aggregation. A snapshot_date facet without date spans all history; other facets use the search date scope, including the latest-snapshot default and full history for date_desc sort. Dataset Playground requests query indexed data and do not apply proxy routing.
curl 'https://api.crawlora.net/api/v1/datasets/reddit-trending/facets?facet=subreddit&sort=rank' \
-H "x-api-key: $CRAWLORA_API_KEY"| Parameter | Type | Required | Prefilled value | Description |
|---|---|---|---|---|
| facet | string | Yes | subreddit | Facet field |
| q | string | No | Full-text post-title query | |
| subreddit | string | No | Exact subreddit name | |
| date | string | No | Snapshot date, yyyy-MM-dd | |
| sort | string | No | rank | Validated search sort; bucket order stays count-desc, and time-series date_desc keeps its search history scope |
| page | integer | No | Result page, 1-based | |
| page_size | integer | No | Page size, default 20 and max 100 |
{
"code": 200,
"msg": "OK",
"data": {
"dataset": "reddit-trending",
"facet": "subreddit",
"items": [
{
"value": "webscraping",
"count": 25
}
]
}
}The sample response, schema and code snippets below work without an account. Sending a live request needs an API key.