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

/edge/download

POST 

/edge/download

Runs a Puppeteer or Playwright script in Edge 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.

Request

Responses

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