Get vehicle
One vehicle by id.
GET
/api/vehicles/:id :id is vehicle.id when the feed supplied one, else the feed entity id — the same value that appears as id in the list response.
The same vehicle can appear in more than one source file; this serves the freshest by timestamp.
Try it
Runs from your browser against the API in .
Path
Run this in your terminal
curl equivalent
Parameters
Path
| Parameter | Type | Default | Description |
|---|---|---|---|
idrequiredpath | string | — | Vehicle id. |
Response
A single object under data, with no meta.
curl "$API_BASE/api/vehicles/9031001001501695" {
"data": {
"id": "9031001001501695",
"vehicle": {
"id": "9031001001501695"
},
"trip": {
"tripId": "14010000703221662",
"routeId": "9011001087300000",
"directionId": 0,
"scheduleRelationship": "SCHEDULED",
"routeIdSource": "static",
"route": {
"routeId": "9011001087300000",
"agencyId": "505000000000000001",
"shortName": "873",
"type": 700
}
},
"position": {
"latitude": 59.242779,
"longitude": 18.223082,
"bearing": 270,
"speed": 10.6
},
"currentStatus": "IN_TRANSIT_TO",
"timestamp": {
"epoch": 1777288959,
"iso": "2026-04-27T11:22:39.000Z"
}
}
} Errors
404
{ "error": "request_failed", … } No vehicle carries that id.