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

ParameterExample
vatATU13585627Required

Example request

curl
curl "https://api-vat.dataandapis.com/v1/vat/format?vat=ATU13585627" \
  -H "X-Api-Key: YOUR_API_KEY"
Node.js
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
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()

Example response

Example response
{
  "ok": true,
  "country": "AT",
  "country_name": "Austria",
  "vat_number": "ATU13585627",
  "syntax_valid": true,
  "expected_format": "ATU + 8 digits",
  "example": "ATU13585627"
}