GET
/
device
/
{device_id}
/
trip
curl --request GET \
  --url https://api.pathstack.io/device/{device_id}/trip \
  --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>"
    }
  ],
  "links": {
    "previous": "<string>",
    "current": "<string>",
    "next": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-api-version
string
default:2024-03-26
Examples:

"2024-03-26"

Path Parameters

device_id
string
required

Device ID of the Trips to be returned

Query Parameters

start_time_utc
string

Start time from when the data will be returned. Trips with end time >= start time will be returned

end_time_utc
string

End time from when the data will be returned. Trips with end time <= specified end time will be returned

page
integer
default:0

Page number for pagination (zero-indexed)

Required range: x >= 0

Response

200
application/json

Successful Response

The response is of type object.