Api Screenshot

screenshot of Api Screenshot

Api Screenshot

A service to add web page screenshots to your Eleventy sites.


Screenshot API is a runtime service that allows users to use live website screenshots on their own websites. It is a convenient solution for those who need to display dynamic website content or regularly updated information on their site. With Screenshot API, users can easily generate and embed website screenshots with customizable options.


  • Live Website Screenshots: Screenshot API enables users to capture live screenshots of any website.
  • Customizable Size: Users can choose from different size options for the screenshots, including small, medium, and large.
  • Custom Wait Conditions: Screenshot API allows users to customize the conditions for the headless browser to wait before taking the screenshot.


To install and use Screenshot API, follow these steps:

  1. Set the environment variable AWS_LAMBDA_JS_RUNTIME with the value 'nodejs12.x' in the Netlify App UI.
  2. Use the appropriate image URL format with URI encoding.
  3. Specify the desired size of the screenshot using the valid size values: small, medium, or large.
  4. Customize wait conditions if needed. Options include DOMContentLoaded wait, Load event wait, and more.
  5. Set a custom timeout if desired, specifying the number of seconds to wait before the request times out.
  6. Combine different options together, if needed, using the appropriate syntax.


Screenshot API is a useful runtime service for generating live website screenshots that can be embedded on other websites. It offers customizable options for size, wait conditions, and timeout, providing flexibility to users. By following the installation guide, users can easily integrate Screenshot API into their projects and enhance the visual representation of their website content.


11ty is a static site generator that allows developers to build fast, modern websites using HTML, Markdown, and other templating languages, without the need for a complex build system.