Website Screenshot (customJs) icon

Website Screenshot (customJs)

Take a screenshot of a website

Overview

This node takes a screenshot of a specified website URL. It is useful for scenarios where you need to capture the visual representation of a webpage, such as generating previews, monitoring website changes, or archiving web content. For example, you can input a URL of a product page to generate an image snapshot for reporting or share a visual status update of a dashboard.

Properties

Name Meaning
Website Url The URL of the website to capture a screenshot from.

Output

The node outputs data in binary format representing the screenshot image of the provided website URL. The output contains:

  • json: The original input JSON data passed into the node.
  • binary.data: The screenshot image file named output.png.

This binary data can be used downstream in workflows for saving to disk, uploading to cloud storage, or sending via email.

Dependencies

  • Requires an API key credential for an external screenshot service (referred to generically as "an API key credential").
  • The node sends a POST request to a remote service endpoint that performs the screenshot generation.
  • The node expects the external service to return the screenshot image in binary form.

Troubleshooting

  • Common issues:

    • Invalid or missing API key credential will cause authentication failures.
    • Incorrect or unreachable website URLs may result in errors or empty screenshots.
    • Network connectivity problems can prevent the node from reaching the screenshot service.
  • Error messages and resolutions:

    • Authentication errors: Verify that the API key credential is correctly configured and valid.
    • Request failures: Check the URL input for correctness and ensure the target website is accessible.
    • Timeout or network errors: Confirm network connectivity and retry the operation.

Links and References

  • No direct links available from the source code.
  • For best results, consult documentation of the external screenshot API service used with this node.

Discussion