ThumbnailWs

FREE
By dimashirokov
Updated 5 months ago
Video, Images
1.7/10
Popularity Score
58602ms
Latency
-
Success Rate

ThumbnailWs API Documentation

Create Thumbnails

View API Details
POSTcreateThumbnail
POSTcreateThumbnail

Creates a thumbnail.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
urlSTRING
REQUIREDThe URL of the website you want to capture. E.g. `http://www.reddit.com/` or `https://www.google.com/`
apiKeyCREDENTIALS
REQUIREDAPI Key.
widthSTRING
REQUIREDThe width of the image. E.g. 400.
Optional Parameters
mobileSTRING
OPTIONALReturn the full page and not only the part above the fold. An endless page can result in a very large image. E.g. `true` mobile (Premium only).
delaySTRING
OPTIONALHow long should thumbnail.ws wait after the page has loaded to create a screenshot. Value must be given in milliseconds between 0 and 5000. Default is `2500`, (2.5 second). E.g. `3000`
refreshSTRING
OPTIONALDeliver a fresh screenshot even if a cached version is available. E.g. `true`
fullpageSTRING
OPTIONALReturn the mobile version by setting the width of the screen to 640 and identify ourselves as an iPhone. E.g. `true`
Code Snippet
unirest.post("https://ThumbnailWsdimashirokovV1.p.rapidapi.com/createThumbnail")
.header("X-RapidAPI-Host", "ThumbnailWsdimashirokovV1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://ThumbnailWsdimashirokovV1.p.rapidapi.com/createThumbnail
Request Method: POST
Response Headers
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.post("https://ThumbnailWsdimashirokovV1.p.rapidapi.com/createThumbnail")
.header("X-RapidAPI-Host", "ThumbnailWsdimashirokovV1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication