Skip to content
This repository was archived by the owner on May 7, 2025. It is now read-only.

Latest commit

 

History

History
42 lines (27 loc) · 1.09 KB

File metadata and controls

42 lines (27 loc) · 1.09 KB

Url2Png API: v1.0.0

####Table of Contents

/url2png  POST    Convert webpage to PNG.



####/url2png  POST

The url2png endpoint accepts a URL and returns a link to download a PNG representation of the web page at the URL.

Parameters
Name Required In Type Description
url true body string URL of webpage to convert
viewport_width false body number The width of the produced PNG (default is 1440px)
delay false body number The time delay (ms) before executing image capture (default is 5000 ms)

#####Success 200 (Object)

Name Type Description
message string success
downloadURL string The relative URL for download of the captured image. Root will be the same as the API.

#####Error 400 (Object)

Name Type Description
message string No URL to print in post data

#####Error 500 (Object)

Name Type Description
message string Error message
error object Error object.