Website Thumbnail Generator with Free API 197,867,405 served thumbnails!

API reference

Webthumbnail.org offers a simple to use API for generating website screenshots on demand.
The base url for the api is: http://api.webthumbnail.org

Syntax

http://api.webthumbnail.org/?width=...&height=...&screen=...&url=...

Parameters

Name Required Default Description
url required   The url address of a website including 'http://' prefix
width optional 100 Width of a thumbnail in pixels, values between 100 and 500.
height optional 100 Height of a thumbnail in pixels, values between 100 and 500.
screen optional 1024 Screen width in pixels, values: 1024, 1280, 1650, 1920.

Basic example

This small piece of html code:

<img src="http://api.webthumbnail.org?width=400&height=300&screen=1280&format=png&url=http://mozilla.com" alt="Captured by webthumbnail.org" />

will display this image:

Captured by webthumbnail.org

For developers

At https://github.com/cepa/webthumbnail you can find a simple php client for using the api.webthumbnail.org directly from the php code. It can be used in any php application, distributed under the terms of the BSD license.

How to capture a website screenshot and send it to a browser?

<?php
$thumb = new Webthumbnail("http://your.website.com");
$thumb
    ->setWidth(500)
    ->setHeight(500)
    ->captureToOutput();
 

How to capture a website screenshot and save it to a file?

<?php
$thumb = new Webthumbnail("http://your.website.com");
$thumb
    ->setWidth(500)
    ->setHeight(500)
    ->captureToFile($path);