More documents
Configure Datacenter Proxies

Browse our step-by-step guides to learn how to set up your datacenter proxies.

Start by going to dashboard from the account dropdown bar.

Access to your dashboard panel, you can customize the settings for your proxy usage settings in IP Extraction section.

First go to the Users List and create a sub-account and fill in the required details.

You can skip this step if you don't need to create it yourself, then you will automatically get one that we generate for you.(

Go to the Datacenter Proxy page, select the authentication account (sub-account) - fill in the password - select the country/city - select the output language to generate your IP extraction link.

Once you have copied the code snippet of the proxy, you can use it in your program. We'll show you how to do this in python, for example:

a. Code example

        
import requests
# Replace it with your actual proxy address, containing your authentication information
proxyip = "http://username:password@ahk.luckdata.io:proxy_port"
# Target API Address
url = "https://api.ip.cc"
# Configuring the proxies
proxies = {
    'https': proxyip,
    'https': proxyip,
}
# Initiating GET requests
response = requests.get(url=url, proxies=proxies)
# Print the content of the returned response
print(response.text)
        
      

b. Instructions

  • proxyip:you need to replace username、password和 proxy_port with your actual proxy information.
  • proxies:The proxies parameter of the requests library is used to specify the proxies used for HTTP and HTTPS requests. By placing the proxy URL in this dictionary, all requests are sent through the proxy.
  • response.text:The requests.get method returns a response object, and we can use response.textto see what the request is returned. In our example, we are requesting https://api.ip.cc, which will return your IP address information.

With the above code, you can easily use Python to access the API through proxies. simply configure the proxy address into the proxies parameter to ensure that the request goes through the specified proxy server.

Online Image
Making an Order
NextOnline Image
Parameter settings