Firecrawl CLI gives agents the complete web data toolkit for scraping, searching, and browsing. Try it now →

How do you take a screenshot of a website using an API?

A website screenshot API renders a page in a cloud-hosted browser and returns a captured image as a hosted URL or binary, with no local Chromium install required. Screenshot APIs split into two categories: dedicated services that only capture images, and web scraping APIs that include screenshot alongside markdown and structured data in one request.

FactorDedicated screenshot APIWeb scraping API (with screenshot)Local headless browser
SetupAPI key onlyAPI key onlyInstall Chromium, manage driver
OutputScreenshot URL or binaryScreenshot URL plus content formatsBuffer saved to disk
Content extractionScreenshot onlyScreenshot and markdown in one requestSeparate parsing step
InfrastructureManaged cloudManaged cloudLocal machine
Best forBulk visual capture, page monitoringCombined scraping and visual captureFine-grained browser control

Use a dedicated screenshot API for high-volume visual capture with no content extraction. Use a scraping API with screenshot support when you need the image alongside extracted content, or after page interactions. Local headless browsers are the right choice when you need custom viewports or interaction control that managed APIs don't expose.

Firecrawl's Scrape API supports screenshot as an output format alongside markdown and structured data: pass it in formats and a single request returns both the rendered page content and a hosted screenshot URL. For a step-by-step Python example, see how to use Firecrawl for screenshots instead of Playwright.

Last updated: Mar 16, 2026
FOOTER
The easiest way to extract
data from the web
Backed by
Y Combinator
LinkedinGithubYouTube
SOC II · Type 2
AICPA
SOC 2
X (Twitter)
Discord