Get trips
get_tripsRetrieve trip history for a fleet or a single vehicle for a date range, including routes, distance, duration, idle time, and driving behavior.
Instructions
Trip history for a date range: route (start/end location and coordinates), distance, duration, idle time, and driving behavior (harsh braking/cornering/acceleration, speeding events). Defaults to the previous 24 hours. Cartrack caps each request at 31 days — longer ranges are chunked automatically. Fleet-wide queries cannot be filtered by vehicle at the API level (Cartrack has no such filter on the fleet-wide endpoint); pass registration to query one vehicle directly instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| registration | No | Exact registration to get trips 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). | |
| include_private | No | Include trips marked private. Defaults to false. | |
| start_timestamp | No | Range start, "YYYY-MM-DD HH:MM:SS". Defaults to 24 hours before now (Namibia local time). |