datasets_apps_charts_facets
Return up to 50 facet buckets with counts for one apps-charts field using the filters from datasets_apps_charts_search. facet accepts store, collection, chart_type, platform, category, country, app_id, snapshot_date, or free; page and page_size do not change counts; sort is validated but does not change bucket order. A snapshot_date facet without date spans all history. Other facets use the same search date scope: latest snapshot by default when applicable, full history for a single-app filter or sort=date_desc, and only the requested day when date is supplied. Use datasets_apps_charts_search to find chart records.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"facet": "<facet>"
},
"name": "datasets_apps_charts_facets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Optional full-text query over chart-entry title and developer, max 256 characters. | |
| date | No | Optional snapshot date filter, yyyy-MM-dd. Defaults to the latest available snapshot (today's chart). | |
| page | No | Result page number, 1-based, default 1; page times page_size must not exceed 10000. | |
| sort | No | Optional sort order. Allowed values: rank (chart order), rank_desc, date_desc (rank over time). Defaults to rank. | |
| facet | Yes | required,Required facet. Allowed values: store, collection, chart_type, platform, category, country, app_id, snapshot_date, free. | |
| store | No | Optional store filter. Allowed values: ios, android. | |
| app_id | No | Optional exact app filter — the iOS numeric track id or the Android package name; pair with sort=date_desc for an app's rank history. | |
| country | No | Optional storefront country filter, max 128 characters, e.g. us. | |
| category | No | Optional store category/genre filter, max 128 characters. Empty for the overall (all-category) charts. | |
| platform | No | Optional Apple device-platform filter, iOS charts only. Allowed values: phone, pad, mac. | |
| page_size | No | Page size, default 20, max 100; page times page_size must not exceed 10000. | |
| chart_type | No | Optional chart filter. Allowed values: top_free, top_paid, top_grossing, new. | |
| collection | No | Optional raw store collection id filter (e.g. topgrossingapplications, GROSSING), max 128 characters. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | The tool result payload (shape varies per tool; see each tool's docs resource). |