Find an API

Search public APIs with auth details & Postman guides

← All APIs

Api2Pdf - PDF Generation, Powered by AWS Lambda

api2pdf · Developer Tools

Developer Tools No Auth Free & Open developer_tools Sandbox

# 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

Authentication

No authentication requiredFree to use with no key needed.

Sample Requests

GET Generate bar codes and QR codes with ZXING.

See full list of options and documentation [here](https://www.api2pdf.com/documentation/advanced-options-zxing-zebra-crossing-barcodes/) ### Authorize via Query String Parameter **apikey=YOUR-API-KEY** ### Example ``` https://v2018.api2pdf.com/zebra?format={format}&apikey={YourApiKey}&value={YourTex

https://api.apis.guru/v2/specs/api2pdf.com/1.0.0/zebra?value=example&width=1&format=json&height=1&showlabel=true

Hover any highlighted part to learn what it does

curl -X GET "https://api.apis.guru/v2/specs/api2pdf.com/1.0.0/zebra?value=example&width=1&format=json&height=1&showlabel=true"
import requests
params = {
    "value": "example",
    "width": "1",
    "format": "json",
    "height": "1",
    "showlabel": "true"
}
response = requests.get(
    "https://api.apis.guru/v2/specs/api2pdf.com/1.0.0/zebra",
    params=params,
)
print(response.json())
const url = new URL('https://api.apis.guru/v2/specs/api2pdf.com/1.0.0/zebra');
url.searchParams.set('value', 'example');
url.searchParams.set('width', '1');
url.searchParams.set('format', 'json');
url.searchParams.set('height', '1');
url.searchParams.set('showlabel', 'true');

const response = await fetch(url); 
const data = await response.json();
console.log(data);
package main

import (
	"fmt"
	"io"
	"net/http"
	"net/url"
)

func main() {
	baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/api2pdf.com/1.0.0/zebra")
	q := baseURL.Query()
	q.Set("value", "example")
	q.Set("width", "1")
	q.Set("format", "json")
	q.Set("height", "1")
	q.Set("showlabel", "true")
	baseURL.RawQuery = q.Encode()
	targetURL := baseURL.String()
	req, _ := http.NewRequest("GET", targetURL, nil)

	client := &http.Client{}
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	body, _ := io.ReadAll(resp.Body)
	fmt.Println(string(body))
}
require "net/http"
require "json"

uri = URI("https://api.apis.guru/v2/specs/api2pdf.com/1.0.0/zebra")
uri.query = URI.encode_www_form({
  "value" => "example",
  "width" => "1",
  "format" => "json",
  "height" => "1",
  "showlabel" => "true"
})

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"

req = Net::HTTP::Get.new(uri)

res = http.request(req)
puts JSON.parse(res.body)
<?php
$url = "https://api.apis.guru/v2/specs/api2pdf.com/1.0.0/zebra?" . http_build_query([
    "value" => "example",
    "width" => "1",
    "format" => "json",
    "height" => "1",
    "showlabel" => "true"
]);
$opts = ["http" => [
    "method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));
GET Convert URL to PDF

Convert a URL or Web Page to PDF using Headless Chrome on AWS Lambda. This GET request is for convenience and does not support advanced options. Use the POST request for more flexibility. ### Authorize via Query String Parameter **apikey=YOUR-API-KEY** ### Example ``` https://v2018.api2pdf.com/chrom

https://api.apis.guru/v2/specs/api2pdf.com/1.0.0/chrome/url?url=https://example.com&output=json

Hover any highlighted part to learn what it does

curl -X GET "https://api.apis.guru/v2/specs/api2pdf.com/1.0.0/chrome/url?url=https%3A%2F%2Fexample.com&output=json"
import requests
params = {
    "url": "https://example.com",
    "output": "json"
}
response = requests.get(
    "https://api.apis.guru/v2/specs/api2pdf.com/1.0.0/chrome/url",
    params=params,
)
print(response.json())
const url = new URL('https://api.apis.guru/v2/specs/api2pdf.com/1.0.0/chrome/url');
url.searchParams.set('url', 'https://example.com');
url.searchParams.set('output', 'json');

const response = await fetch(url); 
const data = await response.json();
console.log(data);
package main

import (
	"fmt"
	"io"
	"net/http"
	"net/url"
)

func main() {
	baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/api2pdf.com/1.0.0/chrome/url")
	q := baseURL.Query()
	q.Set("url", "https://example.com")
	q.Set("output", "json")
	baseURL.RawQuery = q.Encode()
	targetURL := baseURL.String()
	req, _ := http.NewRequest("GET", targetURL, nil)

	client := &http.Client{}
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	body, _ := io.ReadAll(resp.Body)
	fmt.Println(string(body))
}
require "net/http"
require "json"

uri = URI("https://api.apis.guru/v2/specs/api2pdf.com/1.0.0/chrome/url")
uri.query = URI.encode_www_form({
  "url" => "https://example.com",
  "output" => "json"
})

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"

req = Net::HTTP::Get.new(uri)

res = http.request(req)
puts JSON.parse(res.body)
<?php
$url = "https://api.apis.guru/v2/specs/api2pdf.com/1.0.0/chrome/url?" . http_build_query([
    "url" => "https://example.com",
    "output" => "json"
]);
$opts = ["http" => [
    "method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));
GET Convert URL to PDF

Convert a URL or Web Page to PDF using WkHtmlToPdf on AWS Lambda. This GET request is for convenience and does not support advanced options. Use the POST request for more flexibility. ### Authorize via Query String Parameter **apikey=YOUR-API-KEY** ### Example ``` https://v2018.api2pdf.com/wkhtmltop

https://api.apis.guru/v2/specs/api2pdf.com/1.0.0/wkhtmltopdf/url?url=https://example.com&output=json

Hover any highlighted part to learn what it does

curl -X GET "https://api.apis.guru/v2/specs/api2pdf.com/1.0.0/wkhtmltopdf/url?url=https%3A%2F%2Fexample.com&output=json"
import requests
params = {
    "url": "https://example.com",
    "output": "json"
}
response = requests.get(
    "https://api.apis.guru/v2/specs/api2pdf.com/1.0.0/wkhtmltopdf/url",
    params=params,
)
print(response.json())
const url = new URL('https://api.apis.guru/v2/specs/api2pdf.com/1.0.0/wkhtmltopdf/url');
url.searchParams.set('url', 'https://example.com');
url.searchParams.set('output', 'json');

const response = await fetch(url); 
const data = await response.json();
console.log(data);
package main

import (
	"fmt"
	"io"
	"net/http"
	"net/url"
)

func main() {
	baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/api2pdf.com/1.0.0/wkhtmltopdf/url")
	q := baseURL.Query()
	q.Set("url", "https://example.com")
	q.Set("output", "json")
	baseURL.RawQuery = q.Encode()
	targetURL := baseURL.String()
	req, _ := http.NewRequest("GET", targetURL, nil)

	client := &http.Client{}
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	body, _ := io.ReadAll(resp.Body)
	fmt.Println(string(body))
}
require "net/http"
require "json"

uri = URI("https://api.apis.guru/v2/specs/api2pdf.com/1.0.0/wkhtmltopdf/url")
uri.query = URI.encode_www_form({
  "url" => "https://example.com",
  "output" => "json"
})

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"

req = Net::HTTP::Get.new(uri)

res = http.request(req)
puts JSON.parse(res.body)
<?php
$url = "https://api.apis.guru/v2/specs/api2pdf.com/1.0.0/wkhtmltopdf/url?" . http_build_query([
    "url" => "https://example.com",
    "output" => "json"
]);
$opts = ["http" => [
    "method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));

Postman Setup Guide

Get Postman ↗
  1. See official documentation for authentication and setup.

What can you build with Api2Pdf - PDF Generation, Powered by AWS Lambda?

Api2Pdf - PDF Generation, Powered by AWS Lambda is a Developer Tools API. Developers commonly use developer tools APIs for:

  • automating code review and quality checks
  • integrating CI/CD pipelines and build systems
  • managing feature flags and A/B tests
  • monitoring errors and application performance
  • generating and validating test data

No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. Api2Pdf - PDF Generation, Powered by AWS Lambda is free to use, making it a low-risk choice to experiment with.

New to APIs? Read our beginner's guide · Learn about API keys · What is REST?

Open documentation ↗