Skip to main content
On this page

API Reference

This is a reference for runtime APIs available on Deno Deploy. This API is very similar to the standard runtime API, but some APIs are not available in the same way, given that Deno Deploy is a serverless environment.

Please use this section of the documentation to explore available APIs on Deno Deploy.

Web APIs Jump to heading

Deno APIs Jump to heading

Note: only stable APIs of Deno are made available in Deploy.

  • Deno.env - Interact with environment variables (secrets).
    • get(key: string): string | undefined - get the value of an environment variable.
    • toObject(): { [key: string]: string } - get all environment variables as an object.
  • Deno.connect - Connect to TCP sockets.
  • Deno.connectTls - Connect to TCP sockets using TLS.
  • Deno.startTls - Start TLS handshake from an existing TCP connection.
  • Deno.resolveDns - Make DNS queries
  • File system API

Future support Jump to heading

In the future, these APIs will also be added:

  • Cache API
  • UDP API:
    • Deno.connectDatagram for outbound UDP sockets
  • Customizable fetch options using Deno.createHttpClient

Limitations Jump to heading

Just like the Deno CLI, we do not implement the __proto__ object field as specified in ECMA Script Annex B.

Did you find what you needed?

Privacy policy