To start using Oxylabs' Datacenter Proxies, you must first go to Oxylabs' dashboard and purchase a plan that fits your needs.
After, you will be guided to create your proxy user. Proxy user credentials is your access to Datacenter Proxies.
Making requests
After you create a proxy user, you will be prompted to a pop up with your first test request to receive a random IP.
Copy it and change the USERNAME and PASSWORD parameters to your proxy credentials:
using System.Net;
// .NET currently does not support HTTPS proxies
var proxy = new WebProxy {
Address = new Uri("dc.oxylabs.io:8000"),
Credentials = new NetworkCredential(
userName: "user-USERNAME",
password: "PASSWORD"
)
};
var httpClientHandler = new HttpClientHandler {Proxy = proxy};
using var client = new HttpClient(handler: httpClientHandler, disposeHandler: true);
var result = await client.GetStringAsync("https://ip.oxylabs.io/location");
Console.WriteLine(result);
To get a specific proxy while making requests, refer to IP Control page.
Use ip.oxylabs.io/location to check the parameters of your IPs — this domain delivers information from four geolocation databases: MaxMind, IP2Location, DB-IP, and IPinfo.io. The parameters include IP address, provider, country, city, ZIP code, ASN, organization name, time zone, and meta (when disclosed by database).