Check Format
GEThttps://api-vat.dataandapis.com/v1/vat/format
Check Format is an endpoint of the VAT Validation API. Validate EU VAT numbers against VIES with registered name and address where disclosed.
Send your key in the X-Api-Key header. Each call costs 2 tokens; a free key includes 500 tokens a month.
Request
Query parameters
| Parameter | Example | |
|---|---|---|
| vat | ATU13585627 | Required |
Example request
curl
curl "https://api-vat.dataandapis.com/v1/vat/format?vat=ATU13585627" \
-H "X-Api-Key: YOUR_API_KEY"JavaScript / TypeScript (dataandapis package)
// npm install dataandapis
import { DataAndApis } from "dataandapis";
const client = new DataAndApis(); // reads DATAANDAPIS_API_KEY
const data = await client.vat.checkFormat({ vat: "ATU13585627" });Node.js (fetch)
const res = await fetch("https://api-vat.dataandapis.com/v1/vat/format?vat=ATU13585627", {
headers: { "X-Api-Key": process.env.DATAANDAPIS_KEY },
});
const data = await res.json();Python (dataandapis package)
# pip install dataandapis
from dataandapis import DataAndApis
client = DataAndApis() # reads DATAANDAPIS_API_KEY
data = client.vat.check_format(vat="ATU13585627")Python (requests)
import os, requests
r = requests.get(
"https://api-vat.dataandapis.com/v1/vat/format?vat=ATU13585627",
headers={"X-Api-Key": os.environ["DATAANDAPIS_KEY"]},
)
data = r.json()Guide to the dataandapis npm package →Guide to the dataandapis Python package →
Example response
Example response
{
"ok": true,
"country": "AT",
"country_name": "Austria",
"vat_number": "ATU13585627",
"syntax_valid": true,
"expected_format": "ATU + 8 digits",
"example": "ATU13585627"
}