/v1/goal
Deposit to reach a goal
Try it live
10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.
It works. Grab an API key and use it in your project.
Get an API keyCode snippets
curl "https://api.oanor.com/savings-api/v1/goal" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/savings-api/v1/goal", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/savings-api/v1/goal");
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/goal",
headers={"x-oanor-key": "oanor_test_..."}
)
Example response
A real response from this endpoint, captured by the latest health check.
{
"data": {
"note": "Required deposit = (target − initial·(1+r)^n)·r / ((1+r)^n − 1).",
"inputs": {
"years": 10,
"target": 50000,
"initial": 1000,
"annual_rate": 5
},
"monthly_deposit": 311.39,
"projected_interest": 11633.48,
"total_contributions": 38366.52
},
"meta": {
"timestamp": "2026-06-04T18:38:15.960Z",
"request_id": "70a335d3-9530-473e-96ff-8795c8af1a64"
},
"status": "ok",
"message": "Goal deposit",
"success": true
}