DocumentationAPI DetailsScrape URLGenerate PDF File

Generate PDF File

Using the option will generate a PDF file of the final rendered page after all browser commands have been executed and just before responding with the page HTML or Markdown. The PDF file will be stored temporarily and the URL to download the file will be provided in the response data.

Generating a PDF file only works when using a real browser. If you do not provide the useBrowser flag it will be enabled for you automatically.

Endpoint

Example Request

GET https://api.scrapi.tech/v1/scrape?url=https://deventerprise.com&useBrowser=true&includePdf=true

POST https://api.scrapi.tech/v1/scrape

{
  "url": "https://deventerprise.com",
  "useBrowser": true,
  "includePdf": true
}

Testing

If you want to test this request or a variation of it, head to the Playground or the OpenAPI page.