Vatlayer

Operational

VAT validation & EU VAT rates API · by APILayer

  • Finance
  • JSON
  • 27 EU member states
  • 99.9% uptime
Get your API key

Free plan · 100 requests / month · no card

Overview

API info

Automate VAT number validation, VAT rate lookups, company information, and VAT-compliant price calculations with a simple, developer-friendly REST API.

Example request

GETShellcurl
curl --request GET \
  --url "https://api.apilayer.net/vatlayer/validate?access_key=YOUR_ACCESS_KEY&vat_number=LU26375245"
Run it in the Playground

Example response

200 - OK
{
    "valid": true,
    "database": "ok",
    "format_valid": true,
    "query": "LU26375245",
    "country_code": "LU",
    "vat_number": "26375245",
    "company_name": "AMAZON EUROPE CORE S.A R.L.",
    "company_address": "38, AVENUE JOHN F. KENNEDY L-1855  LUXEMBOURG"
}

Features

  • Easy to integrate

    Connect to a straightforward REST API using an HTTP GET request and receive lightweight JSON responses. Integrate VAT data into your ecommerce platform, billing system, SaaS product, accounting software, or internal tools.

  • Instant VAT number validation

    Verify EU VAT numbers in real time and retrieve available company information. Give your application an automated way to check whether a customer’s VAT registration is valid before completing a transaction.

  • Accurate EU VAT rates

    Retrieve current VAT rates for individual EU member states or access VAT-rate information for all the 27 EU countries.

  • Standard & reduced VAT rates

    VAT rules can vary depending on the type of goods or services being sold. Vatlayer provides access to standard and applicable reduced VAT rates, helping applications account for different tax categories.

  • Flexible country detection

    Request VAT rates using a country code, a custom IP address, or the client’s IP address, making it possible to build location-aware pricing and checkout experiences.

  • Built for developers

    Interactive documentation, lightweight JSON responses, accessible via HTTP GET Method, usage statistics, and a simple endpoint structure make Vatlayer easy to integrate into modern applications.

Pricing

Flexible plan for every stage of growth

Start free. Upgrade when you go live.

MonthlyYearlySave up to 15%

Free

For testing and side projects

$0forever

No credit card

No overage charges

Get free API key

100 requests / month

Includes:

  • VAT number validation
  • VAT rates
  • Price calculation
  • HTTPS 256-bit
See all 7 features

Starter

For your first live product

$9.99/ month

Billed monthly

Then $0.03996 per extra request, up to 2,000 extra a month

Subscribe now

1,000 requests / month

Everything in Free, plus:

  • Commercial use
  • Standard support
See all 7 features
Most popular

Professional

For growing traffic

$29.99/ month

Billed monthly

Then $0.02999 per extra request, up to 8,000 extra a month

Subscribe now

4,000 requests / month

Everything in Starter, plus:

  • 4× the requests of Starter
  • Lower cost per request
See all 7 features

Enterprise

For high volume

$99.99/ month

Billed monthly

Then $0.019998 per extra request, up to 40,000 extra a month

Subscribe now

20,000 requests / month

Everything in Professional, plus:

  • 5× the requests of Professional
  • Lower cost per request
See all 7 features

Custom

Need more? Contact sales for custom needs.

Contact us

Compare all features

7 featuresFree$0Get free keyStarter$9.99/moSubscribeProfessional$29.99/moSubscribeEnterprise$99.99/moSubscribe
VAT number validation
VAT rates
Price calculation
HTTPS 256-bit
Commercial use–
Standard support–
Custom solutions––––
Price per extra request after the monthly limitNone$0.03996$0.02999$0.019998

Playground

Try the API

Build a request in your browser and see the response it returns.

GET

Add your free API key to run it from your code.

curl
200 - OK

      
    

Agents

Agents: start here

Steps for AI coding agents that add Vatlayer to a project.

  1. 1Get an API key

    A person creates the account: an agent cannot sign up. Sign up at app.apilayer.com and subscribe to Vatlayer. The Free plan includes 100 requests / month and needs no credit card.

    Copy the API key from the APILayer dashboard and give it to the agent as an environment variable (step 2).

  2. 2Keep the key out of code

    Read the key from an environment variable named APILAYER_ACCESS_KEY. Do not write the key into source code, commit it to git, or paste it into a chat.

    Call Vatlayer from server code. The key travels in the request URL, so a request sent from a browser shows the key to every visitor.

    .env
    # add .env to .gitignore
    APILAYER_ACCESS_KEY=your_api_key
  3. 3Make the first request

    Base URL
    https://api.apilayer.net/vatlayer
    Auth
    access_key query parameter
    Formats
    JSON
    Endpoints
    • /validate Validate VAT number
    • /rate VAT rate
    • /rate_list Rate list
    Shell
    curl "https://api.apilayer.net/vatlayer/validate?access_key=$APILAYER_ACCESS_KEY&vat_number=LU26375245"

    The API info tab shows the response this request returns.

  4. 4Check the plan before you use a feature

    Each plan adds features to the plan before it. Check that the account's plan includes a feature before writing code that uses it.

    PlanRequests / monthAdds
    Free100VAT number validation, VAT rates, Price calculation, HTTPS 256-bit
    Starter1,000Commercial use, Standard support
    Professional4,000Same features as Starter
    Enterprise20,000Same features as Professional

    Prices are in the Pricing tab.

  5. 5Use the machine-readable docs

FAQs

Need clarity?

Here are the answers you might be seeking

Data & features

01.What is Vatlayer?

Vatlayer is a REST-based JSON API for automating EU VAT number validation, VAT rate lookups, VAT-compliant price calculations, and related VAT information.

02.What can I do with the Vatlayer API?

You can validate EU VAT numbers, retrieve company information, request VAT rates for individual countries, retrieve VAT rates across the supported EU countries, and calculate VAT-compliant prices.

03.Can I validate a VAT number in real time?

Yes. The validate endpoint allows you to submit an EU VAT number and receive validation results and available company information in JSON format.

04.Can Vatlayer return company information?

Yes. When validating a VAT number, the API can return available company information associated with the VAT registration.

05.Can I retrieve VAT rates for a specific country?

Yes. The VAT-rate endpoint allows you to specify a country using a two-letter country code. You can also determine the country using an IP address.

06.Can I retrieve VAT rates for all EU countries?

Yes. Vatlayer provides a dedicated rate_list endpoint for retrieving VAT-rate information for the supported EU member states.

07.Does Vatlayer support reduced VAT rates?

Yes. The API provides standard and reduced VAT rates, including type-specific rates where applicable.

08.Where does Vatlayer get its VAT data?

Vatlayer uses multiple data sources and a fallback and validation system. Its published sources include databases from the European Commission.

09.How current is the VAT data?

Vatlayer states that EU VAT number validations, VAT-compliant price calculations, and EU VAT rates are delivered or performed in real time.

10.What format does the API return?

Vatlayer returns VAT information in lightweight JSON, making it compatible with a wide range of programming languages, applications, and backend systems.

11.What is vatlayer?

Vatlayer is a simple REST-based JSON API offering instant EU VAT number validation, VAT compliant price calculations and VAT rates for all 28 current member states of the European Union. Its system is secured by HTTPS and focused on ease of use & integration, delivering all VAT data in lightweight and highly portable JSON format.

This level of compatibility, paired with startup- and developer-friendly pricing and a full stack of features makes the vatlayer API a perfect VAT rate automation and number validation tool for individuals, businesses and merchants selling and buying goods in and around the European Union.

12.Where does the API's VAT data come from?

At vatlayer we aim to provide the highest possible level of data accuracy and response speed possible. In order to achieve this for every API request, the vatlayer API relies on multiple servers and a distinct "fallback & validation" mechanism, consisting of a fairly large number of different data sources (instances), which include the European Commission's databases. If one instance fails to deliver an accurate data response (which does not even occur in 99.9% of the cases), the next highest one is assigned with the respective request. Only this way can we provide a consistent service and API living up to our customer's expectations.

13.How up-to-date is the data returned by the vatlayer API?

All EU VAT number validations, VAT compliant price calculations and EU VAT rates are delivered and performed in real-time. The vatlayer API's average response time is around 0.50 seconds.

14.Does the vatlayer API provide data for the entire European Union?

Yes. You may access accurate VAT information and execute all existing functions for all 28 EU member states.

15.What are "standard" and "reduced" rates?

A country's standard rate is the VAT rate applying to the vast majority of circulating products (e.g. a VAT of 20% in the UK). However, each country defines certain types of goods falling into reduced VAT categories (e.g: In the United Kingdom, there is no VAT for medical products, and a VAT percentage of 5% for "property renovations").

16.Can I validate a VAT number and find out which company it belongs to?

Yes. All you have to do to validate a EU VAT number is append it to the API's validate endpoint URL as a query parameter. API results are returned in simple and easily parseable JSON format.

17.How can I access EU VAT rates for a certain country?

There are three different parameters that can be attached to the API's rate endpoint in order to define the country to obtain VAT rates for. First of all, you can specify a standard 2-letter country_code (e.g. GB). Alternatively, you may provide a custom ip_address and have our API locate the corresponding country. The third option for defining the country is appending the API's use_client_ip parameter and setting it to 1, which will cause our system to locate the client't IP address directly.

Please note that you must choose only one of the above parameters in order for your query to work.

API access

01.Is Vatlayer secure?

Yes. All plans, including Free, access the API through industry-standard 256-bit HTTPS encryption.

02.What is an API request?

Pricing is based on the number of monthly API Requests offered for each individual Subscription Plan. Accessing any type of the API's EU VAT data using a valid API Access Key and one of the 4 main API endpoints counts as one "API Request".

03.What is the API's uptime?

The vatlayer API's system status is being closely monitored around the clock. Since every effort is made to ensure the highest possible level of consistency, we are happy to announce that our API's uptime is at around 99.9%.

04.Can I also request VAT rates for all EU member states at once?

Yes. Using the API's rate_list endpoint, you may request an entire set of EU VAT rates in a single API call. Please note that requesting this endpoint results in a significantly larger response size, which may have a negative impact on your application's performance.

Plans & pricing

01.Can Vatlayer calculate VAT-inclusive prices?

Yes. The price endpoint can calculate VAT-compliant prices based on an amount, country, and applicable product type. It also supports reverse calculations when the supplied amount already includes VAT.

02.Is there a free plan?

Yes. The Free plan includes 100 API requests per month and provides access to core VAT functionality for non-commercial use.

03.Can the API calculate VAT compliant prices for me?

Yes. Using the API's price endpoint, you may provide an amount, define a country and request the API to calculate a VAT compliant price on your behalf. You may also provide a specific type of product (according to the API's types endpoint) or, in case the amount you provided already includes a VAT percentage, perform reverse price calculations.

04.Can I also pay yearly?

Yes. If you choose annual billing, the total price of your subscription plan will be up to 15% lower than the total amount you would pay with a monthly payment frequency.

05.What if I consistently have more API calls than my plan allows?

If your usage consistently surpasses the set limits each month, you may face additional charges for the excess usage. Nevertheless, as your monthly usage reaches a certain threshold, it becomes more practical to consider upgrading to the next plan. By doing so, you ensure a smoother and more accommodating experience for your growing customer base.

Overages

01.What happens when I reach my API limit?

Vatlayer notifies users at 75%, 90%, and 100% of their monthly allowance. Once the allowance is exceeded, overage fees can apply so applications can continue running without interruption.

02.What happens if I exceed my API Request volume?

Users will be automatically notified via e-mail and on their Account Dashboard once at least 75%, 90%, and 100% of their monthly API Request allowance has been reached. After reaching 100% of the allowance, overages fees will apply so we make sure you won’t experience any disruptions and your website/application will keep running smoothly.

03.What is an overage?

An overage occurs when you go over a quota for your API plan. When you reach your API calls limit, we will charge you a small amount for each new API call so we can make sure there will be no disruption in the service we provide to you and your website or application can continue running smoothly.

Prices for additional API calls will vary based on your plan.

04.Why does APILayer have overage fees?

Overage fees allow customers to continue using an API once a quota limit is reached. We want to make sure your website or application continues running at all times, so charges will apply if you go over your monthly quota limit. If you notice you are going over your quota limit each month, look on your dashboard for an upgraded plan to help with larger request limits.

05.How do I know if I will be charged for overages?

When you are close to reaching your API calls limit for the month, you will receive an automatic notification (at 75%, 90%, and 100% of your monthly quota). You can keep track of your quota usage to prevent overages by tracking the number of API calls you make and checking the dashboard for up-to-date usage statistics.

Still have a question?

Contact support