API & MCP

Everything a person can do on How Long Will It Last?, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

How Long Will It Last?

Pick an appliance or home component, enter its age, how hard it is used and how well it is maintained. The tool uses the life-expectancy ranges published in InterNACHI's Standard Estimated Life Expectancy Chart for Homes to estimate remaining years, the share of life used, and a replacement planning window.

Inputs of How Long Will It Last?
FieldTypeDefaultDescription
itemselect (air-conditioner-window, trash-compactor, dehumidifier, dishwasher, food-waste-disposal, dryer-vent-plastic, dryer-vent-steel, clothes-dryer, exhaust-fans, freezer, gas-oven, hand-dryer, humidi"refrigerator"Item
ageYears (required)number5Current age
usageselect (light, normal, heavy)"normal"Usage intensity
maintenanceselect (good, average, poor)"good"Maintenance quality

Example request

7-year-old refrigerator, normal use

curl -X POST https://howlongwillitlast.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"item":"refrigerator","ageYears":7,"usage":"normal","maintenance":"good"}'

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": {
    "how-long-will-it-last": { "type": "http", "url": "https://howlongwillitlast.usefulweb.site/mcp" }
  }
}