HTML to PDF API: convert a list of web page URLs to PDF files in bulk

This page is about printing web pages you give it to PDF, many at a time, and getting a link to each PDF. It is not a tool to merge or cut PDFs afterwards, and it does not get past bot checks or log-in pages.

Teams that archive pages, send reports as PDF or keep dated copies of terms and price pages need a list of addresses turned into files without opening each one by hand.

Short version: a few pages for yourself → your browser's own Print, then Save as PDF. A list of addresses, or HTML text, as PDFs with page numbers and a link per file → HTML to PDF on Apify.

Use the browser's Print to PDF itself when

The Actor saves work when

The input on the Actor's page is already filled in: two pages, A4, with margins and a page-number footer. Two PDFs cost $0.006, plus $0.00005 for the run start, $0.00605 in all.

Good to know:

Price: $0.003 per PDF, plus $0.00005 per run. A PDF is charged only after it is saved; errors, rejected links, bot-check pages and pages skipped by onlyChanged are free. For 100 pages that is $0.30 plus the start fee.

Try the two example pages on Apify

From a script

curl -X POST "https://api.apify.com/v2/acts/northbell~html-to-pdf/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"urls":["https://example.com","https://www.rfc-editor.org/rfc/rfc1149.html"],"format":"A4"}'

Each row has status ok, error or skipped. To merge the PDFs into one file or cut pages out, use the PDF merge, split and compress page. To save a page as an image instead, see the website screenshot API page.

Source: the pages and HTML you give it, printed with headless Chrome. Not affiliated with or endorsed by Google.

More guides