cURL
curl --request GET \ --url https://api.pathstack.io/trip/{trip_id} \ --header 'Authorization: Bearer <token>'
{ "data": { "start_latitude": 123, "start_longitude": 123, "end_latitude": 123, "end_longitude": 123, "system_trip_id": "<string>", "start_time": "<string>", "end_time": "<string>", "distance_metres": 123, "duration_seconds": 123, "driving_seconds": 123, "idling_seconds": 123, "auxiliary_seconds": 123, "id": "<string>", "device_id": "<string>" } }
This endpoint returns a Trip by ID.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
"2024-03-26"
Trip ID of the Trip to be returned
Successful Response
The response is of type object.
object