Skip to content

Api2Pdf - PDF Generation, Powered by AWS Lambda API

by api2pdf.com

API keyHTTPSDevelopment
Open documentation ↗

Overview

# Introduction [Api2Pdf](https://www.api2pdf.com) is a powerful PDF generation API with no rate limits or file size constraints. Api2Pdf runs on AWS Lambda, a serverless architecture powered by Amazon to scale to millions of requests while being up to 90% cheaper than alternatives. **Supports wkhtmltopdf, Headless Chrome, LibreOffice, and PDF Merge.** You can also generate barcodes with ZXING (Zebra Crossing). # SDKs & Client Libraries We've made a number of open source libraries available for the API - Python: [https://github.com/api2pdf/api2pdf.python](https://github.com/api2pdf/api2pdf.python) - .NET: [https://github.com/api2pdf/api2pdf.dotnet](https://github.com/api2pdf/api2pdf.dotnet) - Nodejs: [https://github.com/api2pdf/api2pdf.node](https://github.com/api2pdf/api2pdf.node) - PHP: [https://github.com/Api2Pdf/api2pdf.php](https://github.com/Api2Pdf/api2pdf.php) - Ruby: (Coming soon) # Authorization Create an account at [portal.api2pdf.com](https://portal.api2pdf.com/register) to get an API key. **Authorize your API calls** - GET requests, include apikey=YOUR-API-KEY as a query string parameter - POST requests, add **Authorization** to your header. ``` Authorization: YOUR-API-KEY ``` # Quickstart If you are looking for just a quick call to grab PDFs of a URL, you can do a GET request like: ``` https://v2018.api2pdf.com/chrome/url?url={UrlToConvert}&apikey={YourApiKey} ``` For more advanced usage and settings, see the API specification below.

Api2Pdf - PDF Generation, Powered by AWS Lambda is a development API from api2pdf.com. Requests are authenticated with an API key. It is served over HTTPS. Its OpenAPI description documents 9 endpoints.

At a glance

Authentication
API key
HTTPS
Yes
CORS
Unknown
Category
Development
Base URL
https://v2018.api2pdf.com
Version
1.0.0
Endpoints
9
Spec updated
2019-01-04

Make a first request

Replace the placeholders; the documentation says exactly where credentials go.

cURL
curl -X GET "https://v2018.api2pdf.com/chrome/url" \
  -H "Accept: application/json" \
  -H "X-API-Key: YOUR_API_KEY"
JavaScript
const response = await fetch("https://v2018.api2pdf.com/chrome/url", {
  method: "GET",
  headers: {
    "Accept": "application/json",
    "X-API-Key": "YOUR_API_KEY",
  },
});
const data = await response.json();
console.log(data);
Python
import requests

response = requests.request(
    "GET",
    "https://v2018.api2pdf.com/chrome/url",
    headers={
    "Accept": "application/json",
    "X-API-Key": "YOUR_API_KEY",
    },
    timeout=30,
)
print(response.json())

Endpoints

MethodPathWhat it does
POST/chrome/htmlConvert raw HTML to PDF
GET/chrome/urlConvert URL to PDF
POST/chrome/urlConvert URL to PDF
POST/libreoffice/convertConvert office document or image to PDF
POST/mergeMerge multiple PDFs together
POST/wkhtmltopdf/htmlConvert raw HTML to PDF
GET/wkhtmltopdf/urlConvert URL to PDF
POST/wkhtmltopdf/urlConvert URL to PDF
GET/zebraGenerate bar codes and QR codes with ZXING.

Questions

Does the Api2Pdf - PDF Generation, Powered by AWS Lambda API need an API key?

Yes. The Api2Pdf - PDF Generation, Powered by AWS Lambda API uses API key authentication; the documentation explains how to get credentials.

Does the Api2Pdf - PDF Generation, Powered by AWS Lambda API support HTTPS?

Yes, the Api2Pdf - PDF Generation, Powered by AWS Lambda API is served over HTTPS.

How many endpoints does the Api2Pdf - PDF Generation, Powered by AWS Lambda API have?

Its OpenAPI description lists 9 endpoints in version 1.0.0. All of them are shown on this page.

What are alternatives to the Api2Pdf - PDF Generation, Powered by AWS Lambda API?

Other Development APIs include Cloudflare, Azure DevOps, IPify, App Store Connect API, StackExchange.

Compare alternatives →

Listed from APIs.guru (CC0).