# Extract domain from URL/email and check if free provider via API
This workflow automates precise domain extraction from URLs or email addresses with full support for complex TLDs (including multi-level domains like co.uk) and detects whether the domain belongs to a free email provider (e.g., Gmail, Yahoo). Useful for data validation and segmentation before processing in CRM, analytics platforms, or marketing funnels.
## Who it´s for
- Marketers collecting leads who need to filter out free email addresses
- Data analysts cleaning traffic sources by domain
- Developers integrating domain validation into their systems via API
## What the automation does
- Accepts URL or email input via API call (Execute Workflow)
- Extracts domain using Public Suffix List logic for accurate handling of compound TLDs
- Checks if the domain is on the list of free email providers
- Returns structured output with domain and provider type (free/paid)
- Processes cases like user@gmail.com → gmail.com (free) or blog.example.co.uk → example.co.uk (paid)
## What´s included
- Ready-to-use n8n workflow
- Trigger and handler logic based on JavaScript
- Integrations with HTTP API, free email providers list, and Public Suffix List
- Basic text instructions for setup and adaptation
## Requirements for setup
- n8n account (self-hosted or cloud)
- Access to reference data: updated list of free email providers and Public Suffix List
- Ability to receive API calls via Execute Workflow node
## Benefits and outcomes
- Accurate domain parsing without errors on complex TLDs
- Automatic filtering of mass free emails from lead forms
- Improved data quality in CRM and analytics
- Time saved on manual contact validation
- Ready-to-use API for external system integration
## Important: template only
Important: you are purchasing a ready-made automation workflow template only. Rollout into your infrastructure, connecting specific accounts and services, 1:1 setup help, custom adjustments for non-standard stacks and any consulting support are provided as a separate paid service at an individual rate. To discuss custom work or 1:1 help, contact via chat
No feedback yet