workflows.fit
Back to n8n workflows
n8n templateFreeBy Lucas Perret

Domain extractor

This node is designed to cleanse URLs and extract their domain names efficiently. It effectively handles a wide range of URL formats, including those with unconventional or complex top-level domains (TLDs), such as 'c...

DevelopmentCore NodesCodeExecute Workflow TriggerSetSticky Note
Loading interactive preview...

Template notes

This node is designed to cleanse URLs and extract their domain names efficiently.

It effectively handles a wide range of URL formats, including those with unconventional or complex top-level domains (TLDs), such as 'co.uk'.

You can also use it to extract the domain from an email. The node will also check if the domain is from a free email provider (gmail.com / outlook.com...etc) or not.

How It Works The node analyzes the provided URL, removing any unnecessary elements.

It then identifies and extracts the domain name, ensuring compatibility with a diverse array of TLDs.

The node utilizes an extensive list of TLDs to guarantee accurate domain extraction for virtually any URL.

To view the complete list of supported top-level domains, please visit: [TLD List on GitHub](https://github.com/publicsuffix/list)

How to use it Call this workflow using the "execute workflow" node