API & MCP

Everything a person can do on True Cost Calculator, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

True Cost Calculator

Add the purchase price, financing, expected resale value, recurring costs, maintenance, insurance and energy use. The calculator returns the true total cost of ownership, the cost per year, month and day, the share of each cost bucket, and how many times the sticker price you really pay.

Inputs of True Cost Calculator
FieldTypeDefaultDescription
itemTypeselect (car, pet, appliance, home, gadget, other)"car"What is it?
itemNametext"My purchase"Name
currencytext"EUR"Currency. Shown in results only; no conversion is performed.
purchasePrice (required)number0Purchase (sticker) price. Pet: purchase or adoption fee.
yearsOwnednumber5Years you will own it
resaleValuenumber0Expected resale value at the end
loanAmountnumber0Loan amount. Leave 0 if you pay cash.
aprPercentnumber0Loan APR
loanTermMonthsinteger0Loan term
maintenancePerYearnumber0Maintenance, repairs or vet care per year. Car or appliance: servicing and repairs. Pet: vet visits, vaccinations, medication and other health care.
insurancePerYearnumber0Insurance per year. Pet: health or liability insurance.
energyConsumptionnumber0Energy, fuel or food consumption. Car: e.g. 6 (litres per 100 km). Appliance: e.g. 1.2 (kWh per wash cycle). Pet: e.g. 0.35 (kg of food per day).
consumptionPerselect (per-100, per-1)"per-100"Consumption is per
energyUnitPricenumber0Price per unit (litre, kWh or kg of food). E.g. price per litre of fuel, per kWh or per kg of pet food.
usagePerYearnumber0Usage per year. E.g. km per year, wash cycles per year, or 365 feeding days for a pet.
recurringtable—Other recurring costs. Taxes, parking, subscriptions, pet supplies, grooming, fees…

Example request

Compact car, financed, 6 years

curl -X POST https://truecostcalculator.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"itemType":"car","itemName":"Compact car","currency":"EUR","purchasePrice":24000,"yearsOwned":6,"resaleValue":9000,"loanAmount":15000,"aprPercent":5.9,"loanTermMonths":48,"maintenancePerYear":600,"insurancePerYear":750,"energyConsumption":6,"consumptionPer":"per-100","energyUnitPrice":1.75,"usagePerYear":12000,"recurring":[{"name":"Vehicle tax","amount":120,"frequency":"yearly"},{"name":"Parking permit","amount":30,"frequency":"monthly"}]}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "true-cost-calculator": { "type": "http", "url": "https://truecostcalculator.usefulweb.site/mcp" }
  }
}