/v1/meta
Spec
Δοκιμάστε το ζωντανά
10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.
Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.
Λάβετε ένα κλειδί APIΑποσπάσματα κώδικα
curl "https://api.oanor.com/depreciation-api/v1/meta" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/depreciation-api/v1/meta", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/depreciation-api/v1/meta");
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/depreciation-api/v1/meta",
headers={"x-oanor-key": "oanor_test_..."}
)
Παράδειγμα απόκρισης
Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.
{
"data": {
"notes": "Cost and salvage in any currency, life in whole years. Each endpoint returns the full depreciation schedule. Accounting estimate — tax rules (e.g. MACRS) differ by jurisdiction.",
"service": "depreciation-api",
"formulae": {
"sum_of_years": "dep_t = (remaining_life / SYD) × (cost − salvage), SYD = n(n+1)/2",
"straight_line": "annual = (cost − salvage) / life",
"declining_balance": "dep = book × (factor/life)"
},
"endpoints": {
"GET /v1/meta": "This document.",
"GET /v1/sum-of-years": "Sum-of-years-digits accelerated depreciation.",
"GET /v1/straight-line": "Equal annual depreciation and year-by-year book value.",
"GET /v1/declining-balance": "Accelerated declining-balance (double-declining by default), capped at salvage."
},
"description": "Asset-depreciation calculator with full schedules: straight-line, declining-balance and sum-of-years-digits."
},
"meta": {
"timestamp": "2026-06-04T18:38:16.494Z",
"request_id": "d5be9887-3a2f-4351-9444-8184f396db16"
},
"status": "ok",
"message": "Meta",
"success": true
}