API Documentation


The DataDrive API allows you to retrieve valuable data about your vehicle, fuel usage, km, engine failure and more.
The API is based on REST principles, so it's very easy to establish a connection to the data and test your applications. You can use your browser to access the URLs and choose your favorite programming tools to interact with the API.

Here on the left you can see the calls we are supporting today. We are currently working on adding new calls and if you have a suggestion, then don't hesitate to us line at info@datadrive.is.

Happy coding :-)




Getting started

Base URL
All API URLs referenced in this documentation start with the following base part:

https://api.datadrive.is
Authentication
When you sign up for an account, you are given an API key. You authenticate to the DataDrive API by providing your API key in the request.


Get current position

This call will give back the current realtime position of your vehicle.

HTTP GET
To make a call, make an HTTP GET request to this URL:

https://api.datadrive.is/getposition?RegNumber={Vehicle registration number}&key={Your API key}

GET Parameters
You must set the following parameters:

Parameter Description
RegNumber (required) Vehicle registration number of the vehicle, i.e. ER123
Key (required) Your API key






Get Engine data

This call will give back the engine data over period of time.

HTTP GET
To make a call, make an HTTP GET request to this URL:

https://api.datadrive.is/getenginedata?RegNumber={Vehicle registration number}&key={Your API key}&from={From time}&to={To time}

GET Parameters
You must set the following parameters:

Parameter Description
RegNumber (required) Vehicle registration number of the vehicle, i.e. ER123
Key (required) Your API key
From (required) From which date and time (YYYY-MM-dd HH:mm)
To (required) To which date and time (YYYY-MM-dd HH:mm)






Get Trips data

This call will give back the trips the vehicle has made, if there are any, over period of time.

HTTP GET
To make a call, make an HTTP GET request to this URL:

https://api.datadrive.is/gettripsdata?RegNumber={Vehicle registration number}&key={Your API key}&from={From time}&to={To time}

GET Parameters
You must set the following parameters:

Parameter Description
RegNumber (required) Vehicle registration number of the vehicle, i.e. ER123
Key (required) Your API key
From (required) From which date and time (YYYY-MM-dd HH:mm)
To (required) To which date and time (YYYY-MM-dd HH:mm)






Get position history

This call will give back the GPS history of the vehicle's wherabout, over period of time.

HTTP GET
To make a call, make an HTTP GET request to this URL:

https://api.datadrive.is/getpositionhistory?RegNumber={Vehicle registration number}&key={Your API key}&from={From time}&to={To time}

GET Parameters
You must set the following parameters:

Parameter Description
RegNumber (required) Vehicle registration number of the vehicle, i.e. ER123
Key (required) Your API key
From (required) From which date and time (YYYY-MM-dd HH:mm)
To (required) To which date and time (YYYY-MM-dd HH:mm)






Get geofence events

This call will give back the events were the vehicle has entered a prohibited area.

HTTP GET
To make a call, make an HTTP GET request to this URL:

https://api.datadrive.is/getgeofenceevents?RegNumber={Vehicle registration number}&key={Your API key}&from={From time}&to={To time}

GET Parameters
You must set the following parameters:

Parameter Description
RegNumber (required) Vehicle registration number of the vehicle, i.e. ER123
Key (required) Your API key
From (required) From which date and time (YYYY-MM-dd HH:mm)
To (required) To which date and time (YYYY-MM-dd HH:mm)






Get geofence status

This call will give back the status of geofence settings for the vehicle.

HTTP GET
To make a call, make an HTTP GET request to this URL:

https://api.datadrive.is/getgeofence?RegNumber={Vehicle registration number}&key={Your API key}

GET Parameters
You must set the following parameters:

Parameter Description
RegNumber (required) Vehicle registration number of the vehicle, i.e. ER123
Key (required) Your API key






Set geofence status

This call will set enable or disable geofence settings for the vehicle.

HTTP GET
To make a call, make an HTTP GET request to this URL:

https://api.datadrive.is/setgeofence?RegNumber={Vehicle registration number}&key={Your API key}&GeoFence1={"0"or"1"}

GET Parameters
You must set the following parameters:

Parameter Description
RegNumber (required) Vehicle registration number of the vehicle, i.e. ER123
GeoFence1 (required) "0" for disable and "1" for enable the geofence monitoring
Key (required) Your API key






Get Vehicle information

This call will get the detailed information about the vehicle; the type, model, VIN number etc.

HTTP GET
To make a call, make an HTTP GET request to this URL:

https://api.datadrive.is/getvehicleinfo?RegNumber={Vehicle registration number}&key={Your API key}

GET Parameters
You must set the following parameters:

Parameter Description
RegNumber (required) Vehicle registration number of the vehicle, i.e. ER123
Key (required) Your API key






Set Vehicle odo

This will set a new odo value for the vehicle.

HTTP GET
To make a call, make an HTTP GET request to this URL:

https://api.datadrive.is/setvehicleodo?RegNumber={Vehicle registration number}&key={Your API key}&odo=[odo value]

GET Parameters
You must set the following parameters:

Parameter Description
RegNumber (required) Vehicle registration number of the vehicle, i.e. ER123
Key (required) Your API key
Odo (required) New odo value for the vehicle in km (no "," or ".")






Set Vehicle service

This will set a new service km value for the vehicle.

HTTP GET
To make a call, make an HTTP GET request to this URL:

https://api.datadrive.is/setvehicleservice?RegNumber={Vehicle registration number}&key={Your API key}&servicekm=[odo value in km]

GET Parameters
You must set the following parameters:

Parameter Description
RegNumber (required) Vehicle registration number of the vehicle, i.e. ER123
Key (required) Your API key
ServiceKm (required) New service km value for the vehicle (no "." or ",")






Set Vehicle rental period

This will set the start time of the rental period and the end time. Also positioning tag of the vehicle is updated, i.e. 'my home depot etc'.

HTTP GET
To make a call, make an HTTP GET request to this URL:

https://api.datadrive.is/setvehiclerentalperiod?RegNumber={Vehicle registration number}&key={Your API key}&start=[start value]&end=[end value]&place=[Place value]&updatetype=[optional updatetype value]

GET Parameters
You must set the following parameters:

Parameter Description
RegNumber (required) Vehicle registration number of the vehicle, i.e. ER123
Key (required) Your API key
start (required) Start date and time of the rental of the vehicle in ("yyyy-MM-dd HH:mm")
end (required) End date and time of the rental of the vehicle in ("yyyy-MM-dd HH:mm")
Place (required) If the vehicle is positioned on specific place or depot.
updatetype (optional) Optional text to mark the request for specific action.