NewMCP server live

PDF Generator API for any webpage.

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

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
Playground
Request
POST /url2pdf
{
  "url": "stripe.com"
}
loading example…
Want every endpoint and every parameter?
The Geekflare playground has every API and option, plus saved requests. Free with 500 credits a month.
Open the playground
Trusted by teams at
PfizerNBCUniversalTCSHostingerKissflowLookoutPlivoClearSaleSparkianCBSplitOmreon
PfizerNBCUniversalTCSHostingerKissflowLookoutPlivoClearSaleSparkianCBSplitOmreon
Handled for you

Print-ready PDFs from any page.

No headless browser to run and no print stylesheets to fight. Each request renders the page in a Chrome 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

Block cookie banners and bypass CAPTCHAs, so you generate clean PDFs with only the core content.

hideCookie: true

Timestamped records

Add a timestamp watermark to 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
Regional content

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
  • Adds 4 credits only on requests that use a proxy
0
Countries
Country
Level of geo-targeting
Opt-in
Only when you need
POST/url2pdf{ "url": "shop.com", "proxyCountry": "us" }from United States
Parameters

The parameters you'll use most.

See what each PDF API parameter does, what it costs, and when to use it.

ParameterTypeWhat it doesCredits
urlstringThe page to convert. Any public URL.—
formatstringletter, legal, or a0 to a6. Defaults to a4.included
orientationstringportrait or landscape. Defaults to portrait.included
marginobjecttop, bottom, left and right, in millimetres.included
scalenumberRendering scale from 0 to 2. Defaults to 1.included
devicestringdesktop or mobile. Defaults to desktop.included
hideCookiebooleanHide cookie popups. skipCaptcha tries to get past CAPTCHAs.included
addTimestampbooleanAdd a timestamp watermark to the PDF.included
proxyCountrystringGenerate through a proxy in this country, e.g. "de".+4
Use cases

What you can do with the PDF Generator API.

Turn dashboards into PDF reports

Render a report page from your own app as a PDF to email to customers or attach to invoices, 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
Quickstart

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)
Ways in

One API. Every stack.

The same key works from an agent, a workflow builder, an SDK or your own service. Pick the lane you already live in.

MCP server

One remote endpoint exposes Geekflare's tools to any MCP client. Your agent discovers them itself: no glue code, no per-tool wiring.

ClaudeCursorCodexany 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.

RAGagentsmarkdown-llmgrounded 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
Pricing

5 credits a PDF. Here is what that buys.

Credits are shared with every other Geekflare API. Failed requests cost nothing.

5002M

Growth covers up to ~20,000 PDFs a month (100K credits), about $3.45 per 1,000 PDFs. Or $58/mo billed yearly.

PDFs · 60,000 credits
12,000
Plan
Growth · $69/mo
FreeNo card
$0/mo
~100
PDFs / month
  • 500 credits / month
  • 1 team member
  • 7 days log retention
  • 1 request per second
Starter
$19/mo
~2,000
PDFs / month
  • 10K credits / month
  • 3 team members
  • 30 days log retention
  • 5 requests per second
GrowthMost popular
$69/mo
~20,000
PDFs / month
  • 100K credits / month
  • 5 team members
  • 30 days log retention
  • 10 requests per second
Business
$349/mo
~200,000
PDFs / month
  • 1M credits / month
  • 25 team members
  • 90 days log retention
  • 25 requests per second
Start freeCompare plans and credit packsEvery account starts free. Upgrade from the dashboard when you need more, or buy a credit pack from $10.
Testimonials

What developers 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
Questions

Before you integrate 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. Failed requests cost nothing.

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.

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.