Spain

Spain APIs

DNI, NIE and CIF checks with their control letters, postal codes for every province, holidays, IBAN and live VIES VAT checks.

What LiveAPI covers in Spain

ID and tax numbersDNI, NIE, CIF / NIF de entidad
Postal codes37,000+ postal codes with community and province.
Public holidaysNational and regional holidays via Nager.Date.
IBANLength and checksum, with the country's IBAN format.
VAT numbersLive check against EU VIES.
License platesFormat checks.

ID, tax and company numbers

  • DNI POST /v1/validate/ES/dni
    8 digits and the mod 23 control letter. Example: 12345678Z
  • NIE POST /v1/validate/ES/nie
    X, Y or Z, 7 digits and the control letter. Example: X1234567L
  • CIF / NIF de entidad POST /v1/validate/ES/cif
    Entity letter, province, number and control digit or letter. Example: B12345674

Checks are algorithmic only (registry_checked: false). Values are never stored or logged.

More Spain APIs

FAQ

Can I check a live VAT number?

Yes. POST /v1/vat/validate asks the European Commission's VIES service whether the VAT number is active.

We value your privacy

We use necessary cookies to run this website. With your consent, we would also like to use analytics and marketing cookies. Read our cookie policy.