/v1/meta
Spec
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-Snippets
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_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"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
}