/v1/depreciation
Depreciation schedule
Try it live
10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.
It works. Grab an API key and use it in your project.
Get an API keyCode snippets
curl "https://api.oanor.com/financecalc-api/v1/depreciation" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/financecalc-api/v1/depreciation", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/financecalc-api/v1/depreciation");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/financecalc-api/v1/depreciation",
headers={"x-oanor-key": "oanor_test_..."}
)
Example response
A real response from this endpoint, captured by the latest health check.
{
"data": {
"cost": 10000,
"life": 5,
"method": "straight_line",
"salvage": 1000,
"schedule": [
{
"year": 1,
"book_value": 8200,
"accumulated": 1800,
"depreciation": 1800
},
{
"year": 2,
"book_value": 6400,
"accumulated": 3600,
"depreciation": 1800
},
{
"year": 3,
"book_value": 4600,
"accumulated": 5400,
"depreciation": 1800
},
{
"year": 4,
"book_value": 2800,
"accumulated": 7200,
"depreciation": 1800
},
{
"year": 5,
"book_value": 1000,
"accumulated": 9000,
"depreciation": 1800
}
],
"total_depreciation": 9000
},
"meta": {
"timestamp": "2026-06-03T17:42:08.222Z",
"request_id": "62327f2d-b582-4dc2-8603-f41f0e84360a"
},
"status": "ok",
"message": "Depreciation",
"success": true
}