Migration guide

Migrate to screenshotbase

Most screenshot code maps to one GET /v1/take call. This page maps the options you use today to screenshotbase parameters, so you can try the same captures on the free plan before you switch.

1. Get an API key and make one call

Sign up for the free plan and send your key in the apikey header (or the apikey query parameter):

curl -G "https://api.screenshotbase.com/v1/take" \
  --data-urlencode "url=https://example.com" \
  -d full_page=1 -d format=png \
  -H "apikey: YOUR-API-KEY" \
  -o screenshot.png

The response is the file itself. Errors come back as JSON with an HTTP status code; every response carries an X-Request-Id header for support.

2. Map your options

From another screenshot API

Most screenshot APIs offer the same core options under similar names. Look for the option you use in the left column:

What you wantscreenshotbase parameter
The page to captureurl
Your own HTML instead of a URLhtml in the JSON body of POST /v1/take
Markdown instead of a URLmarkdown in the JSON body of POST /v1/take
Output formatformat: png (default), jpg, webp, avif, gif, svg (the image inside an SVG), pdf, markdown or html (the rendered page’s HTML)
Image qualityquality, 0 to 100 (JPG, WebP and AVIF)
Full-page capturefull_page=1, with full_page_scroll, full_page_max_height and fix_sticky for lazy images and sticky bars
One element or a regionselector, or clip_x, clip_y, clip_width, clip_height
Resize the image, limit its file sizeimage_width, image_height, max_file_size, preset (og, x_card, linkedin, thumbnail)
Transparent backgroundomit_background=1 (PNG and WebP)
Viewport sizeviewport_width, viewport_height (default 1280 × 800)
Retina / device pixel ratiodevice_scale_factor, 0.5 to 3
Device presets, dark modeviewport_device, dark_mode, reduce_motion, media_type
Wait for the pagewait_until (load, domcontentloaded, networkidle0, networkidle2, or several), delay in seconds, timeout, navigation_timeout
Wait for an elementwait_for_selector
Click, type or scroll firstactions (up to 20 steps), scripts
Fail instead of capturing a wrong pagefail_if_content_contains, fail_if_content_missing, fail_if_request_failed, error_on_selector_not_found, ignore_host_errors=0
Headers, cookies, user agentheaders, cookies, authorization, user_agent, accept_language, locale, time_zone
Block ads, cookie banners, chat widgetsblock_ads=1, block_cookie_banners=1, block_chats=1
Block trackers or requestsblock_trackers=1, block_requests, block_resources
Hide elementshide_selectors[], up to 50 CSS selectors
Custom CSSstyles
Load the page from another countryip_country_code, a lowercase country code such as de
Your own proxyproxy, proxy_bypass_hosts
Store the file and get a URLupload=1
File name of the downloadattachment_name
PDF paper, margins, page rangespdf_paper_format, pdf_width, pdf_height, pdf_landscape, pdf_margin, pdf_page_ranges, pdf_print_background, pdf_media_type, pdf_scale, pdf_fit_one_page
PDF header and footer, outlinepdf_header_template, pdf_footer_template (JSON body), pdf_outline
Debug a renderdiagnostics=1, best_attempt=1

From Puppeteer or Playwright

If you run a headless browser yourself, these Puppeteer calls map to parameters of one API request. Playwright’s page.screenshot() and page.pdf() take the same options, and its networkidle corresponds to networkidle0.

Your codescreenshotbase parameter
page.setViewport({ width, height, deviceScaleFactor })viewport_width, viewport_height, device_scale_factor
page.goto(url, { waitUntil })url, wait_until
page.setContent(html)html in the JSON body of POST /v1/take
page.screenshot({ fullPage: true })full_page=1
elementHandle.screenshot(), page.screenshot({ clip })selector, clip_x, clip_y, clip_width, clip_height
page.screenshot({ omitBackground: true })omit_background=1
page.waitForSelector(selector)wait_for_selector
page.click(), page.type(), page.evaluate()actions, scripts
page.setExtraHTTPHeaders(), page.setCookie(), page.setUserAgent()headers, cookies, user_agent
page.emulate(device), page.emulateMediaFeatures()viewport_device, dark_mode, reduce_motion
page.setRequestInterception() to block requestsblock_requests, block_resources
page.screenshot({ type: 'jpeg', quality })format=jpg, quality
page.addStyleTag({ content })styles
page.pdf({ format, landscape, margin, printBackground, scale, pageRanges })format=pdf with pdf_paper_format, pdf_landscape, pdf_margin, pdf_print_background, pdf_scale, pdf_page_ranges
page.pdf({ headerTemplate, footerTemplate })pdf_header_template, pdf_footer_template

The take endpoint documentation lists every parameter with its range and default.

Moving off a self-run browser or another service: Puppeteer alternative, Playwright alternative, Selenium alternative, URL2PNG alternative.

3. Check the limits that matter for you

4. Switch over

Run your captures on the free plan side by side with your current setup, compare the results, then choose a plan and replace the calls.

Frequently asked questions

Can I test my captures before I switch?

Yes. The free plan includes 300 screenshots a month without a credit card. Requests rejected with a validation error (HTTP 422) do not count.

What if an option I use is missing from the tables?

Write to us through the contact form with the options you use. We tell you what maps to which parameter, and what does not exist in the API today.

Do you store the screenshots?

No, unless you ask for it: the file is sent back to you and not stored. With upload=1 it is stored on our CDN and you get JSON with its public URL; it counts as one request, like the same capture without it.

Screenshot API

Take screenshots from your code

screenshotbase renders any website in a real browser and returns the image: full page or viewport, any device size, retina, from 117 countries (paid plans), with cookie banners and ads hidden.

/v1/take documentation Screenshot API All documentation

300 free screenshots every month. No credit card required.

GET https://api.screenshotbase.com/v1/take?url=https://example.com&full_page=true

# Response: the image (PNG, JPG, WebP, AVIF or GIF)
curl -G "https://api.screenshotbase.com/v1/take" \
  --data-urlencode "url=https://example.com" \
  -d viewport_width=1280 -d viewport_height=800 \
  -d full_page=true -d format=png \
  -H "apikey: YOUR-API-KEY" \
  -o screenshot.png