AI agents: the setup steps for Vatlayer are in the Agents section of this page (#agents) and as Markdown at /products/vatlayer/agents.md. Index of every APILayer API: https://apilayer.com/llms.txt

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

Playground tab is switched off on the live page (AP-6510). Delete this widget to turn it back on.

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 plans 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 6 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 6 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 6 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 6 features

Custom

Need more? Contact sales for custom needs.

Contact us

Compare all features

6 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–
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
    • /price Calculate a VAT-compliant price
    • /types List product types
    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 simple REST-based JSON API offering instant EU VAT number validation, VAT compliant price calculations and VAT rates for all 27 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.

02.Who runs the Vatlayer API?

Vatlayer is a product built and maintained by APILayer, the company behind 17 developer APIs, including Exchange Rate API, Numverify and Mailboxlayer. You can learn more on the Why choose APILayer page.

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

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.Does Vatlayer support reduced VAT rates?

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

06.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").

See the API's Documentation for details.

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

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

09.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 27 EU member states.

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

See the API's Documentation for details.

API access

01.Is Vatlayer secure?

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

02.How do I get an API Access Key?

Every registered user is assigned a personal Access Key, a unique "password" that can be used to access and query the Vatlayer API. If you are logged in, you can find it in your Account Dashboard and in all interactive links contained in the API's Documentation.

In your Account Dashboard you can reset your Access Key at any given time.

In order to make an API Request, you are required to attach your Access Key to a valid API endpoint URL, e.g: https://api.apilayer.net/vatlayer/validate?access_key=YOUR_ACCESS_KEY

03.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 API's endpoints counts as one "API Request".

04.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%. At the current stage we are not offering any public statistics, but we will be happy to provide you with recent uptime reports - ask us »

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

See the API's Documentation for details.

06.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's IP address directly.

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

See the API's Documentation for details.

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

See the API's Documentation for details.

Plans & pricing

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

02.What is the difference between Free and Paid Subscriptions?

The Free Plan is set out to be a "trial version" without a time limit, offering a volume of 100 monthly API requests and a slightly limited set of functionalities.

Paid Subscription Plans feature significantly higher API Request volumes, ensure secure datastreams via 256-bit HTTPS Encryption, include unlimited and prioritised technical support, and offer a variety of must-have API functionalities.

03.Which Subscription Plan fits my needs?

In order to test the API and to get an idea of the product, you can simply sign up for the Free Plan.

As soon as you or your application requires more than 100 API requests per month and more professional API functionality, you would be well-advised to sign up for one of the paid Subscription Plans, starting at only USD 9.99 per month, or at up to 15% Discount - if you decide to pay annually.

04.Which payment methods are supported?

Payments can be made via Credit Card (Visa, MasterCard, Discover, Diner's Club). You can change your payment method at any given time in the Payment section of your Account Dashboard.

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

06.How do I cancel/downgrade?

You can initiate a cancellation or downgrade by selecting a new plan and providing at least one reason for your decision. The customer service team will cancel or downgrade your plan. Downgrades are not effective immediately; your premium subscription will remain active until the end of the current billing period.

07.How do I change between monthly and yearly billing?

To change your subscription from monthly to yearly billing, submit a request on the Contact Us page following these steps:

Step 1: Sign in to your account.

Step 2: Go to the Contact Us page.

Step 3: Fill out the form and choose the “Sales” category for this request.

Step 4: In the text box, include your specific request, for example “Change from Monthly to Yearly subscription.”

Overages

01.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. You can learn more about overages billing here.

02.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. See the table below for prices per call and an example of an overage billing.

PlanMonthly priceRequests / monthPrice per extra requestExtra requestsOverage cost
Starter$9.991,000$0.0399610,000$399.60
Professional$29.994,000$0.0299910,000$299.90
Enterprise$99.9920,000$0.01999810,000$199.98

Note: For complete details, please refer to the overages documentation here.

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

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

05.How will I be charged for my API subscription?

You will be charged for your monthly subscription plan, plus any overage fees applied. Your credit card will be billed after the billing period has ended.

06.What happens if I don't have any overage fees?

In this case, there will be no change to your monthly invoice. Only billing cycles that incur overages will see any difference in monthly charges. The Business Continuity plan is an insurance plan to be used only if needed and guarantees your end users never see a drop in coverage from you.

07.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. Find out about our pricing plans here.

08.I would like to upgrade my plan. How can I do that?

You can easily upgrade your plan by going to your Dashboard and selecting the new plan that would be more suitable for your business needs. Additionally, you may contact your Account Manager to discuss a custom plan if you expect a continuous increase in usage.

Still have a question?

Contact support