get_stats_history
Retrieve detailed historical alert records with filtering by date, city, category, and origin, including sorting and pagination for efficient data analysis.
Instructions
Get detailed historical alert records with full city data, filtering, sorting, and pagination
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| startDate | No | ISO 8601 date to filter from | |
| endDate | No | ISO 8601 date to filter until | |
| limit | No | Number of alerts to return (1-100, default 20) | |
| offset | No | Number of results to skip for pagination | |
| cityId | No | Filter by city ID (exact match) | |
| cityName | No | Filter by city name in Hebrew (exact match) | |
| search | No | Search by city name (partial match, 1-100 chars) | |
| category | No | Filter by alert type (e.g. missiles, drones, earthquakes) | |
| origin | No | Filter by origin(s), comma-separated | |
| sort | No | Sort results by field (default: timestamp) | |
| order | No | Sort direction (default: desc) | |
| include | No | Comma-separated: translations, coords, polygons |