Tracking API

This endpoint provides access to real-time tracking information for vehicles in our system. By utilizing this endpoint, you can retrieve data about the location, unit number, VIN, and other relevant information of tracked vehicles.

Endpoint:

GET https://read.ontime-logs.com/api/v2/units-by-usdot/:usdot

Auth Header:

Key: x-api-key
Value: <api key value>

Key: provider-token
Value: <provider token value>

Example:

cURL:
curl --location --request GET 'https://read.ontime-logs.com/api/v2/units-by-usdot/:usdot' \--header 'x-api-key:' --header 'provider-token:'

The response to the request will be in the following format below:

Response:

{
"units": [{
"truck_number": "string",
"vin": “string”,
"coordinates": { "lat": 0.0,"lng": 0.0 },
“timestamp”: iso string date
}, {...}, {...} ]
}

Tracking by vin number API