Spanish Tax & Government APIs.
The largest collection of public APIs, fiscal validators and administrative services for Spain. Build accounting, invoicing, ERP, SaaS and compliance software faster.
Quick start
Copy-paste examples for the most common tasks. The validator endpoints are free, need no key, and are CORS-open so you can call them from the browser.
Check the control digit of any NIF, NIE or CIF — free, no API key.
fetch("https://developers.autonomo-simple.es/api/validate-nif?value=B12345674")
.then((res) => res.json())
.then(console.log);
// { value: "B12345674", valid: true, type: "CIF", entityType: "Sociedad Limitada", ... }Verify an intra-community VAT number against the European Commission VIES service.
fetch("https://ec.europa.eu/taxation_customs/vies/rest-api/ms/ES/vat/A58818501")
.then((res) => res.json())
.then(console.log);
// { isValid: true, name: "...", address: "..." }The official euro reference rates the AEAT uses — daily, from the European Central Bank.
fetch("https://data-api.ecb.europa.eu/service/data/EXR/D.USD.EUR.SP00.A?lastNObservations=1&format=jsondata")
.then((res) => res.json())
.then(console.log);Query every public subsidy convened in Spain from the national grants database.
fetch("https://www.infosubvenciones.es/bdnstrans/api/convocatorias/busqueda?page=0&pageSize=10")
.then((res) => res.json())
.then(console.log);Fiscal validators
Control-digit checks running locally — no network, no key, nothing leaves your browser. The same algorithms back the public /api/validate-* endpoints. ✓ Verified June 2026
NIF · NIE · CIF validator
Control-digit check (mod-23) + entity type. Mirrors GET /api/validate-nif.
IBAN validator
MOD-97 checksum (ISO 13616), any country. Mirrors GET /api/validate-iban.
Tax identity & VAT
Validate intra-community operators and EU VAT numbers.
Grants & public funding
Every public subsidy convened in Spain.
Legislation & gazettes
Official State text and the Mercantile Registry.
Daily summaries, provisions and consolidated legislation in XML/JSON. Useful to watch for fiscal regulation changes.
Acts filed with the Mercantile Registry (incorporations, appointments, dismissals) published daily as open data.
Cadastre & real estate
Cadastral data and property references.
Statistics & open data
Official indicators and the national catalogue.
Official series in JSON: CPI, demographics, social-security registration, wages… A base for indexing amounts or contextualising calculations.
National open-data catalogue (tens of thousands of datasets from every administration) with a search & download API.
Currencies
Official exchange rates for multi-currency invoicing.
Building software for Spain?
Autónomo Simple handles Spanish tax, invoicing and compliance so you don't have to.