proxys.store
← all guides

curl, Python and Node

Ready-made examples for scripts.

Python, requests

import requests

proxy = "http://LOGIN:PASSWORD@gw.dataimpulse.com:823"
r = requests.get(
    "https://ipinfo.io/json",
    proxies={"http": proxy, "https": proxy},
    timeout=30,
)
print(r.json())

Node.js

Through undici, the client built into Node — no extra dependency.

import { ProxyAgent, fetch } from "undici";

const agent = new ProxyAgent("http://LOGIN:PASSWORD@gw.dataimpulse.com:823");
const res = await fetch("https://ipinfo.io/json", { dispatcher: agent });
console.log(await res.json());

Worth remembering

Set a timeout: home addresses answer slower than datacenter ones, and a request without one can hang for minutes.

Retry with a new request rather than the same connection: on port 823 the retry then comes from a different address.

Read next