Screenshot API

Take a screenshot of a web page by providing the URL. IP blocks, captchas, location restrictions etc. will be resolved in the process. The screenshot will be returned as an image.

The page is rendered in a browser viewport of width x height pixels (default 1280 x 800) and captured 1:1, so small widths show the site's mobile layout. The response is a JPEG image.

GET
https://api.apileague.com/take-screenshot
Example Request and Response
GET
https://api.apileague.com/{{ examples.getTakeScreenshot }}
Screenshot of the Wikipedia article Web page at 1280 x 800 pixels, shown scaled down

Frequently Asked Questions

Can it handle full-page screenshots?

Currently, the API captures the visible viewport of the web page. Full-page capture capabilities may be added in future updates.

Does it work with JavaScript-heavy sites?

Yes, the API renders the page using a real browser engine, so it can execute JavaScript and capture dynamic content just like a user would see it.

Can I bypass captchas?

The API has built-in mechanisms to attempt to resolve or bypass common captchas and IP blocks to ensure a successful screenshot.

How is the Screenshot API different from the Extract Web Content API?

The Screenshot API captures a visual image of the web page, while the Extract Web Content API extracts the text and metadata from the page.

Questions? Need Help? Ask Away