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/npv-api

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

Obtener una clave API

Fragmentos de código

curl "https://api.oanor.com/npv-api/v1/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/npv-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/npv-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/npv-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": "'initial' is the upfront outlay (positive); 'cash_flows' is a comma-separated list of net inflows for periods 1..n; 'rate' is the discount rate in percent.",
        "service": "npv-api",
        "formulae": {
            "irr": "the rate r where NPV = 0",
            "npv": "−initial + Σ CFₜ/(1+r)ᵗ",
            "profitability_index": "PV of inflows / initial"
        },
        "endpoints": {
            "GET /v1/irr": "Internal rate of return — the discount rate that makes NPV zero.",
            "GET /v1/npv": "Net present value, PV of inflows, profitability index and accept/reject decision.",
            "GET /v1/meta": "This document.",
            "GET /v1/payback": "Simple and discounted payback period from the cash flows."
        },
        "description": "Discounted-cash-flow investment appraisal: net present value and profitability index, internal rate of return, and simple and discounted payback periods."
    },
    "meta": {
        "timestamp": "2026-06-04T18:38:01.384Z",
        "request_id": "20758ae2-2fff-4e1e-b315-07441316f669"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}