Download OpenAPI specification:
Content-Type: application/jsonAccept: application/jsonAll requests under this tag share the same basic output structure.
Response Structure:
{
"meta": {
"totalRows": 2524
},
"rowData": [{}]
}
More information about JSON query objects can be found here: https://restdb.io/docs/querying-with-the-api#logicXoperators
Provide the latest vehicle locations and positions.
| q | string Filter results by a search query. |
| limit | integer <= 1000 Default: 25 Number of items per page (default: 25, max: 1000). |
| page | integer Default: 1 The page number to retrieve (default: 1). |
object Example: time=desc&name=asc Sort results by a specific field. |
{- "meta": {
- "totalRows": 0
}, - "rowData": [
- {
- "id": "s~375d370cef00bb32eb6e2a0b731b6ce9c07d9ad9f5",
- "rideType": 0,
- "time": 1732700103,
- "location": "Masarykovo nám. 280/12a, 697 01 Kyjov, CZ",
- "lat": 49.00949,
- "lon": 17.123777,
- "odometer": null,
- "motohours": null,
- "velocity": 0.5,
- "movementStatus": "end",
- "driverId": {
- "id": "s~4e1547707e658f9644bae56eb395503b97"
}, - "vehicleId": {
- "id": "s~d47f60ac959372edee1a0b536ba0300cef57704680"
}, - "locationType": "valid",
- "direction": 0.5
}
]
}Provide a list of the user's vehicles
| q | string Filter results by a search query. |
| limit | integer <= 1000 Default: 25 Number of items per page (default: 25, max: 1000). |
| page | integer Default: 1 The page number to retrieve (default: 1). |
object Example: time=desc&name=asc Sort results by a specific field. |
{- "meta": {
- "totalRows": 0
}, - "rowData": [
- {
- "id": "s~462defb59ffb923dfbe4a3b130bf09e8646bd29b9d",
- "title": "Škoda Octavia",
- "licensePlate": "6AL 4788",
- "odometer": 197567000,
- "motohours": null,
- "timeDeviceAdded": 1509518838,
- "monitorMotohours": false,
- "fuelCellVolume": 0.055,
- "fuelType": "benzine",
- "vehicleType": "car",
- "defaultDriverId": {
- "id": "s~2f772b768f7344c1e7adb436ba195501ca0f4939cf"
}, - "divisionId": {
- "id": "s~8d66c56e62c9afbd0128485e4a4b637b74f3019a83"
}, - "currency": "CZK"
}
]
}Provide the trip history for the vehicle.
| q | string Filter results by a search query. |
| limit | integer <= 1000 Default: 25 Number of items per page (default: 25, max: 1000). |
| page | integer Default: 1 The page number to retrieve (default: 1). |
object Example: time=desc&name=asc Sort results by a specific field. |
{- "meta": {
- "totalRows": 0
}, - "rowData": [
- {
- "id": "s~0cd8be45584d5877fa1ad0498e46b587e2a5b332b82c7ff9",
- "timeFrom": 1630646933,
- "timeTo": 1630647466,
- "speedAvg": 1.1472222222222221,
- "consumption": 0,
- "countryCode": "CZ",
- "locationFrom": null,
- "lonFrom": 16.626643,
- "latFrom": 49.202845,
- "locationTo": null,
- "lonTo": 16.62662,
- "latTo": 49.202849,
- "rideType": 0,
- "distance": 28.622999999999998,
- "price": 0,
- "vehicleId": {
- "id": "s~37ed89c15fbafce459e462247112ff93e6a5bc35be"
}, - "driverId": {
- "id": "s~4e156eb395503b9747707e658f9644bae5"
}, - "bookType": "main",
- "dataType": "gps"
}
]
}Provide user's division list.
| q | string Filter results by a search query. |
| limit | integer <= 1000 Default: 25 Number of items per page (default: 25, max: 1000). |
| page | integer Default: 1 The page number to retrieve (default: 1). |
object Example: time=desc&name=asc Sort results by a specific field. |
{- "meta": {
- "totalRows": 0
}, - "rowData": [
- {
- "id": "s~700963662dff8be4a2b730bbb4afaff54e12e0a598",
- "name": "Test division",
- "countryCode": "CZ",
- "active": true
}
]
}Provide refueling details, including fuel transactions and related information.
| q | string Filter results by a search query. |
| limit | integer <= 1000 Default: 25 Number of items per page (default: 25, max: 1000). |
| page | integer Default: 1 The page number to retrieve (default: 1). |
object Example: time=desc&name=asc Sort results by a specific field. |
{- "meta": {
- "totalRows": 0
}, - "rowData": [
- {
- "id": "s~f2a9a42c2d6f52a1663f03c008f3db28e3a2b734bf2c",
- "time": 1638353414,
- "origin": "Eurowag",
- "productName": "Motorová nafta",
- "productType": "benzine",
- "description": null,
- "stationName": "BENZINA - Mladá Boleslav II",
- "gasCellFull": true,
- "dateModified": 1642163347,
- "dateAdded": 1642163323,
- "amount": 0.04134,
- "price": {
- "amount": 1477.63,
- "currency": "CZK",
- "vat": 21
}, - "vehicleId": {
- "id": "s~37ed89c15fbafce459e462247112ff93e6a5bc35be"
}, - "userId": {
- "id": "s~790eedaffb9109f55fadc014ed3e56c6e7a2b630b7"
}
}
]
}Provide user details and related information.
| q | string Filter results by a search query. |
| limit | integer <= 1000 Default: 25 Number of items per page (default: 25, max: 1000). |
| page | integer Default: 1 The page number to retrieve (default: 1). |
object Example: time=desc&name=asc Sort results by a specific field. |
{- "meta": {
- "totalRows": 0
}, - "rowData": [
- {
- "id": "s~790eedaffb9106e7a2b630b79f55fadc014ed3e56c",
- "name": "Podpora",
- "surname": null,
- "login": "podpora@logbookie.eu",
- "email": "podpora@logbookie.eu",
- "customerId": {
- "id": "s~94a42a8b628cd6c36a112e6a2b03cbf6e08bed16d5"
}, - "timezone": "Europe/Prague",
- "active": true,
- "disabled": false
}
]
}Provides user-defined odometer correction data.
| q | string Filter results by a search query. |
| limit | integer <= 1000 Default: 25 Number of items per page (default: 25, max: 1000). |
| page | integer Default: 1 The page number to retrieve (default: 1). |
object Example: time=desc&name=asc Sort results by a specific field. |
{- "meta": {
- "totalRows": 0
}, - "rowData": [
- {
- "id": "s~3128ff13b93f364e4a08736b7c09dd80402d2bcac425",
- "active": true,
- "time": 1630646799,
- "perc": 0,
- "odometer": 2891000,
- "vehicleId": {
- "id": "s~37ed89c459e93e6a5bc315fbafce5462247112ffbe"
}, - "userId": {
- "id": "s~790eedaffb9d3e59f51dc006c6e7a2b14e5fa630b7"
}
}
]
}Provide details of the currently logged-in user.
{- "userData": {
- "id": 12345,
- "login": "Prokop Dveře",
- "lastName": "Dveře",
- "firstName": "Prokop",
- "loginHash": "f5cf5c944cd9ab10d8a8721bf95b1d99",
- "role": "user",
- "timezone": "Europe/Prague"
}
}Provide a daily summary of the distance traveled (in meters) or the increase in engine runtime (in seconds) for each vehicle.
| vehicleIds required | string Ids of vehicles |
| timeFrom required | number <float> Timestamp of interval first day start |
| timeTo required | number <float> Timestamp of interval last day |
{- "vehicle": "s~5b61023db5887e9gh986f16058f1249ce6a5bc11b8",
- "dailyIncrements": [
- {
- "date": "1680386400",
- "odometerIncrement": 625.01,
- "motohoursIncrement": 6000.12
}, - {
- "date": "1680559200",
- "odometerIncrement": 625.01,
- "motohoursIncrement": 7850.12
}, - {
- "date": "1680645600",
- "odometerIncrement": 625.01,
- "motohoursIncrement": 985.12
}
]
}Provide GPS coordinates, speed information, and the route taken by the vehicle.
| vehicleIds required | string Ids of vehicles |
| timeFrom required | number <float> Timestamp of interval first day start |
| timeTo required | number <float> Timestamp of interval last day |
{- "type": "FeatureCollection",
- "features": [
- {
- "type": "Feature",
- "properties": {
- "vehicleId": "s~5c7d7c687adf79a21a15c02de7a4b48d52846130",
- "coordTimes": [
- 1705391253,
- 1705391263,
- 1705391266,
- 1705391267,
- 1705391268,
- 1705391269,
- 1705391271,
- 1705391274,
- 1705391277,
- 1705391279
], - "speed": [
- 0,
- 0,
- 1.9444444444,
- 1.9444444444444444,
- 1.9444444444444444,
- 2.2222222222222223,
- 2.7777777777777777,
- 5.277777777777778,
- 7.777777777777778,
- 10,
- 10.555555555555555
]
}, - "geometry": {
- "type": "LineString",
- "coordinates": [
- [
- 16.564008,
- 49.169038
], - [
- 16.564008,
- 49.169038
], - [
- 16.563968,
- 49.169033
], - [
- 16.563997,
- 49.169038
], - [
- 16.564017,
- 49.16905
], - [
- 16.564025,
- 49.169072
], - [
- 16.564002,
- 49.169143
], - [
- 16.563922,
- 49.169317
], - [
- 16.563838,
- 49.169565
], - [
- 16.563807,
- 49.169753
]
]
}
}
]
}