Datasets API endpoint
Returns up to 50 chart-rank facet buckets ordered by count, using the same filters as `datasets_apps_charts_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 when applicable and full history for a single app or date_desc sort. Facet enum: `store`, `collection`, `chart_type`, `platform`, `category`, `country`, `app_id`, `snapshot_date`, `free`. Store enum: `ios`, `android`. Chart type enum: `top_free`, `top_paid`, `top_grossing`, `new`. Platform enum: `phone`, `pad`, `mac`.
/datasets/apps-charts/facetsMCP tool: datasets_apps_charts_facets
Returns up to 50 value counts, ordered by count, over stored daily App Store and
Google Play chart rows. Facets honor the filters used by
datasets_apps_charts_search.
Required facet: store, collection, chart_type, platform, category,
country, app_id, snapshot_date, or free. When facet=snapshot_date and
date is omitted, counts span all stored history. Other facets use the same
date scope as search: the latest snapshot by default when applicable, full
history for a single app or sort=date_desc, and only the requested day when
date is supplied.
Optional filters: q, store, collection, chart_type, platform,
category, country, app_id, date, free, and sort. Store values are
ios, android; chart types are top_free, top_paid, top_grossing, new;
iOS platform values are phone, pad, mac; sort values are rank,
rank_desc, date_desc. page and page_size are accepted for contract
parity; counts cover every matching snapshot row, not one result page.
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: store, collection, chart_type, platform, category, country, app_id, snapshot_date, free. | collection | |
| q | string | No | Full-text query | ||
| store | string | No | Store enum: ios, android Allowed values: ios, android. | ||
| collection | string | No | Raw store collection id filter (e.g. topgrossingapplications, GROSSING), max 128 characters | ||
| chart_type | string | No | Chart type enum: top_free, top_paid, top_grossing, new Allowed values: top_free, top_paid, top_grossing, new. | ||
| platform | string | No | Apple device platform enum (iOS charts only): phone, pad, mac Allowed values: phone, pad, mac. | ||
| category | string | No | Exact store category | ||
| country | string | No | Storefront country | ||
| app_id | string | No | Exact store app id | ||
| date | string | No | Chart snapshot date, yyyy-MM-dd | ||
| free | boolean | No | Filter by free/paid status | ||
| sort | string | No | Validated search sort; bucket order stays count-desc, and time-series date_desc keeps its search history scope Allowed values: rank, rank_desc, date_desc. | ||
| 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/apps-charts/facets?facet=collection&q=coffee&store=ios&chart_type=top_free&platform=phone&country=us&free=true&sort=rank&page=1" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"dataset": "apps-charts",
"facet": "collection",
"items": [
{
"value": "GROSSING",
"count": 10
}
]
}
}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/apps-charts/facets?facet=collection&q=coffee&store=ios&chart_type=top_free&platform=phone&country=us&free=true&sort=rank&page=1" \
-H "x-api-key: $CRAWLORA_API_KEY"