API Basics
Data Tools
WWW
★  Browser Bot
★  HTML Clean
★  HTML Extract
★  URL Info
Telephony
Geolocation
Security and Networking
E-commerce
Imaging

HTML Render

Render HTML content to PDF, JPG or PNG.

The HTML render API is based on the latest Chromium browser engine and provides excellent rendering quality with full support for HTML5, CSS3, SVG and JavaScript.

Features include:

End Point

https://neutrinoapi.net/html-render
Test API
API Request
ParameterRequiredTypeDefaultDescription
contentyesstringThe HTML content. This can be either a URL to load from, a file upload or an HTML content string
formatnostringPDFWhich format to output, available options are: PDF, PNG, JPG
titlenostringThe document title
page-sizenostringA4Set the document page size, can be one of: A0 - A9, B0 - B10, Comm10E, DLE or Letter
page-widthnofloatSet the PDF page width explicitly (in mm)
page-heightnofloatSet the PDF page height explicitly (in mm)
image-widthnointeger1024If rendering to an image format (PNG or JPG) use this image width (in pixels)
image-heightnointegerIf rendering to an image format (PNG or JPG) use this image height (in pixels). The default is automatic which dynamically sets the image height based on the content
marginnofloat0The document margin (in mm)
margin-leftnofloat0The document left margin (in mm)
margin-rightnofloat0The document right margin (in mm)
margin-topnofloat0The document top margin (in mm)
margin-bottomnofloat0The document bottom margin (in mm)
landscapenobooleanfalseSet the document to landscape orientation
zoomnofloat1Set the zoom factor when rendering the page (2.0 for double size, 0.5 for half size)
grayscalenobooleanfalseRender the final document in grayscale
cssnostringInject custom CSS into the HTML. e.g. 'body { background-color: red;}'
timeoutnointeger300Timeout in seconds. Give up if still trying to load the HTML content after this number of seconds
delaynointeger0Number of seconds to wait before rendering the page (can be useful for pages with animations etc)
ignore-certificate-errorsnobooleanfalseIgnore any TLS/SSL certificate errors
headernostringThe header HTML to insert into each page. The following dynamic tags are supported: {date}, {title}, {url}, {pageNumber}, {totalPages}
footernostringThe footer HTML to insert into each page. The following dynamic tags are supported: {date}, {title}, {url}, {pageNumber}, {totalPages}
API Response
Daily Limits
Free TierTier 1Tier 2Tier 3
101001,00010,000