NIF and CIF lookup

Type a Spanish company tax number and get the company from the Mercantile Register as published in the BORME: legal name, legal form, status and city, live. The control character is verified in your browser first.

NIF, CIF and what the letter means

A Spanish company’s tax number is nine characters: a letter that encodes the legal form, seven digits and a control character. A is a sociedad anónima, B a sociedad limitada, F a cooperative, G an association or foundation, Q a public body, N a foreign entity, W a permanent establishment. The control is a digit for some letters and a letter for others, and the validator knows which.

CIF is the older name for the same number: since 2008 every taxpayer, person or company, carries a NIF, and the CIF format survived as the NIF of legal entities. People carry a DNI-based NIF (eight digits and a letter) or, for foreigners, a NIE starting with X, Y or Z; those are natural persons and are never returned here.

What the lookup returns

The lookup sends the number to the Prometiam API, which holds the Mercantile Register as published in the BORME, and returns the legal name, legal form, current status and city. Companies are matched on the exact NIF; a name search is used when the input is not a number.

Directors, filings, corporate events, insolvency notices and the full record are one call away with a free key — 1,000 calls a month, no card. For Spain that includes the sheet-closure and tax-debtor risk flags, the company’s BORME acts and its public-procurement awards.

FAQ

Is a CIF different from a NIF?
Not any more. CIF was the name of the company tax number until 2008; today it is the NIF of a legal entity and has the same nine-character format.

Why does a valid NIF return nothing?
The register covers companies published in the BORME; a company registered in the last few days, or an entity that never files with the Mercantile Register, may not be there. Try the name search.

Can I do this in code?
Yes: GET /companies/search?nif=A46103834&country=ES with an API key returns the same record as JSON; the free tier covers 1,000 calls a month.

Open the lookup · Get a free API key

Frequently asked questions

Is a CIF different from a NIF?
Not any more. CIF was the name of the company tax number until 2008; today it is the NIF of a legal entity and has the same nine-character format.
Why does a valid NIF return nothing?
The register covers companies published in the BORME; a company registered in the last few days, or an entity that never files with the Mercantile Register, may not be there. Try the name search.
Can I do this in code?
Yes: GET /companies/search?nif=A46103834&country=ES with an API key returns the same record as JSON; the free tier covers 1,000 calls a month.