PageRender Webpage Screenshot

FREEMIUM
By RenderAPI
Updated 6 months ago
Tools
-/10
Popularity Score
-
Latency
-
Success Rate

PageRender Webpage Screenshot API Documentation

Powerful API to convert any HTML5-CSS3-JS webpage into high-fidelity screenshot (PNG/JPG). Customizable and fast. Javascript, webfonts, SVG, canvas, Typekit ready.

Give more visual information to your app, crush thousands of pages into screenshots… Or any other use case in mind ? Enjoy PageRender Screenshot API. PNG/JPG screenshots are ridiculously easy to produce with our rendering API.

Have a look at our PDF API: PageRender - HTML to PDF, also available on Mashape.

Don't hesitate to contact us for more vitamins or for support.

View API Details
GET/img
GET/img
Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Optional Parameters
disable_jsBOOLEAN
OPTIONALIf set to 1, disable Javascript. Defaults to 0.
filenameSTRING
OPTIONAL
langSTRING
OPTIONALSpecify the Accept-Language header. Defaults to "en-US,en;q=0.8".
viewport_widthNUMBER
OPTIONALDefaults to 1414px. If not specified, the image will not be cropped.
viewport_heightNUMBER
OPTIONALDefaults to 1000px. If not specified, the image will not be cropped.
ttlNUMBER
OPTIONALImages are cached to retrieve them faster. Specify the ttl (Time To Live) in seconds. Defaults to 2592000 (1 month).
urlSTRING
OPTIONALurl or html must be provided to render image.
user_agentSTRING
OPTIONALDefaults to "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_4) AppleWebKit/600.7.12 (KHTML, like Gecko) Version/8.0.7 Safari/600.7.12".
file_formatSTRING
OPTIONALThe file format can take the following values : png, jpeg, jpg. Defaults to "png".
full_pageBOOLEAN
OPTIONALIf the viewport dimensions are specified, the screenshot will be cropped at the provided values. Set full_page to 1 will render the screenshot in the page entirely. Defaults to 0.
unique_tagSTRING
OPTIONALAll screenshots are cached by default. But you can specify an uniqueTag to get a fresh one (e.g. timestamp string).
htmlSTRING
OPTIONALInstead of using url, you can directly provide the html to render the image. Just make sure all static assets are accessible via absolute urls or use <base> tag in your HTML.
rendering_modeSTRING
OPTIONALIf not specified, the best rendering mode is automatically selected. Sometimes, you may prefer another rendering mode so you can force it. The rendering mode can be one of the following values : DEFAULT, ALTERNATE, FALLBACK.
thumbnail_sizeSTRING
OPTIONALIf you want an image of a specific size, you can specify the thumbnail_size in the format WxH (W for width and H for height like "600x800"). The values must be under 1000.
Code Snippet
Response ExampleSchema

Install SDK for (Node.js)Unirest

OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication