Making Requests
Learn how to make requests with Dedicated ISP Proxies using the endpoints and user credentials, with basic code examples.
Make a request to https://ip.oxylabs.io/location using the first Dedicated ISP proxy in your list. Replace USERNAME and PASSWORD with your proxy user credentials.
curl -x disp.oxylabs.io:8001 -U "user-USERNAME:PASSWORD" https://ip.oxylabs.io/location Please note that you must follow the above example of building the username string to make requests successfully. Use the exact grammar and be aware that username and password values are case-sensitive.
Code examples
curl -x disp.oxylabs.io:8001 -U "user-USERNAME:PASSWORD" https://ip.oxylabs.io/location import requests
username = 'USERNAME'
password = 'PASSWORD'
proxy = 'disp.oxylabs.io:8001'
proxies = {
"https": ('https://user-%s:%s@%s' % (username, password, proxy))
}
response=requests.get("https://ip.oxylabs.io/location", proxies=proxies)
print(response.content)const axios = require("axios");
const https = require("https");
const client = axios.create({
httpsAgent: new https.Agent({
rejectUnauthorized: false,
}),
});
const username = 'USERNAME';
const password = 'PASSWORD'
client
.get("https://ip.oxylabs.io/location", {
proxy: {
protocol: "https",
host: "disp.oxylabs.io",
port: 8001,
auth: {
username: `user-${username}`,
password: password,
},
},
})
.then((res) => {
console.log(res.data);
})
.catch((err) => console.error(err));
The first IP in your proxy list will always use the8001 port. To make a request using a different proxy, you will need to find your proxy list and take port values from there.
Last updated
Was this helpful?

