POST service endpoint that takes URL and converts the associated webpage to a PNG image. Download link for the image is returned.
/url2png Convert webpage to PNG.
The url2png endpoint accepts a URL and returns a link to download a PNG representation of the web page at the URL.
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) |
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. |
Name | Type | Description |
---|---|---|
message | string | No URL to print in post data |
Name | Type | Description |
---|---|---|
message | string | Error message |
error | object | Error object. |