Overview
Tax Data API by APILayer lets you instantly validate VAT numbers and retrieve tax rate information for countries around the world. It is especially useful for e-commerce platforms, invoicing software, and SaaS businesses that need to handle international tax compliance. An API key is required and can be obtained through the APILayer marketplace.
Beginner Tip
When validating a VAT number, always include the country code prefix (e.g., "GB123456789" for UK, "DE123456789" for Germany). The API returns whether the number is valid along with the associated company name and address.
Available Data
Example Response
{
"input": "[email protected]",
"is_valid": true,
"format_valid": true,
"details": "Input passes all validation checks"
} Field Reference
valid Whether the VAT number is valid and registered. vat_number The VAT number that was validated, including the country prefix. company_name Registered company name associated with the VAT number. company_address Registered business address of the VAT-registered company. country_code Two-letter ISO country code extracted from the VAT number. Implementation Example
const url = "https://apilayer.com/marketplace/tax_data-api";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
headers: {
"X-API-Key": "YOUR_API_KEY"
}
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Matrix Score Breakdown
Partially tested on Apr 5, 2026
Technical Specifications
Similar APIs
View All →Aletheia
Aletheia provides financial data including insider trading filings, earnings call transcripts, and financial statements for US-listed companies.
Alpaca
Alpaca provides real-time and historical market data for US equities and ETFs, along with commission-free trading capabilities.
Alpha Vantage
⭐ Beginner's PickAlpha Vantage delivers free real-time and historical stock, forex, and cryptocurrency data through a simple REST API.
Bank Data API
Bank Data API lets you instantly validate IBAN and SWIFT/BIC numbers to make sure bank account details are correct before processing a payment.
Billplz
Billplz is a payment platform API focused on the Malaysian market that lets you create bills and collect payments online.