ScreenAPI

Guides

Generate website thumbnails for link previews and directories

Show a small preview image of any website in your app, directory or CRM. One signed URL per site, cached, light WebP files, no browser to run.

Directories, bookmark managers, CRMs and dashboards often show a small picture of each website. Keeping those pictures up to date by hand is impossible; generating them from the URL is easy.

The right settings for a thumbnail

  • format=webp with quality=70: files are a fraction of a PNG.
  • Keep the default 1280 × 800 viewport (what visitors see first) and let your CSS shrink the image with width: 320px; aspect-ratio: 16/10; object-fit: cover.
  • block_chats=true and the default cookie-banner removal, so the thumbnail shows the site, not a popup.
  • cache_ttl=604800 (7 days): thumbnails stay fresh and repeat views are free.

In an <img> tag with a signed URL

Generate the signed URL on your server (see signed URLs) and use it directly as the image source. Your key never reaches the browser.

<img
  src="https://getscreenapi.com/api/v1/screenshot?url=https%3A%2F%2Fexample.com&format=webp&quality=70&block_chats=true&cache_ttl=604800&key_id=YOUR_KEY_ID&signature=..."
  alt="Preview of example.com"
  loading="lazy"
  style="width:320px;aspect-ratio:16/10;object-fit:cover;border-radius:8px" />

Or store them yourself

For thousands of sites, fetch each thumbnail once with your key from a background job and save it to your own storage. Re-run the job weekly. Failed captures (unreachable sites) are not counted.

import os, requests

for site in ["https://example.com", "https://www.wikipedia.org"]:
    r = requests.get("https://getscreenapi.com/api/v1/screenshot",
                     params={"url": site, "format": "webp", "quality": 70, "block_chats": "true"},
                     headers={"x-api-key": os.environ["SCREENAPI_KEY"]}, timeout=90)
    if r.ok:
        save_to_storage(site, r.content)  # your own function

2,500 thumbnails a month for €9, or 100 free to start.

See pricing