Skip to main content

Basic proxy usage

Pass the proxy option to route requests through a proxy server:

Authenticated proxies

Include credentials in the proxy URL:

SOCKS proxies

SOCKS proxy behavior depends on native layer support in your environment:

Proxy rotation

Rotate through a list of proxies for each request:

Session with proxy

Set a default proxy for all session requests:

Common proxy URL formats

  1. Transport concept: /concepts/transport
  2. Transport API: createTransport()
  3. Fetch API options: fetch()