Tax All docs

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 credit

Standard, 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.

ParameterInTypeRules
countryquerystringISO 3166-1 alpha-2 · ISO 3166-1 alpha-2 code. EL and UK are accepted as GR and GB.
regionquerystringProvince or territory code. Canada only today (e.g. ON, QC, BC).
GET/v1/tax/rates
curl 'https://api.apifor.dev/v1/tax/rates?country=DE&region=QC' \
  -H 'x-api-key: YOUR_API_KEY'
Example response · 200
{
  "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 parameters
  • 401Missing or invalid API key
  • 402Not enough credits
  • 404No rates stored for this country
  • 503Data store unavailable; see Retry-After
GET/v1/tax/calculate1 credit

Adds tax to a net amount, or takes it out of a gross amount. Rounds half up to cents. 1 credit.

ParameterInTypeRules
country *querystringISO 3166-1 alpha-2 · ISO 3166-1 alpha-2 code. EL and UK are accepted as GR and GB.
amount *querystringNone
rate_typequerystringone of standard, reduced, super_reduced, parking, zero, special · default standard
ratequerynumberPick one rate when the country has several of this type (e.g. FR reduced: 10 or 5.5).
inclusivequerybooleandefault false · true when amount already includes tax.
regionquerystringProvince or territory code. Canada only today (e.g. ON, QC, BC).
GET/v1/tax/calculate
curl 'https://api.apifor.dev/v1/tax/calculate?country=DE&amount=100&region=QC' \
  -H 'x-api-key: YOUR_API_KEY'
Example response · 200
{
  "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 amounts
  • 400Invalid query parameters
  • 401Missing or invalid API key
  • 402Not enough credits
  • 404No rates stored for this country
GET/v1/tax/validate5 credits

EU 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.

ParameterInTypeRules
country *querystringISO 3166-1 alpha-2 · ISO 3166-1 alpha-2 code. EL and UK are accepted as GR and GB.
id *querystringmax 40 chars · The tax ID, with or without country prefix, spaces or dots.
GET/v1/tax/validate
curl 'https://api.apifor.dev/v1/tax/validate?country=DE&id=NL004495445B01' \
  -H 'x-api-key: YOUR_API_KEY'
Example response · 200
{
  "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 result
  • 400Invalid query parameters
  • 401Missing or invalid API key
  • 402Not enough credits
  • 503The registry did not answer. Retry after the Retry-After header (seconds).

Error handling · Rate limits · Prices