Income Tax API
The Income Tax API provides detailed information about current and historical income tax rates for different countries.
Currently this API supports United States (including state income tax) and Canada (including provincial income tax). If you would like to see other countries added, please let us know.
Looking for a detailed income tax calculator instead? Check out our Income Tax Calculator API.
From 6,576 users
Applications using this API
API Status
API Response Times
Average | P50 | P75 | P90 | P95 |
|---|---|---|---|---|
| 421ms | 453ms | 504ms | 691ms | 1365ms |
Similar APIs
Didn't find what you were looking for? Suggest an improvement
/v2/incometax GET
https://api.api-ninjas.com/v2/incometax
Returns comprehensive income tax information including tax brackets and rates at both federal and state/provincial levels (where applicable).
Parameters
countryrequired2-letter country code (e.g., US, CA)
yearrequiredThe tax year for which to retrieve data
regionsoptionalComma-separated list of regions to filter the response. For United States, specify 2-letter state codes (e.g.,
AL, CA, NY) orfederalfor federal tax information only. For Canada, specify 2-letter provincial codes (e.g.,ON, BC, QC) orfederalfor federal tax information only. Multiple regions can be specified (e.g.,federal,AL,CA,NY). When specified, filters the response to only include tax information for those regions. If unset, the response will include all regions (federal and all states/provinces).
Headers
X-Api-KeyrequiredAPI Key associated with your account.
Response
countryThe country for which the tax rates are being retrieved.
yearThe tax year for which the tax rates are being retrieved.
federalThe federal tax rates for the given country and year.
ficapremium onlyThe FICA tax rates, including breakdown of social security and medicare percentages and social security cap, for the given country and year (US only).
statespremium onlyThe state tax rates for the given country and year (US only).
provincespremium onlyThe provincial tax rates for the given country and year (Canada only).
Sample Request Live Demo!
Try this API endpoint with all available parameters in our API playground
https://api.api-ninjas.com/v2/incometax?country=US&year=2026®ions=federal,CAHeaders
X-Api-KeyLog in or sign up to get your API KeySample Response
Code Examples
1
2
curl -X GET "https://api.api-ninjas.com/v2/incometax?country=US&year=2026®ions=federal,CA" \
-H "X-Api-Key: YOUR_API_KEY"If your programming language is not listed in the Code Example above, you can still make API calls by using a HTTP request library written in your programming language and following the above documentation.