Aller au contenu
GET /v1/meta

Spec

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/cagr-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

curl "https://api.oanor.com/cagr-api/v1/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/cagr-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/cagr-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/cagr-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": "Rates as decimals (0.07 = 7 %) except doubling-time which takes rate_percent. Single-sum growth and return metrics; for level-payment loans use a loan API and for regular-deposit savings a savings API.",
        "service": "cagr-api",
        "endpoints": {
            "GET /v1/cagr": "Compound annual growth rate from begin/end value and years.",
            "GET /v1/meta": "This document.",
            "GET /v1/annualize": "Convert a total return over a span into an annual rate (or back).",
            "GET /v1/future-value": "Lump-sum compound growth FV = PV·(1+r)^n.",
            "GET /v1/doubling-time": "Exact doubling time and Rule-of-72/70/69.3 estimates.",
            "GET /v1/present-value": "Discount a future lump sum PV = FV/(1+r)^n."
        },
        "description": "Investment growth and return: CAGR, lump-sum future/present value, annualizing a total return, and doubling time (Rule of 72)."
    },
    "meta": {
        "timestamp": "2026-06-05T19:50:25.902Z",
        "request_id": "9d854386-f02f-4c5d-ab21-784bc0032ef8"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}