Vai al contenuto
GET /v1/emergency

Emergency fund

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/savings-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/savings-api/v1/emergency" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/savings-api/v1/emergency", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/savings-api/v1/emergency");
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/savings-api/v1/emergency",
    headers={"x-oanor-key": "oanor_test_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "note": "Target = months of expenses; most advice is 3–6 months. Months to reach = ceil(shortfall / monthly saving).",
        "inputs": {
            "months": 6,
            "current_savings": 3000,
            "monthly_expenses": 2000
        },
        "shortfall": 9000,
        "target_fund": 12000,
        "funded_percent": 25,
        "months_to_reach": 18
    },
    "meta": {
        "timestamp": "2026-06-04T18:38:15.728Z",
        "request_id": "9df43df9-54a8-41b4-be00-df9c406fc5ae"
    },
    "status": "ok",
    "message": "Emergency fund",
    "success": true
}