Mallabe Websites icon

Mallabe Websites

Mallabe Websites is a utility tool that allows the to get a website status & icon, and generate thumbnail.

Overview

The "Get Website Icon" operation of the Mallabe Websites node retrieves the favicon or icon of a specified website. This is useful for applications that need to display website icons dynamically, such as dashboards, link previews, or content management systems. For example, you can input a URL like https://www.google.com and get its favicon image either as a downloadable binary file or as a direct URL link.

Properties

Name Meaning
Website URL The full URL of the website to retrieve the favicon from (e.g., https://www.google.com).
Download Image? Whether to download the favicon image as binary data or just return a link to it.
Put Output File In Field When downloading the image, the name of the output field where the binary file data will be stored.
Webhook URL (Optional) An optional webhook URL to which the icon data will be sent asynchronously.

Output

The node outputs JSON data containing information about the retrieved website icon. If the "Download Image?" property is set to false, the output JSON includes a URL pointing to the icon image.

If "Download Image?" is true, the node downloads the icon image and outputs it as binary data in the specified output field (default "data"). The binary data represents the actual favicon image file, ready for further processing or saving.

Example JSON output when not downloading:

{
  "data": {
    "url": "https://cdn.mallabe.com/icons/google-favicon.ico"
  }
}

When downloading, the output contains both JSON metadata and binary data:

{
  "json": {
    "data": {
      "url": "https://cdn.mallabe.com/icons/google-favicon.ico"
    }
  },
  "binary": {
    "data": {
      "data": "<binary image data>"
    }
  }
}

Dependencies

  • Requires an API key credential for the Mallabe Websites API service.
  • The node makes HTTP POST requests to Mallabe's API endpoints to fetch website icons.
  • If downloading images, the node performs additional HTTP GET requests to the CDN URL provided by the API to retrieve the binary image data.
  • No other external dependencies are required.

Troubleshooting

  • Common issues:
    • Invalid or unreachable website URLs may cause the API to fail retrieving the icon.
    • Network connectivity problems can prevent successful API calls or image downloads.
    • Missing or invalid API credentials will result in authentication errors.
  • Error messages:
    • Errors returned from the API typically include descriptive messages about invalid inputs or server issues.
    • If the node throws an error related to binary data preparation, ensure the CDN URL is accessible and returns valid image data.
  • Resolutions:
    • Verify the website URL is correct and publicly accessible.
    • Check your API key credential configuration in n8n.
    • Ensure your environment allows outbound HTTP requests to the Mallabe API and CDN domains.
    • Use the optional webhook URL to handle asynchronous responses if large images or slow responses occur.

Links and References

Discussion