---
title: "Vehicle Ownership Cost API"
method: GET
path: "/getownershipcost.php"
tags: ["VIN Data"]
---

# Vehicle Ownership Cost API

`GET /getownershipcost.php`

## Request

- Base URL: `https://ownershipcost.vinaudit.com`
- URL: `https://ownershipcost.vinaudit.com/getownershipcost.php`
- Auth: API key in query parameter `key`
- TypeScript: <https://skmtc.dev/vinaudit/apis/vinaudit-data-apis/docs/getownershipcost.php/get.ts> (a function with typed inputs; its response is checked against the schema)

Estimate 5-year ownership costs by VIN, including depreciation, insurance, fuel, maintenance, repairs, and state taxes/fees.

## Query parameters

- `vin` string, required
- `state` string, required
- `format` 'json' | 'xml'

## Response `200`

5-year ownership cost estimate (each array = years 1-5)

- object
  - `vin` string
  - `mileage_start` integer: Current mileage (default -1)
  - `mileage_year` integer: Estimated yearly mileage (default 15000)
  - `vehicle` string
  - `trim` string
  - `depreciation_cost` number[]
  - `insurance_cost` number[]
  - `fuel_cost` number[]
  - `maintenance_cost` number[]
  - `repairs_cost` number[]
  - `fees_cost` number[]
  - `total_cost` number[]
  - `total_cost_sum` number

---

[API](https://skmtc.dev/vinaudit/apis/vinaudit-data-apis.md) - [All operations](https://skmtc.dev/vinaudit/apis/vinaudit-data-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/vinaudit/apis/vinaudit-data-apis/revisions/1f1500e74b46?raw)
