Screenshot API

With this API you can take screenshots of any page. You just have to send a GET request to https://api.scrapingdog.com/screenshot with the below-given parameters.

Each successful request to this API will cost 5 credits.

Parameters

Scrapingdog Parameters

Parameter
Description

api_key required

Your personal API key. Available on your dashboard. Type: String

Query Parameters

Parameter
Description

url required

This is the URL of the page for which you want to take a screenshot. Type: String

Full Page

Parameter
Description

fullPage

This is a boolean that tells our server to take a full-page screenshot or just the part that is visible without scrolling. Type: Boolean

Viewport

Parameter
Description

width

This is the width of the browser viewport (pixels). Type: String

height

This is the height of the browser viewport (pixels). Type: String

Wait Until

Parameter
Description

wait_until

The wait_until option determines when navigation is considered complete before taking a screenshot or generating HTML/PDF output.

By default, wait_until is set to 'domcontentloaded'.

Available options:

  • load → resolves when the page’s load event fires

  • domcontentloaded → resolves when the DOM is fully parsed

  • networkidle → resolves when there are no ongoing network requests for at least 500 ms

Type: String

API Example

Response

Last updated