📸

Capture Page as PDF

Render a URL and export the page as a PDF artifact

POST 15 credits /v1/screenshot/pdf
curl -X POST "https://scrape.toolkitapi.io/v1/screenshot/pdf" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_KEY" \
  -d '{"url":"https://toolkitapi.io"}'
import httpx

resp = httpx.post(
    "https://scrape.toolkitapi.io/v1/screenshot/pdf",
    json={"url":"https://toolkitapi.io"},
)
print(resp.json())
const resp = await fetch("https://scrape.toolkitapi.io/v1/screenshot/pdf", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
  },
  body: JSON.stringify({"url":"https://toolkitapi.io"}),
});
const data = await resp.json();
console.log(data);
# See curl example
Response 200 OK
{
  "object_name": "pdf/example.pdf"
}

Try It Live

Live Demo

Description

Render a URL and export the page as a PDF artifact

How to Use

1

1. POST URL and optional render options. 2. Download the generated PDF artifact.

About This Tool

Generates a PDF snapshot of the rendered page.

Start using Capture Page as PDF now

Get your free API key and make your first request in under a minute.