/v1/reverse
Gross income for a target net
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/taxbracket-api/v1/reverse" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/taxbracket-api/v1/reverse", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/taxbracket-api/v1/reverse");
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/taxbracket-api/v1/reverse",
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": {
"tax": 6307.5,
"note": "Gross income required to take home the target net, found by bisection on the provided schedule.",
"input": {
"brackets": [
{
"from": 0,
"rate": 10
},
{
"from": 11000,
"rate": 12
},
{
"from": 44725,
"rate": 22
},
{
"from": 95375,
"rate": 24
},
{
"from": 182100,
"rate": 32
},
{
"from": 231250,
"rate": 35
},
{
"from": 578125,
"rate": 37
}
],
"deduction": 0,
"target_net": 43692.5
},
"required_gross": 50000,
"after_tax_income": 43692.5,
"marginal_rate_percent": 22,
"effective_rate_percent": 12.615
},
"meta": {
"timestamp": "2026-06-03T17:41:56.567Z",
"request_id": "2cb06020-621b-4525-9f8a-e9e880a129e0"
},
"status": "ok",
"message": "Gross from net",
"success": true
}