ThumbnailsPro Website Thumbnails API
The ThumbnailsPro API couldn't be easier to use. Here's how to implement
screenshots using our API and the various options available to be called.
Requesting a screenshot thumbnail. (?Url=)
This is done using a simple image tag! So you can simply insert the following
in your html and our service will generate and display a thumbnail for
you!
<img src="http://thumbnailspro.com/thumb.php?url=yahoo.com"
border="0" alt="website thumbnails">
Inserting the above in your html will generate a screenshot thumbnail
for yahoo.com, you would of course replace the yahoo.com portion in the
above code with the url of which you want to generate a screenshot of.
Thumbnail Size. (&s=)
Our api allows you to request any size you wish from 10px up to 1024px
for you thumbnail image. Here's a sample request code:
<img src="http://thumbnailspro.com/thumb.php?url=google.com&s=100"
border="0" alt="website thumbnails">
You can see the portion we highlighted in red is the api request for the
size of the thumbnail. This thumbnail would be 100px but if you wanted
to change it to something else like 500px for example, you'd just replace
the 100 with 500 in the code.
Updating an existing thumbnail. (&update)
You can use our API to update an existing thumbnail you've already requested
in the past, anytime you wish simply by using the &update API call
in the code sniplet. Here's an example:
<img src="http://thumbnailspro.com/thumb.php?url=yahoo.com&update"
border="0" alt="website thumbnails">
The &update
API call at the end means that a new thumbnail will be generated for
the url requested (in this example, yahoo.com). You can remove the &update
from the url to prevent a new thumbnail being generated everytime.
Cutting the height of a screenshot thumbnail. (&cut)
Our API allows you cut the vertical size of your thumbnail. The API call
for this is &cut lets illustrate with an example:
<img src="http://thumbnailspro.com/thumb.php?url=yahoo.com&cut=120"
border="0" alt="website thumbnails">
You can see the API call above, in red is the &cut
call, in this case the thumbnail will be cut at 120px in height.
Here's the result:
If we want it at 200 px in height, we'd put
<img src="http://thumbnailspro.com/thumb.php?url=yahoo.com&cut=200"
border="0" alt="website thumbnails">

Full Length Screenshot Thumbnails. (&full)
and (&full=length)
You can use our API to have a full length thumbnail generated. You can
also only capture the first X amount of pixels of the website.
<img src="http://thumbnailspro.com/thumb.php?url=yahoo.com&full=length"
border="0" alt="website thumbnails">
This will generate a thumbnail with the full length ( &full=length
) of the website captured (yahoo.com in this example):

<img src="http://thumbnailspro.com/thumb.php?url=yahoo.com&full=500"
border="0" alt="website thumbnails">
This one will only display the first 500 px of the websites (&full=500)

|