REST API

Learn how to use the Vehicle Data API to retrieve car data

The Vehicle Data API lets you work with car data on any platform using a REST API. This tutorial will help you get started and show you how to work with it. By following the steps you will be receiving odometer data from the car simulator.

circle-info

ENDPOINT URL

Note that the REST API base URL is https://sandbox.api.high-mobility.com/v1arrow-up-right when working with the sandbox vehicles and https://api.high-mobility.com/v1arrow-up-right for live vehicle data.

When you use the configuration snippets from the platform as shown in this tutorial, you will always be using the right URL automatically.

1. Create an application

Visit the Consolearrow-up-right, create an application and select the data which are intrested in.

2. Create a simulator

In the "Simulation studio" you are able to create vehicles to link with your app and to test with the simulators. Go to the simulation studio and click the big plus (+) button.

Now to use the REST API you will need to create an Access Token. Follow the Fleet Clearance guide for fleet vehicles.

4. Send a Request

Once the simulator is open, fire away a request. For example to get the diagnostics state of the vehicle.

If you see that the app lacks permissions, you will need to revisit step two of the "Create an application" section of this document and select the appropriate permissions for your telematics command.

const request = require('request')

request.get({
  url: 'https://sandbox.api.high-mobility.com/v1/vehicle-data/autoapi-13/{vin}',
  headers: {
    Authorization: 'Bearer ' + accessToken
  }
}, (error, response, body) => {
  console.log('error:', error)
  console.log('statusCode:', response && response.statusCode)
  console.log('body:', body)
})

circle-info

AUTO API

Check out the Data API OpenAPI Specification for all details

Last updated

Was this helpful?