Driving statistics over a period
toyota_get_trip_summaryRetrieve aggregated driving statistics for a calendar period or rolling window, including average consumption, EV-mode share, and total distance. Use to monitor trends by day, week, month, or year.
Instructions
Aggregated driving statistics over a rolling window or a calendar period.
Use for: average consumption over the last 7 days, EV-mode share this month, total distance this year. Consumption is recomputed over the whole window (total fuel vs total distance), not a mean of daily means. Pass period to match the app's calendar figures.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Calendar days to cover, ending today (inclusive). | |
| period | No | Calendar period as shown in the MyToyota app (today, this_week, this_month, this_year); overrides days. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Set when the window contains no trips. | |
| period | No | Set when the window is a calendar period (as in the app). | |
| countries | Yes | ISO 3166-1 alpha-2 codes of countries driven in. | |
| freshness | Yes | ||
| window_to | Yes | ||
| ev_distance | Yes | ||
| window_from | Yes | ||
| average_speed | No | ||
| fuel_consumed | Yes | ||
| total_distance | Yes | ||
| ev_ratio_percent | No | Share of the distance driven in electric mode. | |
| days_with_driving | Yes | ||
| ev_duration_hours | No | ||
| average_consumption | No | Recomputed over the whole window (total fuel vs total distance). | |
| total_duration_hours | Yes | ||
| ev_time_ratio_percent | No | Share of the driving time spent in electric mode. |