Page2images Website Thumbnail

By suzhoukada
Updated 8 months ago
Popularity Score
Success Rate

Page2images Website Thumbnail API Documentation

Send us a url. We return the image of it. Support iPhone, Android & iPad.

View API Details
GETRestfullink Get
GETRestfullink Get
Header Parameters
Required Parameters
REQUIREDURL of target page. Do not need to be encode. Valid inputs:
Optional Parameters
OPTIONALThe thumbnail file size you want to get. Not the screen size of device. If you want a big image, you need enlarge the width and height. If you need a small one, you need reduce the width and height. But it will take some more time to download a big image than a small one. Format: widthxheight e.g. 300x300 We predefined the size for those devices for most usage: Mobile Phones: 320x480 Tablets: 512x384 Desktop: 640x400 Advanced information: 1) If you only know the fixed width or height of the images you want to get, you can just pass the width or height to us by following format: 512x0 or 0x512. We will resize the image to fit that width/height and make sure it is the biggest image we can generate. 2) The screenshot image will be resized to fit the width and height without stretching
OPTIONALpng or jpg We strongly recommend jpg since most jpg file is smaller than png.
OPTIONALFull page or just the screen area. If the value is 1 or true, we will take the full page screenshot. If the value is 0 or false, we will take the screen area only.
OPTIONALOur system can generate the screenshot for those smart phones and desktops. Please pass it to server as needed. Following are devices we supported: 0 - iPhone4, 1 - iPhone5, 2 - Android, 3 - WinPhone, 4 - iPad, 5 - Android Pad, 6 - Desktop
OPTIONALThe screen size of device you want to simulate. Format: screen_widthxscreen_height e.g. 1024x768 We predefined the size for those devices for most usage: Mobile: 320x480 Mobile iPhone5: 320x500 Tablets: 1024x768 Desktop: 1280x800 Advanced information: 1) The screen size should not be less than image size.
OPTIONALHow many second wait after page load complete. System will not accept the value less than 30 seconds.
OPTIONALWe will cache the screenshot result for 24 hours. If you does not want to use the cache, please set this value to 1.
Code Snippet
Install SDK
Response ExampleSchema

Install SDK for (Node.js)Unirest

OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication