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 want | screenshotbase parameter |
|---|---|
| The page to capture | url |
| Your own HTML instead of a URL | html in the JSON body of POST /v1/take |
| Markdown instead of a URL | markdown in the JSON body of POST /v1/take |
| Output format | format: png (default), jpg, webp, avif, gif, svg (the image inside an SVG), pdf, markdown or html (the rendered page’s HTML) |
| Image quality | quality, 0 to 100 (JPG, WebP and AVIF) |
| Full-page capture | full_page=1, with full_page_scroll, full_page_max_height and fix_sticky for lazy images and sticky bars |
| One element or a region | selector, or clip_x, clip_y, clip_width, clip_height |
| Resize the image, limit its file size | image_width, image_height, max_file_size, preset (og, x_card, linkedin, thumbnail) |
| Transparent background | omit_background=1 (PNG and WebP) |
| Viewport size | viewport_width, viewport_height (default 1280 × 800) |
| Retina / device pixel ratio | device_scale_factor, 0.5 to 3 |
| Device presets, dark mode | viewport_device, dark_mode, reduce_motion, media_type |
| Wait for the page | wait_until (load, domcontentloaded, networkidle0, networkidle2, or several), delay in seconds, timeout, navigation_timeout |
| Wait for an element | wait_for_selector |
| Click, type or scroll first | actions (up to 20 steps), scripts |
| Fail instead of capturing a wrong page | fail_if_content_contains, fail_if_content_missing, fail_if_request_failed, error_on_selector_not_found, ignore_host_errors=0 |
| Headers, cookies, user agent | headers, cookies, authorization, user_agent, accept_language, locale, time_zone |
| Block ads, cookie banners, chat widgets | block_ads=1, block_cookie_banners=1, block_chats=1 |
| Block trackers or requests | block_trackers=1, block_requests, block_resources |
| Hide elements | hide_selectors[], up to 50 CSS selectors |
| Custom CSS | styles |
| Load the page from another country | ip_country_code, a lowercase country code such as de |
| Your own proxy | proxy, proxy_bypass_hosts |
| Store the file and get a URL | upload=1 |
| File name of the download | attachment_name |
| PDF paper, margins, page ranges | pdf_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, outline | pdf_header_template, pdf_footer_template (JSON body), pdf_outline |
| Debug a render | diagnostics=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 code | screenshotbase 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 requests | block_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
- Time: every render may take up to 110 seconds from the start of the request, with
timeoutup to 105 anddelayup to 30 seconds. See status codes. - Size: viewport and image size limits are in size limits.
- Quota: see pricing and rate limits.
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.