Screenshot Capture API

URL to Image Converter API to Capture Screenshot of a Website or Webpage from a URL.

POST https://api.htmlcsstoimg.com/api/v1/generateImage

Generate an image from a URL

Headers

NameTypeDescription

CLIENT-API-KEY*

String

API Key for your account. Will be available on your dashboard.

Request Body

NameTypeDescription

url

String

URL of the Webpage whose screenshot is to be captured

viewPortWidth

Number

Height of View Port. Default value is 1080

viewPortHeight

Number

Height of View Port. Default value is 720

quality

Number

Quality of the image should be in the range 30-100. Default value is 30.

generate_img_url

Boolean

Whether the output should return the image or the Image URL. Default value is true.

full_page

Boolean

Whether to capture full-page screenshot of the URL. Default value is false.

wait_till

Number

Number of seconds to wait before capturing a screenshot from the URL. Default value is 0.

Last updated