PDF Generator API for any webpage.
Convert any webpage into a print-ready PDF. Pick the paper size, orientation and margins.
- 500 free credits every month
- No card to start
- Failed requests cost nothing
POST /url2pdf
{
"url": "stripe.com"
}





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.5Desktop 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: trueTimestamped records
Add a timestamp watermark to PDF for audit trails, compliance records and legal evidence.
addTimestamp: trueFrom any country
Generate the PDF through a proxy in another country to capture localized pricing, languages and terms.
proxyCountry: deSave 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.
proxyCountrygenerates 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
The parameters you'll use most.
See what each PDF API parameter does, what it costs, and when to use it.
| Parameter | Type | What it does | Credits |
|---|---|---|---|
| url | string | The page to convert. Any public URL. | — |
| format | string | letter, legal, or a0 to a6. Defaults to a4. | included |
| orientation | string | portrait or landscape. Defaults to portrait. | included |
| margin | object | top, bottom, left and right, in millimetres. | included |
| scale | number | Rendering scale from 0 to 2. Defaults to 1. | included |
| device | string | desktop or mobile. Defaults to desktop. | included |
| hideCookie | boolean | Hide cookie popups. skipCaptcha tries to get past CAPTCHAs. | included |
| addTimestamp | boolean | Add a timestamp watermark to the PDF. | included |
| proxyCountry | string | Generate through a proxy in this country, e.g. "de". | +4 |
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
POST /url2pdf
{
"url": "https://app.example.com/reports/q3",
"format": "a4",
"orientation": "landscape"
}Your first PDF, in a few lines.
# 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.
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.
LLM & agent pipelines
LLM-ready Markdown straight into a retrieval pipeline, with the boilerplate stripped so you spend context on content, not navigation.
Workflow builders
Run any endpoint as a step in a visual scenario. Useful when the person who needs the data does not write code.
SDKs & REST
First-party typed SDKs for Python and Node. Everything else talks plain REST, from any language.
5 credits a PDF. Here is what that buys.
Credits are shared with every other Geekflare API. Failed requests cost nothing.
Growth covers up to ~20,000 PDFs a month (100K credits), about $3.45 per 1,000 PDFs. Or $58/mo billed yearly.
- 500 credits / month
- 1 team member
- 7 days log retention
- 1 request per second
- 10K credits / month
- 3 team members
- 30 days log retention
- 5 requests per second
- 100K credits / month
- 5 team members
- 30 days log retention
- 10 requests per second
- 1M credits / month
- 25 team members
- 90 days log retention
- 25 requests per second
What developers say.
“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.”
“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!”
“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 InfotechBefore you integrate PDF API.
Everything else is in the endpoint docs, and our support team replies to every email.
Open the endpoint docsformat and orientation; the default is A4 portrait.margin takes top, bottom, left and right in millimetres, and scale sets the rendering scale from 0 to 2.device: "mobile" to capture the responsive mobile layout instead.proxyCountry routes the request through a proxy in that country, which often gets past these blocks.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.
