Web to Image

Options

default method variable type

URL

Url needs to be provided with the http or https protocol to correctly fetch the site. Ex. https://google.com

GET http://api.webtoimage.com/v1/screenshot?url=https://google.com

HTML

HTML needs to contain whole page including html and body tag

{primary} You can provide URL or HTML. If both is provided the URL will be used.

POST http://api.webtoimage.com/v1/screenshot
{
    html: '<html><body><h1>HELO WORLD</h1></body></html>'
}

Width

980px integer

By providing the width variable you can change the viewport width size.

GET http://api.webtoimage.com/v1/screenshot?width=980

Height

1080px integer

By providing the height variable you can change the viewport height size.

GET http://api.webtoimage.com/v1/screenshot?height=1080

Full page

0 (false) integer

By providing the height variable you can change the viewport height size. Values are 0 (false) and 1 (true)

GET http://api.webtoimage.com/v1/screenshot?full_page=0