Pagepeeker

FREE
By pagepeeker
Updated 4 months ago
Tools
2.6/10
Popularity Score
16ms
Latency
100%
Success Rate

Pagepeeker API Documentation

Automate website screenshots creation. Generate screenshots in a matter of seconds. Never busy, so there's no waiting in line. Rendering starts immediately and is finished quickly.

View API Details
GET1. Shoot thumbnail
GET2. Thumbnail ready
GET1. Shoot thumbnail

Issues a reset API call if refresh is set to 1. Else it will download if the image is ready (see endpoint 2.)

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
sizeSTRING
REQUIREDt = Tiny, 90 x 68 pixels; s= Small, 120 x 90 pixels; m = Medium, 200 x 150 pixels; l = Large, 400 x 300 pixels; x = Extra large, 480 x 360 pixels
urlSTRING
REQUIREDThe URL to generate the thumbnail from
Optional Parameters
refreshSTRING
OPTIONALThis parameter forces the currently generate d thumbnail to be regenerated. It is optional and will be ignored unless it contains the value 1
Code Snippet
unirest.get("https://pagepeeker-pagepeeker.p.rapidapi.com/thumbs.php?refresh=1&size=m&url=http%3A%2F%2Fwww.mashape.com%2F")
.header("X-RapidAPI-Host", "pagepeeker-pagepeeker.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://pagepeeker-pagepeeker.p.rapidapi.com/thumbs.php
Request Method: GET
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.get("https://pagepeeker-pagepeeker.p.rapidapi.com/thumbs.php?refresh=1&size=m&url=http%3A%2F%2Fwww.mashape.com%2F")
.header("X-RapidAPI-Host", "pagepeeker-pagepeeker.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication