Last 7 days, UTC

Average Latency
5ms

Average Uptime
100.0%

Current Status
Online

  • No information
  • Outage
  • Disruption
  • Normal
Average latency determined from Mashape to API Response time
Query Authentication
 

Authentication for the ConvertApi


Authentication
Description
Parameter
String

Get your own free apikey on http://www.convertapi.com/prices

ApiKey

Required

Endpoints

HTTP 200 : binary POST/
Convert Url

Post url to server


Test console
Description
Parameter
string

URI of a web page to convert. Must start with http:// or https://. Several URI of web pages merged with %20 (space) symbol can be passed to create one PDF. For example if http://www.google.com%20http://www.nytimes.com URI will be passed the two web pages will be merged into one PDF. If URI has special characters like ? or & they must be encoded. Also a HTML code can be submitted for conversion using this parameter.
Example: http://www.google.com

CUrl

Required

string

Delay in seconds before page load and Pdf creation. Sometimes useful to let web page to load in full.
Example: 2

ConversionDelay

Optional

boolean

Allow web pages to run javascript.

Scripts

Optional

boolean

Print web page background.

Background

Optional

boolean

Use print media-type(print css sheet) instead of screen.

PrintType

Optional

string

Set the page left margin. Margins can be specified in millimeters (mm), inches (in) or centimeters (cm). If no units are specified, millimeters are assumed.
Example: 5

MarginLeft

Optional

string

Set the page right margin. Margins can be specified in millimeters (mm), inches (in) or centimeters (cm). If no units are specified, millimeters are assumed.
Example: 5

MarginRight

Optional

string

Set the page top margin. Margins can be specified in millimeters (mm), inches (in) or centimeters (cm). If no units are specified, millimeters are assumed.
Example: 10

MarginTop

Optional

string

Set the page bottom margin. Margins can be specified in millimeters (mm), inches (in) or centimeters (cm). If no units are specified, millimeters are assumed.
Example: 10

MarginBottom

Optional

string

Set Pdf page orientation: portrait or landscape.
Example: portrait

PageOrientation

Optional

string

Set Pdf page paper sizes: a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, b0, b1, b2, b3, b4, b5, letter, legal, ledger.
Example: a4

PageSize

Optional

string

Custom page width. Custom page size can be specified in millimeters (mm), inches (in) or centimeters (cm). If no units are specified, millimeters are assumed. This option override PageSize parameter.

PageWidth

Optional

string

Custom page height. Custom page size can be specified in millimeters (mm), inches (in) or centimeters (cm). If no units are specified, millimeters are assumed. This option override PageSize parameter.

PageHeight

Optional

  • string – Conversion failed. Detailed information about error are available in HTTP response header.

    HTTP 400
HTTP 200 : string POST/json/
Convert Url JSon

Test console
Description
Parameter
string

Example: Please refer to description above.

CUrl

Required

boolean

Store file on server and return url to file instead of file stream response. File will be available for 24 hours.

StoreFile

Optional

Consume this API completely for free!


By joining the mashape API marketplace you can start using Web2Pdf API today!

Login to your account or signup: Create Account

or
   Signup with GitHub

By signing up you agree to our terms of service.