Coder Social home page Coder Social logo

screenshotone / about Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 3 KB

A few words about the best screenshot API

Home Page: https://screenshotone.com/

api playwright puppeteer puppeteer-screenshot puppeteer-screenshots screenshot screenshot-api screenshots

about's Introduction

The screenshot API for developers

With ScreenshotOne you can render screenshots in one simple API call, instead of managing browser clusters, and handling all the corner cases.

It supports a wide range of programming languages including TypeScript, Python, Java, and more. This flexibility makes it an excellent tool for developers looking to integrate screenshot functionality into their applications regardless of their development environment.

Key features

The ScreenshotOne API offers powerful features that make it a go-to solution for developers:

  1. Ability to take clean screenshots by blocking cookie banners, ads, chat, and other widgets to make the screenshots look clean.
  2. Supports rendering screenshots in a variety of image formats including PNG, JPEG, WebP, GIF, and more.
  3. Provides options to customize the screenshot rendering, such as setting the screen size, enabling dark mode, and extracting metadata like fonts used.
  4. Offers asynchronous screenshot execution and webhooks to upload the rendered screenshots or HTML content to services like Amazon S3.
  5. Provides SDKs and no-code integrations with tools like Zapier to easily incorporate screenshot functionality into applications.

Code Examples

Run the next command to install the JavaScript and TypeScript Node.js SDK to take screenshots:

npm install screenshotone-api-sdk --save

Generate a screenshot URL without executing the request. Or download the screenshot. It is up to you:

import * as fs from "fs";
import * as screenshotone from "screenshotone-api-sdk";

// create API client
const client = new screenshotone.Client("<access key>", "<secret key>");

// set up options
const options = screenshotone.TakeOptions.url("https://example.com")
    .delay(3)
    .blockAds(true);

// generate URL
const url = client.generateTakeURL(options); // or generateSignedTakeURL(options) for signed URLs
console.log(url);
// expected output: https://api.screenshotone.com/take?url=https%3A%2F%2Fexample.com&delay=3&block_ads=true&access_key=%3Caccess+key%3E

// or download the screenshot
const imageBlob = await client.take(options);
const buffer = Buffer.from(await imageBlob.arrayBuffer());
fs.writeFileSync("example.png", buffer);
// the screenshot is store in the example.png file

The API supports other languages, too.

Conclusion

The ScreenshotOne screenshot API is a robust tool designed to accommodate a variety of programming needs across different languages.

Its versatility in supporting multiple languages and its extensive feature set make it an ideal choice for developers looking to integrate screenshot capabilities into their applications. Whether for automation, testing, or documentation, ScreenshotOne provides the tools necessary to capture and manage screenshots effectively.

about's People

Contributors

krasun avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.