GET
/
trip
/
{trip_id}
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>"
  }
}

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-27
Example:

"2024-03-27"

Path Parameters

trip_id
string
required

Trip ID of the Trip to be returned

Response

200
application/json
Successful Response
data
object
required

Successful response payload