Calculate take-home pay in one call
Pass gross salary, get income tax, Medicare levy, and net pay. Honours the current bracket table.
Steps
- 1Call the endpoint with gross.
- 2Read net, tax, medicare.
Code
cURL
curl https://api.ausdata.io/v1/ato/take-home?gross=120000 \
-H "Authorization: Bearer YOUR_KEY"Python
import requests
r = requests.get(
"https://api.ausdata.io/v1/ato/take-home?gross=120000",
headers={"Authorization": "Bearer YOUR_KEY"},
)
print(r.json())JavaScript
const r = await fetch("https://api.ausdata.io/v1/ato/take-home?gross=120000", {
headers: { Authorization: "Bearer YOUR_KEY" },
});
console.log(await r.json());Watch out for
- Excludes HECS, salary sacrifice, and private health surcharge. Add params to include them.
Related
Try it now
500 free calls per month. No credit card.
Get a free API key