/v1/meta
Spec
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
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_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"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
}