webscreenshot-io

1.0.2 • Public • Published

WebScreenshot.io Screenshot API

Generate screenshots of web pages using the WebScreenshot.io API. Perfect for generating thumbnails of web pages, or for generating screenshots of web pages for use in your own applications.

Sign up for an API key and secret at WebScreenshot.io.

Installation

npm install webscreenshot-io

Node.js Usage Example

import Webscreenshot from 'webscreenshot-io';

// API key and secret from webscreenshot.io
const webscreenshot = Webscreenshot(API_KEY, API_SECRET);

// Available options: webscreenshot.io/documentation/options/options/
const options = {
  page: 'google.com',
  height: 600,
  width: 800,
  format: 'jpeg'
}

const imageUrl = webscreenshot.screenshotUrl(options);
console.log(imageUrl);

Package Sidebar

Install

npm i webscreenshot-io

Weekly Downloads

4

Version

1.0.2

License

ISC

Unpacked Size

2.08 kB

Total Files

3

Last publish

Collaborators

  • andyfeliciotti