Skip to navigation Skip to main content
11ty Logo Sustainability Fundraising
Eleventy Documentation
Toggle Menu
Eleventy 5.81s
Gatsby 43.36s



Feed this runtime service a URL and it returns a fully rendered screenshot image from that page (using Puppeteer)

Source Code Jump to heading

Deploy to Netlify

Usage Jump to heading

Image URLs have the format:

Sample Jump to heading

Try it out on the Eleventy API Explorer.

Screenshot of
class="screenshot screenshot-first-example"
alt="Screenshot of"

Advanced Options Jump to heading

Manual Cache Busting Jump to heading

If the screenshots aren’t updating at a high enough frequency you can pass in your own cache busting key using an underscore prefix _ after your URL.

This can be any arbitrary string tied to your unique build, here’s some examples that use today’s date:


Custom Wait Conditions Jump to heading

You can customize the conditions with which the headless browser will wait to take the screenshot. At a low level, this controls the waitUntil property in Puppeteer’s goto call. The options are:


Custom Timeout Jump to heading

Number of seconds to wait before the request times out. We will attempt to simulate the stop button and return the screenshot that exists up to that point. Worst case, a default Eleventy logo is returned.


Combine these options Jump to heading

You can use any of these advanced options together, like /:url/_20210802_wait:0_timeout:2/. Order only matters to the uniqueness of the URL caching on the CDN: /:url/_20210802_wait:0/ and /:url/_wait:0_20210802/ will be functionally equivalent but make two different screenshot requests.

Other pages in API Services: