Skip to main content
This document mainly introduces the integration instructions for Ace Data Cloud’s global proxy, including application methods, usage methods, and other specific content.

Application Method

To use global services, you can first go to the “application page” to apply. The first application comes with a free quota of 1 point. If you are not logged in, you will be automatically redirected to the login page. After logging in, you can continue with the application.

Usage Method

After the application is completed, you can check your application results in the “console,” as shown in the figure: Click on “Credentials” to view the username and password for using the global proxy service, separated by a colon. The username is 8 characters long, and the password is 32 characters long, as shown in the figure: This proxy is a rotating proxy, so you only need to set a fixed proxy address and port when using it. The proxy address and port are global.proxy.acedata.cloud and 30007, respectively. This proxy supports HTTP/HTTPS/SOCKS protocols and can be used to request websites using HTTP and HTTPS protocols.
Note: This proxy can only be used in networks outside of China. It cannot be used in mainland China.

Command Testing

Once you have the proxy’s username and password, the easiest way to test is through the curl command line. If you haven’t installed it yet, please refer to https://curl.se/ for installation. If the current proxy’s username and password are 1f78266a:eff0896726224fa2a99fe82dd1f07562, you can test it with the following curl command:
curl -x 1f78266a:eff0896726224fa2a99fe82dd1f07562@global.proxy.acedata.cloud:30007 https://ipinfo.io
Here, we use curl’s -x parameter to specify the proxy address. The default proxy protocol is HTTP/HTTPS, and the requested URL is https://ipinfo.io, which can return the real IP address and location of the requester.
Note: The above username and password may be invalid; please replace them with your own username and password.
The output result is as follows:
{
  "ip": "66.206.249.77",
  "hostname": "host-66-206-249-77.public.eastlink.ca",
  "city": "Kirkland Lake",
  "region": "Ontario",
  "country": "CA",
  "loc": "48.1446,-80.0377",
  "org": "AS11260 EastLink",
  "postal": "P2N",
  "timezone": "America/Toronto",
  "readme": "https://ipinfo.io/missingauth"
}
As you can see, the returned result’s country is CA, which represents Canada. If you run it again, you can get a different result; each request has a random IP exit.

Code Integration

Below is an example of how to set up the proxy using Python:
import requests

proxy = 'http://{proxy_username}:{proxy_password}@global.proxy.acedata.cloud:30007'

proxies = {
    'http': proxy,
    'https': proxy
}

for _ in range(3):
    resp = requests.get('https://ipinfo.io', proxies=proxies)
    print(resp.text)
Here, we first declare the proxy URL and define it as the proxy variable. The protocol is HTTP, followed by the username and password for the tunnel proxy (i.e., the username and password displayed in the console, separated by a colon), followed by an @ symbol, and then the proxy address and port.
Note: You need to replace {proxy_username}:{proxy_password} in the above code with your proxy username and password. The final result should look like proxy = 'http://1f78266a:eff0896726224fa2a99fe82dd1f07562@global.proxy.acedata.cloud:30007', without the { and } characters.
Next, we declare a proxies variable, configuring two key-value pairs, with the keys being http and https, and both values being the proxy variable, indicating that for both HTTP and HTTPS protocol websites, the requests will use the proxy defined by the proxy variable. We then define a loop to test the proxy three times. The output result is as follows:
{
  "ip": "103.190.205.165",
  "hostname": "assigned-for-client.adnsl.com",
  "city": "Paltan",
  "region": "Dhaka Division",
  "country": "BD",
  "loc": "23.7362,90.4143",
  "org": "AS38203 ADN Telecom Ltd.",
  "postal": "1000",
  "timezone": "Asia/Dhaka",
  "readme": "https://ipinfo.io/missingauth"
}
{
  "ip": "74.111.25.181",
  "hostname": "pool-74-111-25-181.syrcny.fios.verizon.net",
  "city": "Syracuse",
  "region": "New York",
  "country": "US",
  "loc": "43.0481,-76.1474",
  "org": "AS701 Verizon Business",
  "postal": "13201",
  "timezone": "America/New_York",
  "readme": "https://ipinfo.io/missingauth"
}
{
  "ip": "207.113.168.248",
  "city": "LaPorte",
  "region": "Indiana",
  "country": "US",
  "loc": "41.6106,-86.7225",
  "org": "AS13428 Surf Air Wireless, LLC",
  "postal": "46350",
  "timezone": "America/Chicago",
  "readme": "https://ipinfo.io/missingauth"
}
As you can see, the proxy IP obtained from each run is random, and the IP’s location indeed comes from different countries and cities around the world. Of course, the above proxy setup method is actually a relatively simple setup method. In fact, the above code is equivalent to setting an additional header - Proxy Authorization during the request, so the above code can also be rewritten as follows:
import requests
import base64

proxy_host = 'global.proxy.acedata.cloud'
proxy_port = '30007'
proxy_username = '{proxy_username}' # 8-character username
proxy_password = '{proxy_password}' # 32-character password

credentials = base64.b64encode(
    f'{proxy_username}:{proxy_password}'.encode()).decode()

proxies = {
    'http': f'http://{proxy_host}:{proxy_port}',
    'https': f'http://{proxy_host}:{proxy_port}'
}

headers = {
    'Proxy-Authorization': f'Basic {credentials}'
}

for _ in range(3):
    resp = requests.get('https://ipinfo.io',
                        proxies=proxies, headers=headers)
    print(resp.text)

As you can see, here we set the proxy’s username and password through the Proxy-Authorization request header (which needs to be Base64 encoded), and the running effect of this code is the same. For other languages, such as JavaScript’s axios, similar setup methods can also be used:
const axios = require("axios");
const base64 = require("base64");

const proxy_host = "global.proxy.acedata.cloud";
const proxy_port = "30007";
const proxy_username = "{proxy_username}"; // 8-character username
const proxy_password = "{proxy_password}"; // 32-character password

const credentials = base64.encode(`${proxy_username}:${proxy_password}`);

const proxies = {
  http: `http://${proxy_host}:${proxy_port}`,
  https: `http://${proxy_host}:${proxy_port}`,
};

const headers = {
  "Proxy-Authorization": `Basic ${credentials}`,
};

for (let i = 0; i < 3; i++) {
  axios
    .get("https://ipinfo.io", { proxies, headers })
    .then((resp) => console.log(resp.data))
    .catch((err) => console.error(err));
}
The running effect is the same. For the setup methods in other languages, please refer to the above text and rewrite accordingly.

Region Filtering

We can filter by region by adding region to the username. For example, if you want to select a proxy from the United States, the original username is 1f78266a, then you can change the username to 1f78266a-region-us, and the above curl can be rewritten as follows:
curl -x 1f78266a-region-us:eff0896726224fa2a99fe82dd1f07562@global.proxy.acedata.cloud:30007 https://ipinfo.io
Region list:
Country or Region NameCountry/Region Code
United Statesus
Hong Konghk
Andorraad
United Arab Emiratesae
Afghanistanaf
Antigua and Barbudaag
Anguillaai
Albaniaal
Armeniaam
Angolaao
Antarcticaaq
Argentinaar
American Samoaas
Austriaat
Australiaau
Arubaaw
Åland Islandsax
Azerbaijanaz
Bosnia and Herzegovinaba
Barbadosbb
Bangladeshbd
Belgiumbe
Burkina Fasobf
Bulgariabg
Bahrainbh
Burundibi
Beninbj
Saint Barthélemybl
Bermudabm
Bruneibn
Boliviabo
Caribbean Netherlandsbq
Brazilbr
Bahamasbs
Bhutanbt
Bouvet Islandbv
Botswanabw
Belarusby
Belizebz
Canadaca
Cocos (Keeling) Islandscc
Central African Republiccf
Switzerlandch
Chilecl
Camerooncm
Colombiaco
Costa Ricacr
Cubacu
Cape Verdecv
Christmas Islandcx
Cypruscy
Czech Republiccz
Germanyde
Djiboutidj
Denmarkdk
Dominicadm
Dominican Republicdo
Algeriadz
Ecuadorec
Estoniaee
Egypteg
Western Saharaeh
Eritreaer
Spaines
Finlandfi
Fijifj
Federated States of Micronesiafm
Faroe Islandsfo
Francefr
Gabonga
Grenadagd
Georgiage
French Guianagf
Ghanagh
Gibraltargi
Greenlandgl
Guineagn
Guadeloupegp
Equatorial Guineagq
Greecegr
Guatemalagt
Guamgu
Guinea-Bissaugw
Guyanagy
Heard Island and McDonald Islandshm
Hondurashn
Croatiahr
Haitiht
Hungaryhu
Indonesiaid
Irelandie
Israelil
Isle of Manim
Indiain
British Indian Ocean Territoryio
Iraqiq
Iranir
Icelandis
Italyit
Jerseyje
Jamaicajm
Jordanjo
Japanjp
Cambodiakh
Kiribatiki
Comoroskm
Kuwaitkw
Cayman Islandsky
Lebanonlb
Liechtensteinli
Sri Lankalk
Liberialr
Lesothols
Lithuanialt
Luxembourglu
Latvialv
Libyaly
Moroccoma
Monacomc
Moldovamd
Montenegrome
French Saint Martinmf
Madagascarmg
Marshall Islandsmh
North Macedoniamk
Maliml
Myanmarmm
Macaomo
Martiniquemq
Mauritaniamr
Montserratms
Maltamt
Maldivesmv
Malawimw
Mexicomx
Malaysiamy
Namibiana
Nigerne
Norfolk Islandnf
Nigeriang
Nicaraguani
Netherlandsnl
Norwayno
Nepalnp
Naurunr
Omanom
Panamapa
Perupe
French Polynesiapf
Papua New Guineapg
Philippinesph
Pakistanpk
Polandpl
Pitcairn Islandspn
Puerto Ricopr
Palestineps
Palaupw
Paraguaypy
Qatarqa
Réunionre
Romaniaro
Serbiars
Russiaru
Rwandarw
Solomon Islandssb
Seychellessc
Sudansd
Swedense
Singaporesg
Sloveniasi
Slovakiask
Sierra Leonesl
San Marinosm
Senegalsn
Somaliaso
Surinamesr
South Sudanss
São Tomé and Príncipest
El Salvadorsv
Syriasy
Eswatinisz
Turks and Caicos Islandstc
Chadtd
Togotg
Thailandth
Tokelautk
Timor-Lestetl
Tunisiatn
Tongato
Turkeytr
Tuvalutv
Tanzaniatz
Ukraineua
Ugandaug
Uruguayuy
Vatican Cityva
Venezuelave
British Virgin Islandsvg
United States Virgin Islandsvi
Vietnamvn
Wallis and Futunawf
Samoaws
Yemenye
Mayotteyt
South Africaza
Zambiazm
Zimbabwezw
Congo (Brazzaville)cg
Congo (Kinshasa)cd
Mozambiquemz
Guernseygg
Gambiagm
Northern Mariana Islandsmp
Ethiopiaet
New Caledonianc
Vanuatuvu
French Southern Territoriestf
Niuenu
United States Minor Outlying Islandsum
Cook Islandsck
United Kingdomgb
Trinidad and Tobagott
Saint Vincent and the Grenadinesvc
###tw
New Zealandnz
Saudi Arabiasa
Laosla
North Koreakp
South Koreakr
Portugalpt
Kyrgyzstankg
Kazakhstankz
Tajikistantj
Turkmenistantm
Uzbekistanuz
Saint Kitts and Neviskn
Saint Pierre and Miquelonpm
Saint Helenash
Saint Lucialc
Mauritiusmu
Côte d’Ivoireci
Kenyake
Mongoliamn

Fixed IP

Similar to the above content, we can achieve a fixed IP for a period of time by adding session in the username and appending a 5-digit fixed number, with a validity period of about 10 minutes. For example, if you want to achieve a fixed IP for a period of time, and the original username is 1f78266a, you can change the username to 1f78266a-session-12345, where 12345 remains unchanged, then the IP will remain the same for a period of time. The above curl can be rewritten as follows:
curl -x 1f78266a-session-12345:eff0896726224fa2a99fe82dd1f07562@global.proxy.acedata.cloud:30007 https://ipinfo.io

Purchase More

If your plan has been exhausted, you need to purchase more to continue using the proxy service. To purchase more, please go to the “Application Page” and directly click the “Purchase More” button to select, the more you purchase at once, the cheaper the unit price.