Tax ID Validator API

GET

Catch invalid US tax IDs and mask sensitive digits at submission.

Tax ID Validator checks US tax identification numbers including SSNs, EINs, and ITINs for structural validity. It accepts formatted or unformatted strings and returns validation results, normalized formatting, masked numbers, and the last four digits.

Try it — live request, no key required

Request
GETapi.apiverve.com/v1/taxidvalidator?taxid=123-45-6789
Query parameters
Verification
Format

No key required to try it. Get a key to use it in your app.

Example
{
  "status": "ok",
  "error": null,
  "data": {
    "valid": true,
    "taxid": "123-45-6789",
    "type": "SSN",
    "type_full": "Social Security Number",
    "format": "XXX-XX-XXXX",
    "normalized": "123-45-6789",
    "digits_only": "123456789",
    "masked": "***-**-6789",
    "last4": "6789",
    "is_placeholder": true,
    "validation_details": {
      "format_valid": true,
      "area_number_valid": true,
      "group_number_valid": true,
      "serial_number_valid": true
    },
    "risk_score": 35,
    "risk_level": "medium",
    "error": null
  }
}

About the Tax ID Validator API

Tax ID Validator works by analyzing the format and structure of US Tax IDs, validating checksums and rules for SSN, EIN, and ITIN. It detects the type automatically, validates against known invalid patterns, and returns formatted and masked versions.

What people use it for

Form Validation
Validate Tax IDs in online forms and applications to ensure correct format before submission
Compliance
Verify Tax ID format compliance for tax reporting, payroll processing, and financial services
Data Quality
Validate Tax IDs in databases during data cleaning and migration to identify invalid entries
Identity Verification
Check Tax ID format as part of identity verification processes while maintaining privacy with masking

Ways to call it

One endpoint, many ways in — REST with JSON, XML, YAML and CSV, plus GraphQL and an MCP interface for AI agents.

JSON
Default REST response
XML
Markup format
YAML
Human-readable
CSV
Tabular export
Beta
GraphQL
Query language
New
MCP
For AI agents

Other ways to use Tax ID Validator

Same data, same APIVerve account, same credit balance — one key works on all of them.

Questions.

Common questions about the Tax ID Validator API.

Read the docs
Which US tax identification numbers can I validate?
The API validates Social Security Numbers (SSN), Employer Identification Numbers (EIN), and Individual Taxpayer Identification Numbers (ITIN). It automatically detects the type from the input structure and runs format, range, and pattern checks for that specific identifier.
Are risk scores and placeholder detection included on the Free plan?
No, these are premium fields available on paid plans starting with Starter. The Free plan returns basic validity, normalized formatting, masked strings, and specific IRS prefix or range checks. Paid plans unlock risk scores, risk levels, filler detection flags, and detailed breakdown checks for SSN area, group, and serial numbers.
How many tax ID checks does the Free plan cover?
The Free plan covers 20 tax ID checks per month. Each validation costs 10 credits. For production workloads, the Starter plan provides 20,000 checks each month, which works out to $1.50 per 1,000 calls (about $0.0015 per check).
What happens if someone submits a filler number like 123-45-6789?
The validator flags simple sequences and all-identical digits using placeholder detection, even if the structure matches an SSN pattern. On paid plans, the placeholder flag returns true and the composite risk score reflects the higher risk level.
Does the validator require hyphens, or can users submit raw digits?
You can submit tax IDs with or without hyphens. The API accepts unformatted digits, standard hyphens, or mixed punctuation, and returns normalized, digits-only, and properly masked versions alongside the validation results.

Ready to build with Tax ID Validator? Start with 200 free credits — one key unlocks all 300+ APIs.

Explore the catalog

300+ APIs on the same key and the same response shape.

Browse all APIs