get_alerts_history
Query historical alerts for bike-share stations, filtering by station, type, severity, and time range to uncover patterns like how often a station runs out of bikes.
Instructions
Query historical alerts (resolved and active) with filters by station, alert type, severity, and time range. This is the tool for "how often has station X run out of bikes" style questions. Requesting format=csv or a limit above 500 rows requires BIZI_PUBLIC_API_KEY to be configured.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End datetime, ISO 8601. | |
| from | No | Start datetime, ISO 8601. | |
| limit | No | Rows per page. Defaults to 200. Values above 500 require BIZI_PUBLIC_API_KEY. | |
| state | No | Filter by alert state. Defaults to all. | |
| format | No | Response format. csv requires BIZI_PUBLIC_API_KEY. Defaults to json. | |
| offset | No | Pagination offset. Defaults to 0. | |
| severity | No | Filter by severity (1=media, 2=critica). | |
| alertType | No | Filter by alert type. Defaults to all. | |
| stationId | No | Filter by a specific station id. |