Datasets API endpoint
Returns up to 50 Steam news app-id buckets ordered by count, using the same full-text query and app_id filter as `datasets_steam_news_search`. Page and page_size do not change the aggregation.
/datasets/steam-news/facetsMCP tool: datasets_steam_news_facets
Returns up to 50 app-id counts, ordered by count, over the stored Steam news
corpus. Facets honor the same full-text query and app-id filter as
datasets_steam_news_search.
Required facet: app_id.
Optional filters: q, app_id, and sort. Sort values are date_desc and
date_asc. page and page_size are accepted for contract parity; counts
cover all matching news records.
Sort values are validated against the corresponding search endpoint, but do not reorder facet results; buckets are always ordered by count.
Requires the x-api-key header. Costs 1 credit. An empty dataset returns an
empty items array.
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| facet | string | Yes | Facet field Allowed values: app_id. | app_id | |
| q | string | No | Full-text news-title/body query | ||
| app_id | string | No | Exact Steam app id | ||
| sort | string | No | Validated search sort; bucket order stays count-desc, and time-series date_desc keeps its search history scope Allowed values: date_desc, date_asc. | ||
| page | integer | No | Result page, 1-based | ||
| page_size | integer | No | Page size, default 20 and max 100 | ||
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/datasets/steam-news/facets?facet=app_id&q=coffee&sort=date_desc&page=1" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"dataset": "steam-news",
"facet": "app_id",
"items": [
{
"value": "730",
"count": 50
}
]
}
}Request schema
No body schema
Response schema
#/definitions/datasets.datasetFacetResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | datasets.DatasetFacetResponse | No | ||||
| data.dataset | string | No | ||||
| data.facet | string | No | ||||
| data.items | array | No | ||||
| data.items[].count | integer | No | ||||
| data.items[].value | string | No | ||||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 429 | Too Many Requests | #/definitions/app.Response |
| 500 | Internal Server Error | #/definitions/app.Response |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/datasets/steam-news/facets?facet=app_id&q=coffee&sort=date_desc&page=1" \
-H "x-api-key: $CRAWLORA_API_KEY"