Examples
Replace the username and password with the values from your dashboard.
curl --proxy \
http://username-country-bd:[email protected]:8000 \
https://example.comconst res = await fetch("https://example.com", {
// Pass the proxy through your HTTP client’s agent.
});
const created = await fetch("https://proxyonly.com/api/v1/proxies", {
method: "POST",
headers: {
authorization: "Bearer " + process.env.PROXYONLY_KEY,
"content-type": "application/json",
},
body: JSON.stringify({ type: "residential", country: "BD", session: "rotating" }),
});import os, requests
requests.get(
"https://example.com",
proxies={"https": "http://username-country-in:[email protected]:8000"},
)
requests.post(
"https://proxyonly.com/api/v1/proxies",
headers={"Authorization": f"Bearer {os.environ['PROXYONLY_KEY']}"},
json={"type": "residential", "country": "IN", "session": "sticky"},
)