Skip to content

Website screenshot API for developers

Turn any URL into a pixel-perfect image with one screenshot API call. Ads, trackers and known cookie banners are removed by default.

Website screenshot
Saved example

Send the URL Get a web snapshot back

2.8
secs
P95 cold response
—
loading…
99.9
%
SLA on paid plans
Website screenshot without adblock: cookie banner visible
Website screenshot with adblock: clean capture
https://api.microlink.io?screenshot&url=https://ft.com&adblock=true

Everything you need,
one API call away

Blocks ads & cookie banners
Built-in adblock removes ads, trackers, and cookie consent popups automatically. Get clean captures without custom scripts.
Any viewport, any device
Capture the full page or just the viewport on mobile, tablet, desktop, or a custom width, in light or dark mode.
Fastest screenshot API
Sub-second cached responses with P95 cold starts under 3 seconds. Served from a global edge network for low latency worldwide.
Isolated & secure
Each request runs in its own browser context, destroyed after the response. No cookies or storage shared between requests.
Full browser control
Inject CSS, run JavaScript, click elements, scroll, and wait for selectors before the capture. Add a proxy to get past IP blocks and regional restrictions.
Animated screenshots
Add one parameter to record the page as an MP4 video, with its animations and transitions.

Screenshot API
in JavaScript, Python, Ruby, PHP & Golang

One GET request returns JSON. Add embed=screenshot.url and the same URL returns the image, ready for an <img> tag or og:image.

The following examples show how to use the Microlink API with CLI, cURL, JavaScript, Python, Ruby, PHP & Golang, targeting 'https://www.netflix.com/title/80057281' URL with 'screenshot' & 'viewport' API parameters:

CLI Microlink API example

microlink screenshot https://www.netflix.com/title/80057281 --type jpeg --viewport.width 1920 --viewport.height 1080 --viewport.deviceScaleFactor 2

cURL Microlink API example

curl -G "https://api.microlink.io" \
  -d "url=https://www.netflix.com/title/80057281" \
  -d "screenshot.type=jpeg" \
  -d "viewport.width=1920" \
  -d "viewport.height=1080" \
  -d "viewport.deviceScaleFactor=2"

JavaScript Microlink API example

import createClient from 'microlink.io'

const microlink = createClient()

const data = await microlink.screenshot('https://www.netflix.com/title/80057281', {
  type: "jpeg",
  viewport: {
    width: 1920,
    height: 1080,
    deviceScaleFactor: 2
  }
})

Python Microlink API example

import requests

url = "https://api.microlink.io/"

querystring = {
    "url": "https://www.netflix.com/title/80057281",
    "screenshot.type": "jpeg",
    "viewport.width": "1920",
    "viewport.height": "1080",
    "viewport.deviceScaleFactor": "2"
}

response = requests.get(url, params=querystring)

print(response.json())

Ruby Microlink API example

require 'uri'
require 'net/http'

base_url = "https://api.microlink.io/"

params = {
  url: "https://www.netflix.com/title/80057281",
  "screenshot.type": "jpeg",
  "viewport.width": "1920",
  "viewport.height": "1080",
  "viewport.deviceScaleFactor": "2"
}

uri = URI(base_url)
uri.query = URI.encode_www_form(params)

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true

request = Net::HTTP::Get.new(uri)
response = http.request(request)

puts response.body

PHP Microlink API example

<?php

$baseUrl = "https://api.microlink.io/";

$params = [
    "url" => "https://www.netflix.com/title/80057281",
    "screenshot.type" => "jpeg",
    "viewport.width" => "1920",
    "viewport.height" => "1080",
    "viewport.deviceScaleFactor" => "2"
];

$query = http_build_query($params);
$url = $baseUrl . '?' . $query;

$curl = curl_init();

curl_setopt_array($curl, [
    CURLOPT_URL => $url,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_ENCODING => "",
    CURLOPT_MAXREDIRS => 10,
    CURLOPT_TIMEOUT => 30,
    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    CURLOPT_CUSTOMREQUEST => "GET"
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
    echo "cURL Error #: " . $err;
} else {
    echo $response;
}

Golang Microlink API example

package main

import (
    "fmt"
    "net/http"
    "net/url"
    "io"
)

func main() {
    baseURL := "https://api.microlink.io"

    u, err := url.Parse(baseURL)
    if err != nil {
        panic(err)
    }
    q := u.Query()
    q.Set("url", "https://www.netflix.com/title/80057281")
    q.Set("screenshot.type", "jpeg")
    q.Set("viewport.width", "1920")
    q.Set("viewport.height", "1080")
    q.Set("viewport.deviceScaleFactor", "2")
    u.RawQuery = q.Encode()

    req, err := http.NewRequest("GET", u.String(), nil)
    if err != nil {
        panic(err)
    }

    client := &http.Client{}
    resp, err := client.Do(req)
    if err != nil {
        panic(err)
    }
    defer resp.Body.Close()

    body, err := io.ReadAll(resp.Body)
    if err != nil {
        panic(err)
    }

    fmt.Println(string(body))
}
Last month usage
140M
reqs per month
13%
cache hit rate
5TB
data served
some clients

Start free, scale when ready

Sign up for a free API key: 25 requests per day with proxy, headers and ttl, no credit card. Paid plans add volume and production controls.

Pro

For production workloads.
$49/month
≈ $1.07 per 1,000 requests
46,000 requests / month
Buy
Cancel anytime · No setup fees

Business & Enterprise

Bought the way companies buy.
Enterprise adds

The fastest screenshot API 1.4× faster than the next fastest

Average cold capture across 7 real-world URLs, no cache: 4,112 ms for Microlink, 5,916 ms for ScreenshotAPI, 9,463 ms for ApiFlash.
Tested against 5 screenshot APIs in March 2026.

The best screenshot API, with no compromises.

No more servers to maintain, load balancers, or paying for capacity you don’t use. Spend more time building, less time configuring, with easy integration via a single REST API.

  • Enterprise-Grade Infrastructure

    Production-ready and built for scale, with a 99.9% uptime SLA on paid plans. Our record for a single customer is 188 million requests in one month.
  • Generous Free Tier

    Start capturing immediately. No setup fees, no credit card required, and pay-as-you-grow pricing that scales seamlessly as your infrastructure needs increase.
  • Global Edge Delivery

    Assets are automatically cached and distributed across 340+ edge locations powered by Cloudflare, ensuring lightning-fast image delivery worldwide.
  • Language-Agnostic API

    A single REST endpoint designed for developers. Pass any URL and integrate in minutes with the official Node.js SDK, or a plain HTTP request from Python, Ruby, Go or any language.
  • Full Headless Browser Control

    Configure custom viewports, full-page captures, device emulation, user agents and the request country natively, or run your own Puppeteer code with function.
  • Custom Injections & Overlays

    Execute custom JavaScript, inject CSS, click specific DOM elements, hide ad banners, or wait for network events before the capture is finalized.
  • Smart TTL Caching

    Configure Time-To-Live (TTL) caching rules to keep your snapshots fresh. Stay up to date with target website changes while maintaining sub-second API performance.
  • Optimized Output Formats

    Export directly to WebP, JPEG, or PNG formats with configurable compression. Optimize image payloads for web performance without sacrificing visual fidelity.
  • Zero-Config Integration

    Interactive documentation packed with live code examples. Copy-paste ready snippets allow you to bypass complex infrastructure setup and ship to production faster.
  • Enterprise-Grade Infrastructure

    Production-ready and built for scale, with a 99.9% uptime SLA on paid plans. Our record for a single customer is 188 million requests in one month.
  • Generous Free Tier

    Start capturing immediately. No setup fees, no credit card required, and pay-as-you-grow pricing that scales seamlessly as your infrastructure needs increase.
  • Global Edge Delivery

    Assets are automatically cached and distributed across 340+ edge locations powered by Cloudflare, ensuring lightning-fast image delivery worldwide.
  • Language-Agnostic API

    A single REST endpoint designed for developers. Pass any URL and integrate in minutes with the official Node.js SDK, or a plain HTTP request from Python, Ruby, Go or any language.
  • Full Headless Browser Control

    Configure custom viewports, full-page captures, device emulation, user agents and the request country natively, or run your own Puppeteer code with function.
  • Custom Injections & Overlays

    Execute custom JavaScript, inject CSS, click specific DOM elements, hide ad banners, or wait for network events before the capture is finalized.
  • Smart TTL Caching

    Configure Time-To-Live (TTL) caching rules to keep your snapshots fresh. Stay up to date with target website changes while maintaining sub-second API performance.
  • Optimized Output Formats

    Export directly to WebP, JPEG, or PNG formats with configurable compression. Optimize image payloads for web performance without sacrificing visual fidelity.
  • Zero-Config Integration

    Interactive documentation packed with live code examples. Copy-paste ready snippets allow you to bypass complex infrastructure setup and ship to production faster.

One screenshot problem, one recipe.

Mobile viewports, cookie banners, single elements, traffic spikes, proxies and more. Each use case shows the exact options that solve it and the code to run.

Mobile screenshots at any viewport

Emulate an iPhone, a Pixel, an iPad or any custom viewport and capture the page exactly as those visitors see it.

Screenshots without cookie banners or ads

Ads, trackers and consent popups are blocked before the page renders, and one option dismisses any banner that remains.

Screenshot a single element

Crop the capture to one CSS selector, such as a chart or a pricing table, with a transparent background if you need it.

Screenshots under traffic spikes

Absorb bursts of screenshot traffic without a browser pool: no throttling, parallel requests and a cache whose hits are free.

Screenshot a site from another country

Pin the request to a country with a two-letter code and capture the prices and copy a local visitor sees.

Screenshots in dark mode

Set prefers-color-scheme before the capture and get the dark or light theme of any page that supports it.

Product Information

Everything you need to know about
Microlink website screenshot API.

Do I need to manage my own Headless Chrome instances?

No. Microlink acts as a fully managed, "backendless" browser service. We maintain the underlying Chromium infrastructure, manage the instance pool, and handle edge caching.
You simply make a REST API call and receive a structured JSON payload or a binary image directly, the easiest way to automatically take screenshots of website pages without maintaining Puppeteer or Playwright on your own servers.

Is there a free tier for testing and local development?

Yes. A free API key gives you 25 requests per day with the browser automation parameters, including device emulation, custom HTTP headers, and CSS injection.
No credit card is required: sign up for a free API key and start developing. Try it instantly in the screenshot playground or point your code at the endpoint and begin capturing.
By default, our engine includes a built-in, frequently updated adblocker. It automatically dismisses GDPR cookie consent banners, closes newsletter popups, and removes injected ads.
This ensures your programmatic captures remain clean and focused on the actual page content without requiring you to write custom dismissal scripts.

Can I interact with the DOM or run scripts before capturing?

Absolutely. Our screenshot API provides complete browser control. You can execute arbitrary JavaScript via our functions integration, or use native parameters to scroll, click, and wait for specific DOM elements and network events to load.
It is built to handle complex, dynamic SPA (Single Page Application) rendering and visual regression testing workflows with pixel-perfect accuracy.

What is your uptime SLA and expected latency?

We guarantee enterprise-grade reliability with a 99.9% uptime SLA on paid plans. Every request runs in an isolated browser context to guarantee security and avoid shared-state leaks. Check real-time availability on the status page.
For latency: assets are distributed via Cloudflare's 340+ edge locations, meaning cached responses are delivered in milliseconds. For cold starts, our optimized Chromium pool typically responds in under 3 seconds (P95). See our independent benchmark for detailed provider comparisons.

What output formats are supported?

You can export captures as optimized JPEG or PNG formats. We support specific viewport cropping, as well as full-page scrolling captures for long documents. If you need motion, you can even generate animated recordings.
Depending on your integration, you can request a raw image buffer via the embed parameter, or a comprehensive JSON payload that includes the image URL alongside metadata, performance timings, and HTTP headers.
We publish an open cold-start benchmark against the major dedicated screenshot APIs, plus detailed comparisons like Microlink vs Cloudflare's screenshot endpoint covering DIY browser infrastructure.
The short version: Microlink returns finished captures (cookie banners removed by default, a built-in residential proxy for blocked pages, and CDN-hosted URLs) instead of raw browser output you still need to clean, store, and serve.
For price per 1,000 and features side by side, see our comparison of the best screenshot APIs.

How quickly can I integrate this into my stack?

In minutes. Visit our documentation for interactive playground examples, the official SDK (Node.js, browsers, Deno), and copy-paste code snippets.
Need architectural advice or have custom requirements? Check our enterprise offering or contact our engineering team at hello@microlink.io.

Start building

Sign up, add the key to your requests, and start capturing screenshots.
Get your free API key
25 requests/day · Proxy, headers and ttl · No credit card
Trusted with 140M+ requests every month