PDF Generator API

Convert any URL into PDFs with our PDF generation API. Perfect for generating invoices, reports, and archives with full control over layout, and styling.

99.9% UptimeHeadless ChromeAnti-Bot Bypass
Trusted by 10,000+ developers

Copy, paste, and ship

# pip install geekflare-api
from geekflare_api.client import GeekflareClient
from geekflare_api.models import Url2PdfDto

with GeekflareClient(api_key="<api-key>") as client:
    result = client.url2_pdf(
        Url2PdfDto(
            url="https://example.com",
            device="desktop",
            format="A4",
            full_page=True,
            block_ads=True
        )
    )
    print(result)
OpenAPI 3.0Type SafeSSL Encrypted

Why Geekflare PDF API

Layout & Formatting

Full control over page orientation and standard formats to fit your document needs.

Styling

Adjust scaling and set custom margins to ensure your data fits perfectly on the page.

Add Timestamp

Automatically overlay timestamps on your documents. Essential for archives and compliance.

Rotating Proxies

We rotate residential proxies for you to generate PDFs from worldwide location without getting blocked.

Headless Browser

We render JavaScript just like a real user so the PDF looks exactly the same as the webpage.

Global Network

Requests are routed through our global edge network to ensure low latency.

PDF Generation API pricing

Free

$0/mo

500 Credits/mo
Generate ~100 pages
1 Request per second

Starter

$9/mo

5K Credits/mo
Generate ~1000 pages
5 Requests per second

Growth

Most Popular

$49/mo

100K Credits/mo
Generate ~20K pages
25 Requests per second

Business

$249/mo

1M Credits/mo
Generate ~200K pages
50 Requests per second

Other Geekflare API services

Screenshot API

Capture high-quality PNG, JPG, or WebP screenshots of any website programmatically.

Web Scraping API

Extract HTML, Markdown, or JSON from dynamic web pages with automatic CAPTCHA solving.

Metadata Extraction API

Extract title, description, images, Schema.org and Open Graph metadata from any URL.

Site Load Time API

Check how much time your site takes to load including DNS, Connect, TLS, and TTFB metrics.

Broken Link Checker API

Find dead internal and external links on a webpage.

Lovedby developers worldwide

Megan Brooks

Megan Brooks

Backend Engineer

We use Geekflare to generate PDF reports from URLs and are happy with rendering. When it fails, it doesn't deduct credit, which is good for me.

May 11, 2026
Geekflare
Kham Nguyen Dinh

Kham Nguyen Dinh

Developer

Great API and even better customer support. They went above and beyond to help me fix a rendering issue. Fast response times and effective solutions. 5 stars!

May 5, 2026
Google
Ram Dasi

Ram Dasi

Architect at PA Consulting

Found Geekflare API to get markdown from URL for my AI agents. It is fast and cheaper and works on almost every website.

May 7, 2026
Geekflare
Michael T

Michael T

Software Engineer

Geekflare screenshot API has been solid so far. I like how consistently it handles dynamic content and modern websites. Team feature is a plus, I can get my team members to get API key and request logs.

May 11, 2026
Geekflare
Dinny Roberson

Dinny Roberson

Developer

Finally found a screenshot API that handles full-page captures correctly. Most others mess up the rendering of dynamic elements. Geekflare API captures the whole thing.

May 7, 2026
Geekflare
Brett Dutton

Brett Dutton

Developer

I am really happy with Geekflare. 1. You are incredibly responsive. - Fast to let me know of a billing problem, and with a good resolution - Fast to respond and fix 500 error. 2. Your platform is fast. 3. Consistent results

May 12, 2026
Email

Frequently Asked Questions

The generated PDF URLs are stored on our CDN for 30 days. If you need longer retention, please contact us.

PDF generation consumes 5 credits per request.

Yes, by default, we use a desktop viewport, but you can instruct the API to emulate a mobile device. This allows you to capture the responsive mobile layout of the website in your PDF.

Start with free plan - no credit card required.

Get your API key in less than 30 seconds. 500 free credits.