Data Sources

GEThttps://api-vat.dataandapis.com/v1/sources

Data Sources 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

This endpoint takes no parameters.

Example request

curl
curl "https://api-vat.dataandapis.com/v1/sources" \
  -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.dataSources();
Node.js (fetch)
const res = await fetch("https://api-vat.dataandapis.com/v1/sources", {
  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.data_sources()
Python (requests)
import os, requests

r = requests.get(
    "https://api-vat.dataandapis.com/v1/sources",
    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,
  "sources": [
    {
      "slug": "vies",
      "name": "VIES — VAT Information Exchange System",
      "publisher": "European Commission (DG TAXUD)",
      "licence": "official EU validation service",
      "source_url": "https://ec.europa.eu/taxation_customs/vies/",
      "file_url": "https://ec.europa.eu/taxation_customs/vies/rest-api/check-vat-number",
      "cadence": "registry answers are stored and served for up to 24 hours by default (max_age, in seconds, changes that; max_age=0 checks live); stored numbers are re-checked nightly; if the registry is unreachable the last known answer is returned with stale: true"
    }
  ]
}