Total Cost of Ownership
curl --request GET \
--url https://tco.vin/{vin}import requests
url = "https://tco.vin/{vin}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://tco.vin/{vin}', 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://tco.vin/{vin}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://tco.vin/{vin}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://tco.vin/{vin}")
.asString();require 'uri'
require 'net/http'
url = URI("https://tco.vin/{vin}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"vehicle": {
"vin": "3TYSZ5AN8PT104981",
"year": "2023",
"make": "Toyota",
"model": "Tacoma"
},
"zip": "90210",
"tco": {
"total": {
"federalTaxCredit": 0,
"insurance": 6972,
"maintenance": 5745,
"repairs": 887,
"taxesAndFees": 4435,
"financeInterest": 7807,
"depreciation": 13911,
"fuel": 19829,
"tcoPrice": 59586,
"averageCostPerMile": 0.79
},
"years": {
"1": {
"insurance": 1300,
"maintenance": 67,
"repairs": 0,
"taxesAndFees": 3479,
"financeInterest": 2663,
"depreciation": 8500,
"fuel": 3735,
"tcoPrice": 19744,
"averageCostPerMile": 0.79
},
"2": {
"insurance": 1346,
"maintenance": 530,
"repairs": 0,
"taxesAndFees": 252,
"financeInterest": 2156,
"depreciation": 1316,
"fuel": 3847,
"tcoPrice": 9447,
"averageCostPerMile": 0.79
},
"3": {
"insurance": 1393,
"maintenance": 502,
"repairs": 129,
"taxesAndFees": 243,
"financeInterest": 1607,
"depreciation": 1247,
"fuel": 3962,
"tcoPrice": 9083,
"averageCostPerMile": 0.79
},
"4": {
"insurance": 1441,
"maintenance": 2147,
"repairs": 307,
"taxesAndFees": 235,
"financeInterest": 1013,
"depreciation": 1462,
"fuel": 4081,
"tcoPrice": 10686,
"averageCostPerMile": 0.79
},
"5": {
"insurance": 1492,
"maintenance": 2499,
"repairs": 451,
"taxesAndFees": 226,
"financeInterest": 368,
"depreciation": 1386,
"fuel": 4204,
"tcoPrice": 10626,
"averageCostPerMile": 0.79
}
}
}
}
Vehicle
Total Cost of Ownership
GET
/
{vin}
Total Cost of Ownership
curl --request GET \
--url https://tco.vin/{vin}import requests
url = "https://tco.vin/{vin}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://tco.vin/{vin}', 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://tco.vin/{vin}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://tco.vin/{vin}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://tco.vin/{vin}")
.asString();require 'uri'
require 'net/http'
url = URI("https://tco.vin/{vin}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"vehicle": {
"vin": "3TYSZ5AN8PT104981",
"year": "2023",
"make": "Toyota",
"model": "Tacoma"
},
"zip": "90210",
"tco": {
"total": {
"federalTaxCredit": 0,
"insurance": 6972,
"maintenance": 5745,
"repairs": 887,
"taxesAndFees": 4435,
"financeInterest": 7807,
"depreciation": 13911,
"fuel": 19829,
"tcoPrice": 59586,
"averageCostPerMile": 0.79
},
"years": {
"1": {
"insurance": 1300,
"maintenance": 67,
"repairs": 0,
"taxesAndFees": 3479,
"financeInterest": 2663,
"depreciation": 8500,
"fuel": 3735,
"tcoPrice": 19744,
"averageCostPerMile": 0.79
},
"2": {
"insurance": 1346,
"maintenance": 530,
"repairs": 0,
"taxesAndFees": 252,
"financeInterest": 2156,
"depreciation": 1316,
"fuel": 3847,
"tcoPrice": 9447,
"averageCostPerMile": 0.79
},
"3": {
"insurance": 1393,
"maintenance": 502,
"repairs": 129,
"taxesAndFees": 243,
"financeInterest": 1607,
"depreciation": 1247,
"fuel": 3962,
"tcoPrice": 9083,
"averageCostPerMile": 0.79
},
"4": {
"insurance": 1441,
"maintenance": 2147,
"repairs": 307,
"taxesAndFees": 235,
"financeInterest": 1013,
"depreciation": 1462,
"fuel": 4081,
"tcoPrice": 10686,
"averageCostPerMile": 0.79
},
"5": {
"insurance": 1492,
"maintenance": 2499,
"repairs": 451,
"taxesAndFees": 226,
"financeInterest": 368,
"depreciation": 1386,
"fuel": 4204,
"tcoPrice": 10626,
"averageCostPerMile": 0.79
}
}
}
}
string
required
The Vehicle Identification Number (e.g. WP0AF2A99KS165242)
string
The ZIP code for the customer, optional, but recommended
Response
object
required
object
required
Show properties
Show properties
object
required
Show properties
Show properties
number
required
The federal tax credit for the vehicle
number
required
The total insurance cost for the vehicle
number
required
The total maintenance cost for the vehicle
number
required
The total repairs cost for the vehicle
number
required
The total taxes and fees cost for the vehicle
number
required
The total finance interest cost for the vehicle
number
required
The total depreciation cost for the vehicle
number
required
The total fuel cost for the vehicle
number
required
The total cost of ownership price for the vehicle
number
required
The average cost per mile for the vehicle
object
required
An object containing the cost of ownership for each year.
Each key is the year number (e.g. 1, 2, 3, 4, 5)
Each key is the year number (e.g. 1, 2, 3, 4, 5)
Show properties
Show properties
number
required
The insurance cost for the year
number
required
The maintenance cost for the year
number
required
The repairs cost for the year
number
required
The taxes and fees cost for the year
number
required
The finance interest cost for the year
number
required
The depreciation cost for the year
number
required
The fuel cost for the year
number
required
The total cost of ownership price for the year
number
required
The average cost per mile for the year
{
"vehicle": {
"vin": "3TYSZ5AN8PT104981",
"year": "2023",
"make": "Toyota",
"model": "Tacoma"
},
"zip": "90210",
"tco": {
"total": {
"federalTaxCredit": 0,
"insurance": 6972,
"maintenance": 5745,
"repairs": 887,
"taxesAndFees": 4435,
"financeInterest": 7807,
"depreciation": 13911,
"fuel": 19829,
"tcoPrice": 59586,
"averageCostPerMile": 0.79
},
"years": {
"1": {
"insurance": 1300,
"maintenance": 67,
"repairs": 0,
"taxesAndFees": 3479,
"financeInterest": 2663,
"depreciation": 8500,
"fuel": 3735,
"tcoPrice": 19744,
"averageCostPerMile": 0.79
},
"2": {
"insurance": 1346,
"maintenance": 530,
"repairs": 0,
"taxesAndFees": 252,
"financeInterest": 2156,
"depreciation": 1316,
"fuel": 3847,
"tcoPrice": 9447,
"averageCostPerMile": 0.79
},
"3": {
"insurance": 1393,
"maintenance": 502,
"repairs": 129,
"taxesAndFees": 243,
"financeInterest": 1607,
"depreciation": 1247,
"fuel": 3962,
"tcoPrice": 9083,
"averageCostPerMile": 0.79
},
"4": {
"insurance": 1441,
"maintenance": 2147,
"repairs": 307,
"taxesAndFees": 235,
"financeInterest": 1013,
"depreciation": 1462,
"fuel": 4081,
"tcoPrice": 10686,
"averageCostPerMile": 0.79
},
"5": {
"insurance": 1492,
"maintenance": 2499,
"repairs": 451,
"taxesAndFees": 226,
"financeInterest": 368,
"depreciation": 1386,
"fuel": 4204,
"tcoPrice": 10626,
"averageCostPerMile": 0.79
}
}
}
}
⌘I