Log daily new Spanish companies to Google Sheets or CSV with BORME API
Ready for 3.0What this workflow does
This workflow has 24 nodes and runs on a schedule (cron 30 7 * * 2-6). Along the way it connects Google Sheets and Slack. It also calls api.bormeapi.com over HTTP.
How it runs
Trigger: On a schedule (cron 30 7 * * 2-6).
- Settings (Edit Fields (Set)): sets 19 fields: borme_date, provinces, legal_forms…
- Read the sheet (Google Sheets): uses Google Sheets
- Collect known companies (Code): runs custom JavaScript code
- Get new incorporations (HTTP Request): calls api.bormeapi.com (GET)
- Did the API answer? (If): checks a condition and branches into true / false
- Describe the API error (Code): runs custom JavaScript code
- Apply your filters (Code): runs custom JavaScript code
- Send to (Switch): routes items into 2 branches
- Mark the run as failed (Stop and Error): stops the run with an error
- Skip companies already in the sheet (Code): runs custom JavaScript code
…plus 13 more steps. See the full node list below.
Services it uses
Other Google Sheets + Slack templates (1,314)
HTTP calls to: api.bormeapi.com
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (14)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - Google Sheets
n8n-nodes-base.googleSheets - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - If
n8n-nodes-base.if - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Wait
n8n-nodes-base.wait - Convert to File
n8n-nodes-base.convertToFile - Read/Write Files from Disk
n8n-nodes-base.readWriteFile - Switch
n8n-nodes-base.switch - Slack
n8n-nodes-base.slack - Send Email
n8n-nodes-base.emailSend - Stop and Error
n8n-nodes-base.stopAndError
From the author
Quick overview This workflow runs Tuesday to Saturday at 07:30 (Europe/Madrid), fetches the previous day’s Spanish company incorporation events from the BORME API, and writes one row per event to Google Sheets (with optional CSV export on self-hosted n8n).…