Configure a proxy in Node.js

Node.js proxy support depends on the HTTP library, so use the library agent or dispatcher documented for the installed version.

Steps

  1. Choose an actively maintained proxy agent or dispatcher compatible with your HTTP client.
  2. Build the proxy URL from dashboard values.
  3. Attach the agent or dispatcher to the request.
  4. Set connection and request timeouts.
  5. Verify the outbound IP with one request before enabling retries or concurrency.

For account-specific values, use the endpoint, port, credentials, and location shown in your MaskProxy dashboard. Do not publish proxy credentials in screenshots, tickets, or public code repositories.