API URL
GET /api/v1/income-tax
Headers
Code
Content-Type: application/jsonQuery Parameters
Param
Type
Description
filingStatus
optional
string
Supported filing status with default single
taxYear
optional
number
Integer in accepted current-year-minus-29 through current-year range with default 2024
income
optional
number
Non-negative gross income
deductions
optional
number
Non-negative deductions in addition to standard deduction
taxCredits
optional
number
Non-negative federal credits applied after bracket calculation
stateRate
optional
number
Optional state-rate percentage from 0 through 20
Example GET Request
Code
GET https://datpaq.com/api/v1/income-tax?api_key=your-api-key&filingStatus=single&taxYear=2024&income=120000&deductions=5000&taxCredits=2000&stateRate=5.5Successful Response
Status
HTML
200 OKBody
Code
{
"success": true,
"source": "snapshot",
"taxYear": 2024,
"filingStatus": "single",
"grossIncome": 120000,
"standardDeduction": 14600,
"additionalDeductions": 5000,
"taxCredits": 2000,
"totalDeductions": 19600,
"taxableIncome": 100400,
"totalFederalTax": 17141,
"totalFederalTaxAfterCredits": 15141,
"stateRate": 5.5,
"estimatedStateTax": 5522,
"totalEstimatedTax": 20663,
"effectiveRate": 14.28,
"effectiveRateAfterCredits": 12.62,
"totalEffectiveRate": 17.22,
"marginalRate": 0.22,
"estimatedMonthlyTax": 1262,
"estimatedMonthlyTotalTax": 1722,
"breakdown": [
{
"rate": 0.1,
"bracketStart": 0,
"bracketEnd": 11600,
"taxedAmount": 11600,
"taxAmount": 1160
},
{
"rate": 0.12,
"bracketStart": 11600,
"bracketEnd": 47150,
"taxedAmount": 35550,
"taxAmount": 4266
},
{
"rate": 0.22,
"bracketStart": 47150,
"bracketEnd": 100525,
"taxedAmount": 53250,
"taxAmount": 11715
}
],
"metadata": {
"correlationId": "request-id",
"api_token_name": null,
"processingTime": "5ms",
"timestamp": "2026-10-14T12:00:00.000Z",
"rate_limit": null
}
}Field
Type
success
boolean
source
string
supportedTaxYears
object
filingStatuses
array
currency
string
taxYear
number
filingStatus
string
grossIncome
number
standardDeduction
number
additionalDeductions
number
taxCredits
number
totalDeductions
number
taxableIncome
number
totalFederalTax
number
totalFederalTaxAfterCredits
number
stateRate
number
estimatedStateTax
number
totalEstimatedTax
number
effectiveRate
number
effectiveRateAfterCredits
number
totalEffectiveRate
number
marginalRate
number
estimatedMonthlyTax
number
estimatedMonthlyTotalTax
number
breakdown
array
brackets
array
metadata
object
correlationId
string
api_token_name
string
processingTime
string
timestamp
string
rate_limit
object
error
string
details
array
Error Response
Example
Code
HTTP 400 ValidationError: Invalid query or unsupported filing status tax year or numeric range — Request rejected by schema or service validation; HTTP 401 Unauthorized: Missing or invalid API key — Gateway authentication rejects the request; HTTP 404 NotFound: Unknown route or requested year has no available tax tables — Request cannot be resolved; HTTP 429 RateLimited: Request volume exceeds 200 per 15-minute window per IP — Rate limiter rejects the request; HTTP 500 InternalError: Metrics generation failure — Metrics route returns an empty HTTP 500 response; HTTP 502 ProcessingError: Unexpected tax-table or calculation failure — Route returns a processing error with response metadata; HTTP 503 DataUnavailable: Database query failed and snapshot fallback is unavailable — Service reports temporary tax-table unavailabilityLast Updated: May 4, 2026