ScrapeGoat

FREE
By warting
Updated 4 months ago
Tools
7.4/10
Popularity Score
10197ms
Latency
96%
Success Rate

ScrapeGoat API Documentation

This is an api that let's you execute javascript on any website and lets you get anything back as respond. The API can also take screenshots of a webpage, resize the viewport, pre-render SPA applications and also be able to play with a real canvas element and whatever you can do in a browser

View API Details
POSTmain
POSTmain

Main endpoint with endless of posibilities. Can respond with FormData, Json, Blob, string, Number boolean. Use screenCapture() to get a Blob back of the viewport

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
InjectorJSON_STRING
REQUIREDinjected code is javascript that will be executed on the website
Code Snippet
unirest.post("https://scrapegoat.p.rapidapi.com/")
.header("X-RapidAPI-Host", "scrapegoat.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/json")
.send({"url":"http://vecka.nu","inject":"resizeTo(300, 300); response.send(screenCapture())"})
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://scrapegoat.p.rapidapi.com/
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://scrapegoat.p.rapidapi.com/")
.header("X-RapidAPI-Host", "scrapegoat.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/json")
.send({"url":"http://vecka.nu","inject":"resizeTo(300, 300); response.send(screenCapture())"})
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication