Ask AI
Skip to main content

Get base domain

Function: Get base domain

This action helps you extract just the main part of a web address (the domain name) from a full URL. For example, if you have "https://www.example.com/page", it will give you "example.com". This is useful when you need to identify the core website without all the extra path information.

Input

  • Url: The complete web address (URL) from which you want to extract the base domain. This input is required.

Output

  • Result: The extracted base domain name (e.g., "example.com"). This will be stored in a variable named "RESULT" by default, but you can change this name.

Execution Flow

Real-Life Examples

Example 1: Extracting a website's main address

Imagine you have a list of product links from various online stores and you want to quickly see which store each product belongs to.

  • Inputs:
    • Url: https://www.amazon.com/product/B08XYZ123
  • Result: The action will output amazon.com. You can then use this to categorize your products by retailer.

You're collecting social media profiles for your marketing team, and you only need the platform's domain, not the full profile URL.

  • Inputs:
    • Url: https://www.linkedin.com/in/johndoe123
  • Result: The action will output linkedin.com. This helps you quickly identify the social media platform.

Example 3: Analyzing website traffic sources

If you're tracking where your website visitors come from, you might have referral URLs like https://blog.mypartnersite.com/latest-post. To understand the main source, you just need the partner's domain.

  • Inputs:
    • Url: https://blog.mypartnersite.com/latest-post
  • Result: The action will output mypartnersite.com. This allows you to easily group traffic by the main referring website.