Home / Integrations

Proxies in Node.js

Replace LOGIN and PASSWORD with the values from your dashboard.

Example

import { ProxyAgent, fetch } from "undici";

const dispatcher = new ProxyAgent("http://LOGIN:PASSWORD@gate.lyraproxy.com:7000");
const res = await fetch("https://example.com/", { dispatcher });
console.log(res.status);

The built-in fetch in Node.js does not use a proxy on its own, so the request goes through ProxyAgent from the undici package.

Other integrations

Proxies are ready right after payment

Pick a plan and volume in the dashboard. You can change the country, city and session type after purchase as often as you like.

Create an account