Vai al contenuto
GET /v1/tax

Progressive tax on a schedule

Provalo dal vivo

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

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

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

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

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

{
    "data": {
        "tax": 6307.5,
        "note": "Marginal/progressive tax on the bracket schedule provided. Effective rate is tax ÷ gross income.",
        "input": {
            "income": 50000,
            "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,
            "taxable_income": 50000
        },
        "breakdown": [
            {
                "to": 11000,
                "from": 0,
                "rate_percent": 10,
                "tax_in_bracket": 1100,
                "taxable_in_bracket": 11000
            },
            {
                "to": 44725,
                "from": 11000,
                "rate_percent": 12,
                "tax_in_bracket": 4047,
                "taxable_in_bracket": 33725
            },
            {
                "to": 95375,
                "from": 44725,
                "rate_percent": 22,
                "tax_in_bracket": 1160.5,
                "taxable_in_bracket": 5275
            }
        ],
        "after_tax_income": 43692.5,
        "marginal_rate_percent": 22,
        "effective_rate_percent": 12.615,
        "effective_rate_on_taxable_percent": 12.615
    },
    "meta": {
        "timestamp": "2026-06-03T17:41:56.670Z",
        "request_id": "6ccc71db-bab8-431a-bbc2-67e4dd30cd71"
    },
    "status": "ok",
    "message": "Progressive tax",
    "success": true
}