For AI agents: a documentation index is available at /llms.txt
Skip to main content

/chromium/download

POST 

/chromium/download

Runs a Puppeteer or Playwright script and returns any files the browser downloaded during execution. the execution of puppeteer code, which is ran inside context of the browser. Browserless sets up a blank page, a fresh download directory, injects your puppeteer code, and then executes it. You can load external libraries via the "import" syntax, and import ESM-style modules that are written for execution inside of the browser. Once your script is finished, any downloaded files from Chromium are returned back with the appropriate content-type header.

Note: Also available at /download as a convenience alias.

Request

Responses

Responses are determined by the returned value of the downloads themselves, so there isn't a static response type for this API.