January Sale! Get over 30% off when you subscribe to an annual plan!

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.

(4.6)

From 6,576 users

2,100+

Applications using this API

API Status

Online - All Systems Operational

API Response Times

Average
P50
P75
P90
P95
421ms453ms504ms691ms1365ms

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

  • country  required

    2-letter country code (e.g., US, CA)

  • year  required

    The tax year for which to retrieve data

  • regions  optional

    Comma-separated list of regions to filter the response. For United States, specify 2-letter state codes (e.g., AL, CA, NY) or federal for federal tax information only. For Canada, specify 2-letter provincial codes (e.g., ON, BC, QC) or federal for 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-Key  required

    API Key associated with your account.

Response

  • country

    The country for which the tax rates are being retrieved.

  • year

    The tax year for which the tax rates are being retrieved.

  • federal

    The federal tax rates for the given country and year.

  • fica premium only

    The FICA tax rates, including breakdown of social security and medicare percentages and social security cap, for the given country and year (US only).

  • states premium only

    The state tax rates for the given country and year (US only).

  • provinces premium only

    The provincial tax rates for the given country and year (Canada only).

Sample Request Live Demo!

country
regions
year

Try this API endpoint with all available parameters in our API playground

https://api.api-ninjas.com/v2/incometax?country=US&year=2026&regions=federal,CA

Headers

X-Api-KeyLog in or sign up to get your API Key

Sample Response

JSON

Code Examples

1 2 curl -X GET "https://api.api-ninjas.com/v2/incometax?country=US&year=2026&regions=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.