1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Website Thumbnail Generation Tool

API to generate website thumbnails in realtime.

This tool allows you to generate website thumbnails in realtime (no queuing) via API calls. It was created by , originally for use in our website marketplace.

What size are images?

Currently they are all 480x360 (you can see examples of the actual images created below).

How often can I make API calls?

This API action is limited to 10 per minute (it's intended to be cached on your end). This sends our spider out in realtime to generate the thumbnail.

Any other restrictions?

This API action is only for premium members of this website.

Okay, how do I use it?

You can find API documentation for the thumbnail action over here.

PHP Usage Example

Your access ID and secret key come from your API Access settings. This example does not have a caching mechanism in place, which you will want to have.

  1. $expires = time() + 300;
  2. $signature = base64_encode(hash_hmac('sha1', $accessId . '-' . $expires, $secretKey, true));
  3. $request = http_build_query(
  4.     array (
  5.         'domain' => 'yourdomain.com'
  6.     )
  7. , '', '&');
  8. $ch = curl_init('https://api.digitalpoint.com/v1/tools/thumbnail.json?' . $request);
  10.     CURLOPT_HTTPHEADER => array(
  11.         "Auth-Access-Id: $accessId",
  12.         "Auth-Signature: $signature",
  13.         "Auth-Expires: $expires"
  14.     )
  15. ));
  16. $results = json_decode(curl_exec($ch));
  18. header('Content-Type: ' . $results->results->{'content-type'});
  19. echo base64_decode($results->results->image);

Generated Image Examples

Ingress Tools