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
- OpenAPI
- Specification ↗
- Spec updated
- 2019-01-04
Make a first request
Replace the placeholders; the documentation says exactly where credentials go.
curl -X GET "https://v2018.api2pdf.com/chrome/url" \
-H "Accept: application/json" \
-H "X-API-Key: YOUR_API_KEY"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);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
| Method | Path | What it does |
|---|---|---|
| POST | /chrome/html | Convert raw HTML to PDF |
| GET | /chrome/url | Convert URL to PDF |
| POST | /chrome/url | Convert URL to PDF |
| POST | /libreoffice/convert | Convert office document or image to PDF |
| POST | /merge | Merge multiple PDFs together |
| POST | /wkhtmltopdf/html | Convert raw HTML to PDF |
| GET | /wkhtmltopdf/url | Convert URL to PDF |
| POST | /wkhtmltopdf/url | Convert URL to PDF |
| GET | /zebra | Generate 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.
Similar development APIs
Compare alternatives →Cloudflare
DevelopmentManage DNS, CDN, Workers and other services; documented with an official OpenAPI 3.0 spec
Azure DevOps
DevelopmentThe Azure DevOps basic components of a REST API request/response pair
IPify
DevelopmentA simple IP Address API
App Store Connect API
DevelopmentThe data structure that represents an app store connect api resource.
StackExchange
DevelopmentQ&A forum for developers
IPinfo
DevelopmentAnother simple IP Address API
Listed from APIs.guru (CC0).