NewMCP server live

PDF Generator API for any webpage.

Convert any webpage into a print-ready PDF. Pick the paper size, orientation and margins.

Get a free API key
4.9average across
G2 — 4.8 out of 5Google — 4.9 out of 5Product Hunt — 5.0 out of 5
  • 500 free credits every month
  • No card to start
  • Failed requests cost nothing

Try it on your own URL

Try:
Trusted by teams at
PfizerNBCUniversalTCSHostingerKissflowLookoutPlivoClearSaleSparkianCBSplitOmreon
PfizerNBCUniversalTCSHostingerKissflowLookoutPlivoClearSaleSparkianCBSplitOmreon

Print-ready PDFs from any page.

No headless browser to run and no print stylesheets to fight. Each request renders the page in a real browser and returns a PDF.

Any paper size

Letter, legal, or A0 to A6, in portrait or landscape, so the PDF matches how it will be printed or filed.

format: "a4"

Margins and scale

Set each margin in millimetres and scale the page from 0 to 2 to fit more, or less, on every sheet.

scale: 1.5

Desktop or mobile layout

Render the desktop page by default, or emulate a phone to capture the responsive mobile layout.

device: "mobile"

Clean pages

Hide cookie banners and try to get past CAPTCHAs, so the PDF shows the page rather than the popups.

hideCookie: true

Timestamped records

Add a timestamp watermark to the PDF for audit trails, compliance records and legal evidence.

addTimestamp: true

From any country

Generate the PDF through a proxy in another country to capture localized pricing, languages and terms.

proxyCountry: de

What customers say.

Read all reviews
“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.”
Megan BrooksBackend Engineer
“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!”
Kham Nguyen DinhDeveloper
“Its been couple of years we are using Geekflare API, we like its stable production ready performance and cost-effectiveness of accessing multiple APIs through a single plan.”
Jitendra RauloDirector, Aarav Infotech

Save the page each country sees.

Prices, terms and disclosures often change by country. Add a country code and the PDF is generated through a proxy there, so the document matches what local users see.

  • proxyCountry generates through any of 194 countries
  • Archive localized pricing, terms and disclosures
0
Countries
4 credits
Added only when you pick a country
POST/url2pdf{ "url": "shop.com", "proxyCountry": "us" }from United States

The parameters you'll use most.

What each one does and what it costs.

  • urlstring—

    The page to convert. Any public URL.

  • formatstringIncluded

    letter, legal, or a0 to a6. Defaults to a4.

  • orientationstringIncluded

    portrait or landscape. Defaults to portrait.

  • marginobjectIncluded

    top, bottom, left and right, in millimetres.

  • scalenumberIncluded

    Rendering scale from 0 to 2. Defaults to 1.

  • devicestringIncluded

    desktop or mobile. Defaults to desktop.

  • hideCookiebooleanIncluded

    Hide cookie popups. Defaults to false. skipCaptcha tries to get past CAPTCHAs.

  • addTimestampbooleanIncluded

    Add a timestamp watermark to the PDF.

  • proxyCountrystring+4

    Generate through a proxy in this country, e.g. "de".

What you can do with the PDF Generator API.

Turn dashboards into PDF reports

Point it at a report page your app can share by link, and email the PDF to customers, without a separate PDF template.

  • Reuse the pages you already have
  • Landscape for wide tables and charts
  • Your own margins and paper size
Typical request
POST /url2pdf
{
  "url": "https://app.example.com/reports/q3",
  "format": "a4",
  "orientation": "landscape"
}
What comes back
dataPDF URL
hosted for 30 days
meta.formata4
meta.orientationlandscape

Your first PDF, in a few lines.

quickstart.pyofficial SDK
# 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"
        )
    )
    print(result)

One API. Every stack.

One account works from an agent, a workflow builder, an SDK or your own service.

MCP server

Sign in once and Claude, ChatGPT, Cursor or Codex can use Geekflare's tools directly, with no glue code to write.

ClaudeChatGPTCursorCodexAny MCP client
Set up the MCP server

LLM & agent pipelines

LLM-ready Markdown straight into a retrieval pipeline, with the boilerplate stripped so you spend context on content, not navigation.

RAGAgentsClean MarkdownGrounded search
See the solutions

Workflow builders

Run any endpoint as a step in a visual scenario. Useful when the person who needs the data does not write code.

ZapierMaken8n
Browse integrations

SDKs & REST

First-party typed SDKs for Python and Node. Everything else talks plain REST, from any language.

PythonNode.jsPostman
Open the API reference

How many PDFs each plan covers.

Every PDF costs the same, however many pages it has. Failed requests cost nothing.

2 months free
  • Free
    $0/mo
    No card
    Credits a month
    500
    PDFs5 credits
    100
    Requests per second
    1
  • Starter
    $19/mo
    Credits a month
    20,000
    PDFs5 credits
    4,000
    Requests per second
    5
  • GrowthMost popular
    $69/mo
    Credits a month
    100,000
    PDFs5 credits
    20,000
    Requests per second
    10
  • Business 500K
    $299/mo
    Credits a month
    500,000
    PDFs5 credits
    100,000
    Requests per second
    25
  • Business 1M
    $499/mo
    Credits a month
    1,000,000
    PDFs5 credits
    200,000
    Requests per second
    25
Start freeCompare plans and credit packsEvery account starts free. Upgrade when you need more, or buy a credit pack from $10.

Before you integrate the PDF API.

Everything else is in the endpoint docs, and our support team replies to every email.

Open the endpoint docs

A PDF costs 5 credits, however many pages it has. Generating it through a proxy with proxyCountry adds 4 credits. Failed requests cost nothing.

Not directly. The API opens the URL like a visitor who isn't signed in, so the page has to load without a session. For invoices and reports, a common approach is a signed link that expires.

Letter, legal, and A0 to A6, in portrait or landscape. Set format and orientation; the default is A4 portrait.

Yes. margin takes top, bottom, left and right in millimetres, and scale sets the rendering scale from 0 to 2.

Yes. The desktop layout is the default. Set device: "mobile" to capture the responsive mobile layout instead.

PDFs are hosted on the Geekflare CDN for 30 days and then deleted automatically. Download them if you need to keep them longer.

Some sites block automated traffic with WAFs or IP rate limits. Adding proxyCountry routes the request through a proxy in that country, which often gets past these blocks.

Yes. Generate PDFs in the dashboard playground, use it from Zapier, Make or n8n, or let AI agents call it through our MCP server.

Ask AI about Geekflare

Open the question in the assistant you already use.

100 PDFs a month, free.

The free tier renews every month and needs no card. Turn your first page into a PDF in a single call.