pageTrap

FREE
By pagetrap
Updated 7 months ago
Data
-/10
Popularity Score
-
Latency
-
Success Rate

pageTrap API Documentation

The pageTrap.com API lets you easily convert a given URL or POSTed HTML to an accurately-rendered PDF or a JPG / PNG file.

pageTrap.com is an easy-to-use conversion service that powers this API. The service renders HTML as a PDF or an Image.

This API is free, but if you become a member at pageTrap.com you will receive 25 free credits that will unlock all features - those features being the removal of the pageTrap logo from the results, and the ability to use many other parameters like: Orientation, Size, Margins, ImageFormat, jQuery selector etc.

View API Details
POST/api/image/
POST/api/pdf/
POST/api/image/

Convert url or html to jpeg or png

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Optional Parameters
URLSTRING
OPTIONALUrl you wish to convert. Use this OR the HTML param
HTMLSTRING
OPTIONALhtml you wish to convert. Use this OR the URL param
KeySTRING
OPTIONALMembership Key. Used for advanced features described at https://pagetrap.com
JSONBOOLEAN
OPTIONALReturn a JSON result containing the result, rather than the binary itself
Code Snippet
Install SDK
Response ExampleSchema

Install SDK for (Node.js)Unirest

OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication