Vehicles history
curl --request GET \
--url https://api.tic.io/datasets/companies/{companyId}/se/vehicles-history-owner \
--header 'x-api-key: <api-key>'import requests
url = "https://api.tic.io/datasets/companies/{companyId}/se/vehicles-history-owner"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.tic.io/datasets/companies/{companyId}/se/vehicles-history-owner', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.tic.io/datasets/companies/{companyId}/se/vehicles-history-owner",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.tic.io/datasets/companies/{companyId}/se/vehicles-history-owner"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.tic.io/datasets/companies/{companyId}/se/vehicles-history-owner")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tic.io/datasets/companies/{companyId}/se/vehicles-history-owner")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"vehicleId": 123,
"licencePlate": "<string>",
"vehicleType": "<string>",
"vehicleName": "<string>",
"tradeName": "<string>",
"modelYear": 123,
"vehicleYear": 123,
"colorSwedish": "<string>",
"vin": "<string>",
"currentOwnerCompanyId": 123,
"currentOwnerCompanyRegistrationNumber": "<string>",
"currentOwnerCompanyLegalName": "<string>",
"currentUserCompanyId": 123,
"currentUserCompanyRegistrationNumber": "<string>",
"currentUserCompanyLegalName": "<string>",
"eventStartDate": "2023-11-07T05:31:56Z",
"eventEndDate": "2023-11-07T05:31:56Z"
}
]Companies
Vehicles history
Retrieves historic vehicles the company owned or was a user of
GET
/
datasets
/
companies
/
{companyId}
/
se
/
vehicles-history-owner
Vehicles history
curl --request GET \
--url https://api.tic.io/datasets/companies/{companyId}/se/vehicles-history-owner \
--header 'x-api-key: <api-key>'import requests
url = "https://api.tic.io/datasets/companies/{companyId}/se/vehicles-history-owner"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.tic.io/datasets/companies/{companyId}/se/vehicles-history-owner', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.tic.io/datasets/companies/{companyId}/se/vehicles-history-owner",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.tic.io/datasets/companies/{companyId}/se/vehicles-history-owner"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.tic.io/datasets/companies/{companyId}/se/vehicles-history-owner")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tic.io/datasets/companies/{companyId}/se/vehicles-history-owner")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"vehicleId": 123,
"licencePlate": "<string>",
"vehicleType": "<string>",
"vehicleName": "<string>",
"tradeName": "<string>",
"modelYear": 123,
"vehicleYear": 123,
"colorSwedish": "<string>",
"vin": "<string>",
"currentOwnerCompanyId": 123,
"currentOwnerCompanyRegistrationNumber": "<string>",
"currentOwnerCompanyLegalName": "<string>",
"currentUserCompanyId": 123,
"currentUserCompanyRegistrationNumber": "<string>",
"currentUserCompanyLegalName": "<string>",
"eventStartDate": "2023-11-07T05:31:56Z",
"eventEndDate": "2023-11-07T05:31:56Z"
}
]Returns a list of vehicles that company has been an owner or user of. History up to about 3 years in time. Vehicles are returned
in the order of when the last owner change from the company occured. The intention of the endpoint is to quickly get an overview of any vehicles
that may have been sold or transferred to other parties for example prior to a bankruptcy event.
Therfore only maximum 1000 history owned or used vehicles are returned in the response.
This means that the company you are requesting date for was an owner or user of the vehicle between 2023-08-02, e.g eventStartDate,
and 2025-01-22, e.g eventEndDate.
EventStartDate and EventEndDate
The fields EventStartDate and EventEndDate represents that last duration when the company was the owner or user of the vehicle. This means for example with the following json response:Example response
{
[
{
"vehicleId": 1,
"licencePlate": "XXX000",
"vehicleType": "SLÄP",
"vehicleName": "ABC",
"tradeName": null,
"modelYear": 2008,
"vehicleYear": 2008,
"colorSwedish": "VIT",
"vin": "123",
"currentOwnerCompanyId": 123,
"currentOwnerCompanyRegistrationNumber": "This is the current company registered as owner",
"currentOwnerCompanyLegalName": "XXX",
"currentUserCompanyId": 123,
"currentUserCompanyRegistrationNumber": null,
"currentUserCompanyLegalName": "This is the company currentley using the vehicle",
"eventStartDate": "2023-08-02T00:00:00",
"eventEndDate": "2025-01-22T00:00:00"
},
Authorizations
Path Parameters
The company id
Response
OK