To generate a website screenshot or PDF, send a URL (or supported HTML) to a hosted browser-rendering API and save its binary response. Choose a screenshot for a visual capture of the page; choose PDF when you need print-style pages and selectable text. For custom browser control, run Playwright yourself. The right wait condition, capture scope, and print settings matter as much as the request.
How do I take a screenshot of a website with an API?
A screenshot API loads a page in a browser and returns a rendered image, commonly PNG, JPEG, or WebP. A hosted API avoids maintaining the browser infrastructure; Playwright is an option when you need direct control over browser behavior and lifecycle. For a hosted API, check its current request format, authentication method, output options, limits, and target-site compatibility before building around it.
As an Amazon Associate I earn from qualifying purchases.
Choose the capture scope
- Viewport: captures only the visible browser area at the configured viewport size.
- Full page: aims to capture the document’s scrollable content. Full-page capture may need scrolling to trigger lazy-loaded images and other content.
- Element: captures a selected element when the provider supports selector-based capture.
- Clip: captures a specified region when the provider supports clipping.
Set viewport dimensions and device emulation to match the presentation you need. A mobile-sized viewport, for example, can produce a different layout from a desktop-sized one; neither should be treated as a neutral default.
Free tools Windows power users keep installed
One-click scans. No signup required.
Make a hosted request safely
Provider request formats differ. Browserless documents screenshot requests that accept a URL or HTML, but not both in the same request body; it uses a token for authentication. ScreenshotOne requires an access key. Keep credentials on a server or another protected execution context rather than in publicly distributed frontend code, and use HTTPS so requests are encrypted. See the providers’ Browserless screenshot API documentation and ScreenshotOne documentation for their respective options.
#1 Best Overall
- BEST FOR SMALL BUSINESSES – Engineered for extraordinary productivity, the Brother DCP-L2640DW Monochrome (Black & White) 3-in-1 combines laser printer, scanner, copier in one compact footprint and delivers high-quality black & white prints
- FAST PRINTER WITH EFFICIENT SCANNING – Produces documents quickly with print speeds up to 36 ppm(2) and scan speeds up to 23.6/7.9 ipm(3) (black/color). A 50-page auto document feeder(4) allows for convenient, time saving multi-page scanning and copying
- FLEXIBLE CONNECTION OPTIONS – Easily navigate the changing demands of your business with secure multi-device connectivity via built-in dual-band wireless (2.4GHz / 5GHz) and Ethernet. Or connect locally to a single computer via USB interface
- BROTHER MOBILE CONNECT APP – Print, scan, and manage your wireless printer anytime, from almost anywhere from your mobile device. Order Brother Genuine Supplies, track toner usage, and complete more work on-the-go(5)
- CHOOSE BROTHER GENUINE TONER – When it’s time to replace your toner, be sure to choose Brother Genuine TN830 or TN830XL replacement toner. And with Refresh EZ Print Subscription Service, you’ll never worry about running out of toner again and you’ll enjoy savings of up to 50%(6) on Brother Genuine Toner. Get started with Refresh today with a Free Trial(1)
Save the response as binary data, not as a text string. Check its content type and open the resulting image to confirm it contains the intended page rather than a challenge screen, error page, or blank capture.
How do I convert a URL to PDF?
Use a provider’s PDF endpoint or browser PDF method when you want a print-oriented document. Browserless says its PDF endpoint uses Chrome’s print engine, producing selectable text rather than a screenshot image. Playwright’s PDF method uses print CSS media by default. Set paper size, margins, page ranges, landscape orientation, and background-print behavior according to the document you want; these settings affect pagination and appearance.
Print output and screen-like output are different
Print rendering can change colors and omit backgrounds. In Playwright, call page.emulateMedia({ media: 'screen' }) before generating a PDF if you want screen media styles. Playwright also documents -webkit-print-color-adjust for forcing exact colors. ScreenshotOne documents media_type=screen and pdf_print_background=true; its PDF background-print option defaults to false. Consult the Playwright PDF documentation and ScreenshotOne documentation for implementation details.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
Rank #2
- BEST FOR HOMES & HOME OFFICES – Engineered for consistent, premium print quality, the Brother HL-L2405W Monochrome (Black & White) Laser Printer delivers sharp, crisp prints at an affordable price. Prints one-sided documents at speeds up to 30ppm(2)
- COMPACT, CONNECTED PRINTER – Flexible connection options make this an ideal printer for home use and at-home offices. Securely connect to multiple devices with built-in dual-band wireless (2.4GHz/5GHz) or locally to a single computer via USB interface
- BROTHER MOBILE CONNECT APP – Manage your printer remotely and print from your mobile device anytime, from almost anywhere. Order Brother Genuine Supplies, track toner usage, and complete more work on-the-go(3)
- VERSATILE PAPER HANDLING – Enjoy seamless, reliable everyday printing with the 250-sheet paper tray(4) and a manual feed slot that enables printing on envelopes and specialty pape
- BROTHER IS AT YOUR SIDE – Backed by Brother with a 1-year limited warranty and free online, call, or live chat support for the life of your printer
A full-page image is not automatically a continuous PDF
A full-page screenshot is usually one tall image. A normal PDF is paginated according to print layout. Browserless explicitly states that its REST /pdf endpoint does not create a single continuous page for the entire website; its documentation points to a custom-function workflow if continuous output is essential. ScreenshotOne documents a fit-to-one-page option, which may suit some cases. Confirm that the resulting size and layout are usable before relying on it.
Browserless also documents tagged PDF output, but says the quality depends on the source markup and that tagged output is not certified PDF/UA. See its PDF API documentation for endpoint behavior.
How do I capture a full webpage reliably?
- Choose URL or HTML. Send the public page URL, or raw HTML when rendering content you generate. Browserless accepts either URL or HTML for its screenshot and PDF endpoints; do not send both in the same request body.
- Pick viewport and scope. Decide whether the output should show the viewport, the full document, a selector, or a fixed clip. Match the viewport and device emulation to the intended display.
- Wait for meaningful readiness. Navigation completion does not guarantee that client-rendered content, fonts, or images are ready. Use a selector, event, function, or delay appropriate to the page and API. Browserless documents wait controls and scrolling before capture.
- Trigger lazy content when needed. Scroll through the page before taking a full-page capture if content loads as it enters view. Check that images and below-the-fold sections actually appeared.
- Inspect the output. Open the saved image or PDF and look for overlays, missing elements, unintended pagination, blank areas, or an access-denied page.
Some sites block automated browsers and may return a CAPTCHA, access-denied screen, blank page, or broken elements. A screenshot API cannot guarantee that every target will render normally. Browserless describes these failure patterns and wait/scroll options in its screenshot documentation.
Rank #3
- FAST PRINT SPEEDS: Print up to 19 pages per minute.
- COMPACT DESIGN: Space-saving, compact design fits anywhere in your home, school or small office.
- WIRELESS CONNECTIVITY: Print from almost anywhere in your workspace using your compatible mobile device.
- PAPER CAPACITY: Up to 150 sheets.
- SUSTAINABILITY: Uses less than 2 watts in Energy Saver mode.
Screenshot API or Playwright: which should I use?
| Approach | Good fit | Trade-offs |
|---|---|---|
| Hosted screenshot or PDF REST API | A single HTTP request per capture without operating browser infrastructure. | Check provider authentication, feature limits, session behavior, service terms, and compatibility with the target page. Current prices and quotas are not established here; check provider pages directly. |
| Playwright in an application you operate | Custom browser automation, control over page lifecycle, or deliberate PDF configuration. | Your application owns browser setup and workflow maintenance. Configure print versus screen media deliberately for PDFs. |
Compare formats, viewport and selector support, full-page behavior, wait controls, PDF pagination and background printing, session handling, and whether your specific page renders reliably. The documented options do not establish a general price, speed, or reliability winner. Browserless notes that its REST calls are independent and do not retain session state between responses; multi-step flows that click or fill forms need a session/workflow capability or direct browser automation. See Browserless REST API documentation and Playwright screenshot documentation.
The Tool Desk
Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →Or skip the browser setup
ScreenshotNeo is a website screenshot API and MCP server for developers. One GET request can return a PNG, JPEG, WebP, or PDF. Its API accepts the parameter names used by other screenshot APIs, which can make switching easier. Before capture, it accepts the cookie/consent banner as a visitor and removes 60+ known consent platforms, newsletter popups, and chat widgets; each of those steps can be turned off. Bot checks/CAPTCHAs, blank pages, timeouts, failed loads, and cache hits cost nothing, and each response identifies the page verdict and billing status in headers. Its MCP server includes take_screenshot, get_page_info, and capture_pdf for Claude, Cursor, and other MCP clients. Every feature is on every plan; 1,000 screenshots a month are free with no card, and paid plans start at $5 for 3,000.
Example cURL request (replace the target URL and API key):
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
For the full parameter reference, see the ScreenshotNeo API documentation. You can also make the same request in Python or Node.js:
Rank #4
- BEST FOR HOME OFFICES & SMALL TEAMS – Engineered for consistent, premium print quality, the Brother HL-L2460DW Monochrome (Black & White) Laser Printer produces documents that are clear, crisp, and easy to review and share, all at an affordable price
- COMPACT, CONNECTED, EXCEPTIONALLY EFFICIENT– Connect with built-in dual-band wireless (2.4GHz/5GHz), Ethernet, or to a single computer via USB interface. Prints at speeds up to 36ppm(2), plus automatic duplex printing saves time and reduces paper waste
- BROTHER MOBILE CONNECT APP – Manage your wireless printer remotely and print from your mobile device anytime, from almost anywhere. Order Brother Genuine Supplies, track toner usage, and complete more work on-the-go(3)
- VERSATILE PAPER HANDLING – Tackle high-volume black & white printing with the 250-sheet capacity paper tray.(4) The manual feed slot enables printing on envelopes and specialty paper
- BROTHER IS AT YOUR SIDE – Backed by Brother with a 1-year limited warranty and free online, call, or live chat support for the life of your printer
import requests
r = requests.get("https://api.screenshotneo.com/v1/shot", params={"access_key": "YOUR_API_KEY", "url": "https://stripe.com"}, timeout=90)
open("shot.webp", "wb").write(r.content)
const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://stripe.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);
For production, keep the key out of browser code, inspect the response headers and content type, and handle failed or non-image responses rather than saving every response as an image. ScreenshotNeo also supports PDF settings, full-page and selector capture, waits, custom CSS and JavaScript, headers and cookies, caching, async jobs, bulk capture, and other controls described in its documentation.
Sign up for ScreenshotNeo: 1,000 free screenshots a month, no card required.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Why is my website screenshot blank?
- Automation was blocked: the site may have served a CAPTCHA, access-denied page, or empty response instead of the expected page. Inspect the returned image and page verdict before treating it as a successful capture.
- The capture happened too early: wait for a page-specific selector or other meaningful ready state instead of relying only on navigation completion.
- Lazy content never loaded: scroll the document to trigger loading before a full-page capture.
- The requested scope missed the content: confirm that the viewport, selector, or clip matches the element and layout you intended.
- PDF styling differs from the screen: print CSS can change color or hide backgrounds; set screen media or background printing when that matches your goal.
Validate the actual returned file and response metadata. A successful HTTP response alone does not prove that the page rendered as intended.
Best Value
- FROM AMERICA'S MOST TRUSTED PRINTER BRAND – Perfect for small teams printing professional-quality black & white documents and reports. Perfect for 1-3 people
- WORLD'S SMALLEST LASER IN ITS CLASS – Precision laser printing that fits anywhere
- FAST PRINT SPEEDS – Up to 21 black-and-white pages per minute single-sided
- WIRELESS WITH SELF-RESET – Helps you stay connected
- PRINT FROM ANY DEVICE – Wireless printing from any mobile device, PC or tablet. Works with Microsoft, Mac, AirPrint, Android, Chromebook and more
Can a screenshot API render JavaScript?
Browser-based screenshot APIs render pages in a browser, so they can capture client-rendered content when the page has loaded and the request waits for the necessary state. They do not guarantee that every JavaScript application finishes in time or that a site will allow automated access. Use a selector or other page-specific wait, trigger lazy loading if necessary, and inspect the result for missing content or bot challenges.
Frequently Asked Questions
Can I capture a page that requires clicking or signing in?
A single REST capture may not preserve browser state across requests. For multi-step interactions, use a provider workflow or session feature if available, or control the browser directly with Playwright.
Will a PDF look exactly like the screenshot?
Not necessarily. PDFs use print layout and pagination unless configured otherwise; print media can change colors, backgrounds, and layout. Set the desired media and background options and inspect the exported file.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.




