POST service endpoint that takes URL and sends back a PNG link.
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
docs
exports
.gitignore
Gruntfile.js
LICENSE
README.md
api-doc.html
api-doc.md
api-documentation.json
app.js
endpoint.js
package.json

README.md

url2png

POST service endpoint that takes URL and converts the associated webpage to a PNG image. Download link for the image is returned.

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.