Examples
Replace HOST, PORT, USERNAME and PASSWORD with the values of a proxy from your dashboard.
curl --proxy \
http://USERNAME:PASSWORD@HOST:PORT \
https://httpbin.org/ipimport { ProxyAgent, fetch } from "undici";
const dispatcher = new ProxyAgent("http://USERNAME:PASSWORD@HOST:PORT");
const res = await fetch("https://httpbin.org/ip", { dispatcher });
console.log(await res.json());
// Your proxies and their credentials, from the API
const list = await fetch("https://dataimpulse.ai/api/v1/proxies", {
headers: { authorization: "Bearer " + process.env.DATAIMPULSE_KEY },
});
console.log(await list.json());import os, requests
proxy = "http://USERNAME:PASSWORD@HOST:PORT"
print(requests.get("https://httpbin.org/ip", proxies={"http": proxy, "https": proxy}, timeout=20).json())
# Your proxies and their credentials, from the API
res = requests.get(
"https://dataimpulse.ai/api/v1/proxies",
headers={"Authorization": f"Bearer {os.environ['DATAIMPULSE_KEY']}"},
)
print(res.json())