Tax API Reference
3 routes. Base URL https://api.apifor.dev, authenticated with x-api-key. Failed calls are not charged. Overview, limits and sources are on the VAT rates and VAT number validation API page.
GET
/v1/tax/rates1 creditStandard, reduced and other rates for one country, with the tax name, effective date, source URL and the date we last checked it. Leave out country to list every covered country. 1 credit.
| Parameter | In | Type | Rules |
|---|---|---|---|
| country | query | string | ISO 3166-1 alpha-2 · ISO 3166-1 alpha-2 code. EL and UK are accepted as GR and GB. |
| region | query | string | Province or territory code. Canada only today (e.g. ON, QC, BC). |
curl 'https://api.apifor.dev/v1/tax/rates?country=DE®ion=QC' \
-H 'x-api-key: YOUR_API_KEY'{
"success": true,
"data": {
"country": "DE",
"region": null,
"tax_name": "VAT",
"standard_rate": 19,
"components": [
{
"tax": "VAT",
"rate": 19
}
],
"reduced_rates": [
7
],
"super_reduced_rates": [],
"parking_rates": [],
"special_rates": [],
"zero_rated": false,
"effective_from": "2026-07-01",
"effective_from_basis": "tedb_version",
"source": "EC TEDB",
"source_url": "https://ec.europa.eu/taxation_customs/tedb/#/vat-search-result",
"checked_at": "2026-11-28",
"rates": [
{
"type": "standard",
"rate": 19,
"tax": "VAT",
"categories": [],
"note": null,
"effective_from": "2026-07-01",
"effective_from_basis": "tedb_version",
"source": "EC TEDB",
"source_url": "https://ec.europa.eu/taxation_customs/tedb/#/vat-search-result",
"checked_at": "2026-11-28"
},
{
"type": "reduced",
"rate": 7,
"tax": "VAT",
"categories": [
"ACCOMMODATION",
"CULTURAL_EVENTS"
],
"note": null,
"effective_from": "2026-07-01",
"effective_from_basis": "tedb_version",
"source": "EC TEDB",
"source_url": "https://ec.europa.eu/taxation_customs/tedb/#/vat-search-result",
"checked_at": "2026-11-28"
}
]
},
"meta": {
"attribution": {
"source": "European Commission, Taxes in Europe Database (TEDB)",
"license": "CC BY 4.0",
"license_url": "https://creativecommons.org/licenses/by/4.0/",
"source_url": "https://ec.europa.eu/taxation_customs/tedb/#/vat-search-result",
"attribution_page": "https://commission.europa.eu/legal-notice_en",
"notice": "© European Union. APIFor groups TEDB entries into one rate per type and simplifies categories."
}
}
}200Rates for the country (or the list of covered countries)400Invalid query parameters401Missing or invalid API key402Not enough credits404No rates stored for this country503Data store unavailable; see Retry-After
GET
/v1/tax/calculate1 creditAdds tax to a net amount, or takes it out of a gross amount. Rounds half up to cents. 1 credit.
| Parameter | In | Type | Rules |
|---|---|---|---|
| country * | query | string | ISO 3166-1 alpha-2 · ISO 3166-1 alpha-2 code. EL and UK are accepted as GR and GB. |
| amount * | query | string | None |
| rate_type | query | string | one of standard, reduced, super_reduced, parking, zero, special · default standard |
| rate | query | number | Pick one rate when the country has several of this type (e.g. FR reduced: 10 or 5.5). |
| inclusive | query | boolean | default false · true when amount already includes tax. |
| region | query | string | Province or territory code. Canada only today (e.g. ON, QC, BC). |
curl 'https://api.apifor.dev/v1/tax/calculate?country=DE&amount=100®ion=QC' \
-H 'x-api-key: YOUR_API_KEY'{
"success": true,
"data": {
"country": "DE",
"region": null,
"rate_type": "standard",
"rate": 19,
"inclusive": false,
"tax_name": "VAT",
"net": 100,
"tax": 19,
"gross": 119,
"breakdown": [
{
"tax": "VAT",
"rate": 19,
"amount": 19
}
],
"rounding": "half_up_to_cents",
"source": "EC TEDB",
"source_url": "https://ec.europa.eu/taxation_customs/tedb/#/vat-search-result",
"checked_at": "2026-11-28"
},
"meta": {
"attribution": {
"source": "European Commission, Taxes in Europe Database (TEDB)",
"license": "CC BY 4.0",
"license_url": "https://creativecommons.org/licenses/by/4.0/",
"source_url": "https://ec.europa.eu/taxation_customs/tedb/#/vat-search-result",
"attribution_page": "https://commission.europa.eu/legal-notice_en",
"notice": "© European Union. APIFor groups TEDB entries into one rate per type and simplifies categories."
}
}
}200Calculated amounts400Invalid query parameters401Missing or invalid API key402Not enough credits404No rates stored for this country
GET
/v1/tax/validate5 creditsEU numbers are checked live in VIES. UK, AU, NZ, CH, NO, BR, IN and SG numbers get a format and check-digit test (source format_check) unless a live registry key is configured. valid is null when the registry could not answer. 5 credits.
| Parameter | In | Type | Rules |
|---|---|---|---|
| country * | query | string | ISO 3166-1 alpha-2 · ISO 3166-1 alpha-2 code. EL and UK are accepted as GR and GB. |
| id * | query | string | max 40 chars · The tax ID, with or without country prefix, spaces or dots. |
curl 'https://api.apifor.dev/v1/tax/validate?country=DE&id=NL004495445B01' \
-H 'x-api-key: YOUR_API_KEY'{
"success": true,
"data": {
"country": "NL",
"id": "004495445B01",
"valid": true,
"source": "vies",
"checked_at": "2026-11-28T15:39:39.485Z",
"name": "OPENJONGERENVERENIGING DE KOORNBEURS",
"address": "VOLDERSGRACHT 00001, 2611ET DELFT",
"cached": false
}
}200Validation result400Invalid query parameters401Missing or invalid API key402Not enough credits503The registry did not answer. Retry after the Retry-After header (seconds).