function

Type: <string>
It runs JavaScript code with runtime access to a headless browser.

Interactive Code Editor

Test API requests with multiple programming languages. Edit code, execute requests, and view responses in real-time.

The function will receive any query parameter provided, plus:

Compression

Since the function body can be large, you can compress it:
You should to prefix the compressed data with the compressor alias.
The following compression algorithms are supported:
  • brotli (br)
  • gzip (gz)
  • lz-string (lz)
Read how to compress to know more.

NPM packages

Require NPM packages on runtime is supported.
The list of allowed NPM packages are:
If you want to request a npm package, please feel free to .