Templates / Look up Brazilian company data by CNPJ with forms and Minha Receita API

Look up Brazilian company data by CNPJ with forms and Minha Receita API

Ready for 3.0

by EximiaAI ✓ · 18 views · created 2026-07-11 · Market Research

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 11 nodes and runs when someone submits an n8n form (“CNPJ”). It uses only n8n's built-in nodes.

How it runs

Trigger: When someone submits an n8n form (“CNPJ”).

  1. Set API URL Parameters (Edit Fields (Set)): sets 2 fields: url, api_base_url
  2. Prepare CNPJ Format (Edit Fields (Set)): sets 1 field: CNPJ
  3. Check CNPJ Completeness (If): checks a condition and branches into true / false
  4. Fetch CNPJ Data (HTTP Request): calls an HTTP API
  5. Handle Form (n8n Form): shows the next form page
  6. Handle Form (n8n Form): shows the next form page
  7. Handle Form (n8n Form): shows the next form page
  8. Handle Form (n8n Form): shows the next form page
  9. Handle Form (n8n Form): shows the next form page
  10. Handle Form (n8n Form): shows the next form page

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (5)

From the author

Quick overview This workflow hosts an n8n form that accepts a Brazilian CNPJ, validates and normalizes the input, then queries the public Minha Receita API to fetch company registration details and displays either a formatted results page or an error page…

Excerpt from EximiaAI's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.