To capture a webpage as a PDF with CaptureKit, send a GET request to its capture endpoint with the page URL, set format=pdf, and include your API key in the x-api-key header. Add full_page=true if the PDF should cover content below the visible browser viewport; full-page capture is off by default.
Make a PDF capture with CaptureKit
CaptureKit documents PDF as an output format for its Screenshot API. The documented default is PNG, so specify PDF explicitly. The endpoint accepts GET requests at https://api.capturekit.dev/v1/capture. See the Capture API reference for the current parameter list.
As an Amazon Associate I earn from qualifying purchases.
Before you start
- Obtain a CaptureKit API key and keep it private.
- Choose the webpage URL you want to capture.
- Use an HTTP client such as cURL, Python requests, or Node.js fetch.
cURL example
This requests a full-page PDF and saves the response as page.pdf:
curl -G "https://api.capturekit.dev/v1/capture"
-H "x-api-key: YOUR_API_KEY"
--data-urlencode "url=https://example.com"
--data-urlencode "format=pdf"
--data-urlencode "full_page=true"
-o page.pdf
Replace YOUR_API_KEY and the example URL. If you want only the initial viewport, omit full_page=true; that is the documented default.
#1 Best Overall
- INNOVATIVE CARTRIDGE-FREE PRINTING — No more dealing with lots of tiny ink cartridges; With this wireless document and photo printer each ink bottle set is equivalent to about 90 individual cartridges²
- LESS FREQUENT INK REPLACEMENT — Replacement ink bottles don't have to be changed nearly as often as ink cartridges¹; When you choose this combination printer, scanner and copier you can print up to 4,500 pages black/7,500 color³
- COLOR PRINTING — Up to 2 years of ink in the box4 (and with every replacement ink set) for fewer out-of-ink frustrations
- ZERO CARTRIDGE WASTE — By using an Epson EcoTank printer you can help reduce the amount of cartridge waste ending up in landfills
- HOME PRINTER DESIGNED FOR RELIABILITY — The Epson EcoTank ET-2800 All-in-One Supertank Color Printer creates vivid, detailed prints and documents thanks to Micro Piezo Heat-Free Technology; Fire off 10 ISO pages per minute1 to easily finish large jobs
Python example
Install the dependency with python -m pip install requests, then run:
import requests
response = requests.get(
"https://api.capturekit.dev/v1/capture",
headers={"x-api-key": "YOUR_API_KEY"},
params={
"url": "https://example.com",
"format": "pdf",
"full_page": "true",
},
timeout=90,
)
response.raise_for_status()
with open("page.pdf", "wb") as pdf:
pdf.write(response.content)
For an automated job, avoid hard-coding the key in source code; load it from a secret store or environment variable.
Node.js example
In a modern Node.js runtime with built-in fetch, use:
const url = new URL("https://api.capturekit.dev/v1/capture");
url.searchParams.set("url", "https://example.com");
url.searchParams.set("format", "pdf");
url.searchParams.set("full_page", "true");
const response = await fetch(url, {
headers: { "x-api-key": process.env.CAPTUREKIT_API_KEY },
});
if (!response.ok) {
throw new Error(`CaptureKit returned ${response.status}: ${await response.text()}`);
}
const pdf = Buffer.from(await response.arrayBuffer());
await import("node:fs/promises").then(({ writeFile }) => writeFile("page.pdf", pdf));
Set CAPTUREKIT_API_KEY in the process environment before running the script. Check the response status before saving its body so an API error is not mistaken for a PDF.
Rank #2
- CARTRIDGE-FREE PRINTING — Print lab-quality photos, graphics and creative projects; Get vibrant colors and sharp text with Epson's high-accuracy printhead and Claria ET Premium 6-color inks
- INK BOTTLES — Save on photos1 and creative projects with affordable in-house printing; All-in-one printer allows you to print 4" x 6" photos for about 4 cents each vs. 40 cents with traditional ink cartridges1
- LESS FREQUENT INK REPLACEMENT — Replacement ink bottles don't have to be changed nearly as often as ink cartridges¹; Printer, scanner and copier lets you print up to 6,200 color pages³
- PRINT FOR LONGER — Up to 2 years of ink in the box² (and with every replacement ink set) for fewer out-of-ink frustrations with this wireless printer
- ZERO CARTRIDGE WASTE — Epson EcoTank printer helps reduce the amount of cartridge waste ending up in landfills; Cartridge-free printer uses high-yield ink bottles; Each replacement ink bottle set is equivalent to about 100 individual ink cartridges⁴
Choose the capture area and readiness settings
Viewport or full page
full_page defaults to false, which captures the visible viewport rather than the entire document. Set it to true for below-the-fold content. For pages that reveal images or other content as the browser scrolls, the API also exposes full_page_scroll and full_page_scroll_duration; the documented default duration is 400 milliseconds. Adjust these when scrolling is needed to trigger lazy-loaded content, but check the resulting PDF for omissions.
Viewport dimensions
The documented viewport defaults are 1280 by 1024 pixels. Set viewport_width and viewport_height when the page needs to render at a particular browser viewport—for example, when matching a desktop or narrow layout matters. These are viewport controls; the reviewed API reference does not specify the PDF page dimensions or pagination rules.
Wait for the page to be ready
CaptureKit documents delay, wait_until, and wait_for_selector as timing and readiness controls. Use them when a page needs time to render or when a known element indicates that useful content has appeared. A fixed delay can help with slow client-side rendering, but it also adds waiting time; a selector can be more targeted when the page has a stable element to wait for. Consult the API reference for accepted values and parameter details.
Understand output and usage limits
The API reference lists one credit per call and possible HTTP responses of 400, 401, 402, 429, and 500. These indicate, respectively, a bad request, invalid API key, payment required, rate limit exceeded, and internal error. CaptureKit’s pricing page reviewed in 2026 lists PDF output on the following plans; plan terms and prices can change, so check the current pricing page before budgeting.
Rank #3
- SET IT UP ONCE AND PRINT WITH CONFIDENCE. No complicated maintenance. Just easy, reliable printing you can count on.
- INK FOR YEARS. NOT MONTHS. Up to 2 years of ink included. Get thousands of pages of cartridge-free printing. More pages, less hassle
- KEEPS PRINTING WELL AFTER COMPETITORS HAVE QUIT. No complex maintenance. Sharper text, richer colors.[2] Only with HP Smart Tank
- PREMIUM SUPPORT - Strong technical expertise to solve issues faster
- THE LAST PRINTER YOU'LL EVER NEED. Enjoy years of refillable, cartridge-free printing.
| Plan listed | Credits | Listed price |
|---|---|---|
| Free | 100 | $0 |
| Starter | 1,000 | $7/month |
| Pro | 10,000 | $29/month |
At one credit per call, repeated captures consume credits per request. The cited pricing page does not establish whether unused credits roll over or how overages are handled; verify those terms on the live page if they affect your workflow.
What the PDF documentation does not establish
The reviewed CaptureKit API reference does not specify the generated PDF’s page size, pagination behavior, or whether its content includes a selectable text layer or is rasterized. Do not assume its page breaks match a browser’s Print to PDF output, or that the PDF is accessible or searchable as text, without testing your actual pages and downstream requirements.
CaptureKit’s own article, dated January 30, 2026, describes its service as capturing webpages as PDFs in one request and frames API capture as useful for repeated or automated workflows, while built-in device tools suit one-off conversions. That is the vendor’s guidance, not independent evidence of speed or reliability. See CaptureKit’s PDF article.
Recommended Free Tools
Troubleshoot common failures
- 400 Bad Request: Check that the URL is valid and that parameter names and values are accepted. Confirm that
format=pdfis included. - 401 Unauthorized: Verify that the key is valid and sent in the
x-api-keyheader, without accidental whitespace or truncation. - 402 Payment Required: Check the account’s credit or payment status and current plan terms.
- 429 Too Many Requests: Reduce request frequency and retry according to your application’s backoff policy rather than repeatedly sending immediate retries.
- 500 Internal Error: Treat it as a server-side failure; retry cautiously and preserve the response details for diagnosis.
- PDF misses content below the fold: Explicitly set
full_page=true; for lazy-loaded content, review the full-page scrolling controls and wait settings. - PDF appears incomplete despite full-page capture: Allow the page’s dynamic content to load using the documented timing controls, and test whether scrolling triggers lazy loading. The API reference does not guarantee behavior for every site.
These status meanings and the per-call credit figure are listed in the Capture API reference. For legal evidence, archiving, or compliance workflows, treat an API-generated capture as a snapshot rather than proof of admissibility or guaranteed regulatory compliance. CaptureKit lists those as use cases, not guaranteed outcomes, on its Screenshot API Use Cases page.
Rank #4
- Wireless Bluetooth Printer: Portable thermal printer compatible with iPhone, Android phones, iPad and tablet computers via Bluetooth. For smartphones, please download the "Nada Print" App. You can also connect to laptops and computers for printing using a USB-C cable. (Note: Laptops and computers can only be connected via USB and require the installation of a driver first. Bluetooth connection is not supported.)
- No-ink printing: Only supports US Letter and A4 size thermal paper.(Doesn't support regular paper) The no-ink portable thermal printer uses direct thermal technology, requiring no ink, toner or ribbons, making it environmentally friendly, cost-effective and time-saving. The thermal printer package comes with a roll of US Letter thermal printing paper. Note: When installing the paper, remember to switch the paper size switch on APP
- Clear Print: NDYIN N80 portable thermal printer adopts high-definition printing technology, with a 203DPI resolution to provide you with clear printing results. This mobile printer is compatible with roll paper, folded paper and tattoo transfer paper, supporting printing from your mobile phone PDF, Word, pictures and web pages anytime and anywhere. It is recommended to use our NDYIN thermal paper to achieve good printing quality
- Portable wireless printer for travel: The thermal printer is equipped with a built-in 1500mAh rechargeable battery, which can print 160 sheets of 8.5" x 11" thermal paper after being fully charged. It weighs only 1.5 pounds and is compact in size. This ink-free portable printer can be easily carried in a backpack or briefcase! It is perfect for business travel, cars, small offices, construction sites, schools and homes. You can print documents, contracts, invoices and boarding passes anytime and anywhere
- The N80 thermal printer has a wide range of uses. The package includes the N80 printer, a roll of US Letter paper(7m/roll), a user manual, a guide card, a type-C soft cable and a type C adapter. Note: The charging adapter is not included. Special thermal paper is required for use; ordinary paper cannot be used. This ink-free portable thermal printer is suitable for various scenarios such as home, school, travel, office, and outdoor, meeting the printing needs of different groups of people. This tattoo template printer is also compatible with tattoo transfer paper, making it an ideal choice for tattoo art
Or skip the browser setup
ScreenshotNeo is a website screenshot API and MCP server from Yorker Media. Its one-call API can return a screenshot or PDF, and its parameter names support those used by other screenshot APIs, which can make switching easier. Its documented differentiators include accepting cookie banners and removing more than 60 known consent platforms, newsletter popups, and chat widgets before capture; bot checks, blank pages, timeouts, failed loads, and cache hits are not billed. Responses identify the page verdict and billing status in headers. It also offers an MCP server for AI agents such as Claude, Cursor, and other MCP clients.
Example cURL request, with the target URL set to the page you want:
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://example.com -o shot.webp
See the ScreenshotNeo API documentation for the PDF and other capture options. The free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000 shots. Sign up for ScreenshotNeo free.
Do these 3 things before closing this tab:
1Scan for outdated or missing drivers - takes under a minute2Clear out junk files and repair common Windows errors3Fix the driver behind crashes, sound loss and screen glitchesFrequently Asked Questions
Does CaptureKit return a PDF by default?
No. Its documented output default is PNG, so include format=pdf in the request.
How many CaptureKit credits does a PDF request use?
The API reference lists one credit per call.
Can I control PDF page size or selectable text with CaptureKit?
Those details are not specified in the reviewed API reference; test the output for your intended use.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.




