n8n-nodes-anaf
v0.1.0
Published
n8n community node for ANAF company lookup by CUI (Romanian tax ID)
Downloads
41
Maintainers
Readme
n8n-nodes-anaf
Community n8n node for ANAF company lookups — verify any Romanian company by its CUI (tax ID) through ANAF's free public REST API. No API key, no auth.
Returns official name, address, VAT registration, activity code, and active/dissolved status — the due-diligence check sales, accounting, legal, and procurement teams run before contracting with a company.
Nodes
| Node | What it does | | --- | --- | | ANAF Company Lookup | Company details, VAT verification, active/dissolved status, and batch lookup by CUI. |
Installation
From the n8n UI (recommended)
- Go to Settings → Community Nodes → Install.
- Enter
n8n-nodes-anafand confirm. - The ANAF Company Lookup node appears in the node panel.
With npm
npm install n8n-nodes-anafExample workflow
workflows/anafCompanyLookup-example.json —
lead qualification: take a lead's CUI → look it up → if the company is active and VAT
registered, create a CRM deal; otherwise send an internal alert and skip. Import via
Workflows → Import from File and swap the placeholders for your CRM / Slack nodes.
Local development
cd <this-package>
npm install
npm run buildRun inside n8n via Docker:
docker run -it --rm --name n8n -p 5678:5678 `
-v n8n_data:/home/node/.n8n `
-v "<ABSOLUTE_PACKAGE_PATH>:/home/node/.n8n/custom/n8n-nodes-anaf" `
-e N8N_CUSTOM_EXTENSIONS="/home/node/.n8n/custom/n8n-nodes-anaf" `
docker.n8n.io/n8nio/n8nOpen http://localhost:5678.
Tests
npm testTests run against a real ANAF API response snapshot plus synthetic dissolved/inactive fixtures, covering CUI normalization, the full field mapping, all four operations, and batch handling of found / not-found / invalid CUIs.
Data & disclaimer
Data © ANAF (Agenția Națională de Administrare Fiscală), from the public web service at
webservicesp.anaf.ro. Unofficial package, not affiliated with ANAF.
License
MIT © Catalin Barabas
