Ir al contenido
GET /v1/meta

Spec

Pruébalo en vivo

10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.

Encabezados personalizados (opcional)
api.oanor.com/depreciation-api

Funciona. Consigue una clave API y úsala en tu proyecto.

Obtener una clave API

Fragmentos de código

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_..."}
)

Respuesta de ejemplo

Una respuesta real de este endpoint, capturada en la última comprobación de estado.

{
    "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
}