Screenshot API

Screenshot any website with one API call.

Send a web page's address and get a screenshot of it back, at any screen size or of the full page, with cookie banners and ads hidden.

No credit card · 100 free credits to start
Captured today
github.com/trending
Loading screenshot
Screenshot of GitHub Trending on desktop, captured today
1920 × 1080 · WebP
API request for this screenshotPOST /v1/screenshot
{
  "url": "https://github.com/trending",
  "viewport_width": 1920,
  "viewport_height": 1080,
  "format": "webp",
  "output": "url"
}

What people use it for

Keep a record of how a page looked

Capture a page on a schedule and keep the images as proof of what it showed on each date.

Show a preview of a link

Turn any address into a thumbnail for your app, your directory or your report.

See a page on every device

Capture the same page at desktop, tablet and phone size and compare them side by side.

Choose how the screenshot is taken

Any screen size

Any width and height, from a phone to a 4K screen.

The full page

Capture the whole page from top to bottom, including content that loads as you scroll.

PNG, JPEG or WebP

Choose the format and the image quality.

Sharp on high-resolution screens

Capture at up to three times the pixel density.

Hide popups and ads

Remove cookie banners and ad overlays automatically.

Transparent backgrounds

Capture the page without its background, in PNG or WebP.

Wait until the page is ready

Wait for an element to appear, for the page to finish loading or for a set time.

A link or the image itself

Get a hosted link to the image, or the image in the response.

Build your request

Set the options on the left and the code on the right follows, in JavaScript, Python, cURL or a plain GET URL.

Request builder
URL
Width
Height
Format
Quality
Output
const response = await fetch('https://api.simplescraper.io/v1/screenshot', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'Authorization': 'Bearer YOUR_API_KEY'
  },
  body: JSON.stringify({
    url: 'https://github.com/trending',
    viewport_width: 1920,
    viewport_height: 1080,
    format: 'webp',
    output: 'url',
    quality: 80,
    hide_popups: true
  })
});

const data = await response.json();
console.log(data.screenshot);

Every option and response is in the Screenshot API docs.

How to take a screenshot with the API

1

Send the URL

Send the page's address with your API key.

2

Choose the shot

Set the screen size, the format and whether to capture the full page.

3

Get the image

A hosted link or the image itself, in the same response.

FAQ

What image formats does the Screenshot API support?

PNG, JPEG and WebP. PNG keeps full quality and supports a transparent background, JPEG makes a smaller file, and WebP makes the smallest file at similar quality.

Can I capture screenshots without writing code?

Yes. Every scraping run saves a screenshot of each page it visits, which you can open from the run in your dashboard. To capture any address on demand, the Screenshot API takes one request with the page URL.

Can I capture full-page screenshots of long pages?

Yes. Ask for the full page and the API scrolls the whole page, including content that loads as you scroll, and captures it in a single image.

How do I hide cookie popups and ads in screenshots?

Turn on the option to hide popups and the API removes cookie banners and newsletter overlays before it captures the page. A second option hides ads.

What viewport sizes are supported?

Any width and height, from a phone to a 4K screen, such as desktop (1920 × 1080), tablet (768 × 1024) or mobile (375 × 812). You can also capture at up to three times the pixel density for high-resolution screens.

How long are hosted screenshot URLs available?

A hosted screenshot link works for 30 days. To keep an image for longer, ask for the image itself in the response and store it yourself.

How many screenshots can I capture in bulk?

There is no batch limit: send one request per page, as many side by side as you need.

Take your first screenshot with the API.

New accounts start with 100 credits.

Start free
No credit card · or read the Screenshot API docs