Get fuel data
get_fuel_dataRetrieve fuel level and consumption for any date range, for the whole fleet or a single vehicle; defaults to the previous 24 hours.
Instructions
Fuel level and consumption for a date range, fleet-wide or for one vehicle. Defaults to the previous 24 hours. When no registration is given, fetches the whole fleet in one batch (Cartrack's bulk endpoints, capped at 100 vehicles and a 24-hour window); wider ranges or a single vehicle fall back to per-vehicle history, capped at 31 days per request and paced to Cartrack's 10-requests/minute limit on the bulk endpoints.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| registration | No | Exact registration to get fuel data for one vehicle instead of the whole fleet. | |
| end_timestamp | No | Range end, "YYYY-MM-DD HH:MM:SS". Defaults to now (Namibia local time). | |
| start_timestamp | No | Range start, "YYYY-MM-DD HH:MM:SS". Defaults to 24 hours before now (Namibia local time). |