This topic provides lists codes of regions and Internet service providers (ISPs). You can use the codes together with Request logic functions that are used to check the ownership of IP addresses.
Country codes
AD Andorra
AE United Arab Emirates
AF Afghanistan
AG Antigua and Barbuda
AI Anguilla
AL Albania
AM Armenia
AN Netherlands Antilles
AO Angola
AQ Antarctica
AR Argentina
ASC Ascension Island
AS American Samoa
AT Austria
AU Australia
AW Aruba
AX Aland Islands
AZ Azerbaijan
BA Bosnia and Herzegovina
BB Barbados
BD Bangladesh
BE Belgium
BF Burkina Faso
BG Bulgaria
BH Bahrain
BI Burundi
BJ Benin
BL Saint Barthelemy
BM Bermuda
BN Brunei
BO Bolivia
BQ Bonaire
BR Brazil
BS Bahamas
BT Bhutan
BV Bouvet Island
BW Botswana
BY Belarus
BZ Belize
CA Canada
CC Cocos (Keeling) Islands
CD Democratic Republic of Congo
CF Central African Republic
CG Republic of Congo
CH Switzerland
CI Cote d'Ivoire
CK Cook Islands
CL Chile
CM Cameroon
CN Chinese Mainland
CO Colombia
CR Costa Rica
CV Cape Verde
CW Curacao
CX Christmas Island
CY Cyprus
CZ Czech Republic
DE Germany
DJ Djibouti
DK Denmark
DM Dominica
DO Dominican Republic
DQ Jarvis Island
DZ Algeria
EAZ Zanzibar
EC Ecuador
EE Estonia
EG Egypt
EH Independent State of Samoa
ER Eritrea
ES Spain
ET Ethiopia
EU Europe
FI Finland
FJ Fiji
FK Falkland Islands
FM Micronesia
FO Faroe Islands
FR France
FX Metropolitan France
GA Gabon
GBA Alderney
GB UK
GD Grenada
GE Georgia
GF French Guiana
GG Guernsey
GH Ghana
GI Gibraltar
GL Greenland
GM Gambia
GN Guinea
GO Glorioso Islands
GP Guadeloupe
GQ Equatorial Guinea
GR Greece
GS South Georgia and The South Sandwich Islands
GT Guatemala
GU Guam
GW Guinea-Bissau
GY Guyana
HM Heard Island and McDonald Islands
HN Honduras
HR Croatia
HT Haiti
HU Hungary
IANA Unassigned or internal IP addresses
ID Indonesia
IE Ireland
IL Israel
IM Isle of Man
IN India
IO British Indian Ocean Territory
IQ Iraq
IS Iceland
IT Italy
JE Jersey
JM Jamaica
JO Jordan
JP Japan
JQ Johnston Atoll
JU Juan de Nova Island
KE Kenya
KG Kyrgyzstan
KH Cambodia
KI Kiribati
KM Comoros
KN Saint Kitts and Nevis
KR Republic of Korea
KS Kosovo
KW Kuwait
KY Cayman Islands
KZ Kazakhstan
LA Laos
LB Lebanon
LC Saint Lucia
LI Liechtenstein
LK Sri Lanka
LR Liberia
LS Lesotho
LT Lithuania
LU Luxembourg
LV Latvia
LY Libya
MA Morocco
MC Monaco
MD Moldova
ME Montenegro
MF Collectivity of Saint Martin
MG Madagascar
MH Marshall Islands
MK Macedonia
ML Mali
MM Myanmar
MN Mongolia
MP Northern Mariana Islands
MQ Martinique
MR Mauritania
MS Montserrat
MT Malta
MU Mauritius
MV Maldives
MW Malawi
MX Mexico
MY Malaysia
MZ Mozambique
NA Namibia
NC New Caledonia
NE Niger
NF Norfolk Island
NG Nigeria
NI Nicaragua
NL Netherlands
NO Norway
NP Nepal
NR Nauru
NU Niue
NZ New Zealand
OM Oman
PA Panama
PE Peru
PF French Polynesia
PG Papua New Guinea
PH Philippines
PK Pakistan
PL Poland
PM Saint Pierre and Miquelon
PN Pitcairn Island
PR Puerto Rico
PS Palestine
PT Portugal
PW Palau
PY Paraguay
QA Qatar
RE Reunion Island
RO Romania
RS Serbia
RU Russia
RW Rwanda
SA Saudi Arabia
SB Solomon Islands
SC Seychelles
SD Sudan
SE Sweden
SG Singapore
SH Helena
SI Slovenia
SJ Svalbard and Jan Mayen Islands
SK Slovakia
SL Sierra Leone
SM San Marino
SN Senegal
SO Somalia
SR Suriname
SS South Sudan
ST Sao Tome and Principe
SV El Salvador
SX Saint Martin
SZ Swaziland
TC Turks and Caicos Islands
TD Chad
TF French Southern and Antarctic Lands
TG Togo
TH Thailand
TJ Tajikistan
TK Tokelau
TL East Timor
TM Turkmenistan
TN Tunisia
TO Tonga
TR Türkiye
TT Trinidad and Tobago
TV Tuvalu
TZ Tanzania
UA Ukraine
UG Uganda
UM United States Minor Outlying Islands
US US
UY Uruguay
UZ Uzbekistan
VA Vatican
VC Saint Vincent and the Grenadines
VE Venezuela
VG British Virgin Islands
VI United States Virgin Islands
VN Vietnam
VU Republic of Vanuatu
WF Wallis and Futuna Islands
WQ Easter Island
WS Samoan Islands
YE Yemen
YT Mayotte
YU Yugoslavia
ZA South Africa
ZM Zambia
ZR Zaire
ZW Zimbabwe
Administrative division codes
China:
810000 Hong Kong
820000 Macao
710000 Taiwan
370000 Shandong
450000 Guangxi
310000 Shanghai
230000 Heilongjiang
540000 Xizang
440000 Guangdong
120000 Tianjin
150000 Inner Mongolia
340000 Anhui
330000 Zhejiang
530000 Yunnan
630000 Qinghai
320000 Jiangsu
620000 Gansu
420000 Hubei
410000 Henan
360000 Jiangxi
210000 Liaoning
640000 Ningxia
110000 Beijing
460000 Hainan
130000 Hebei
510000 Sichuan
500000 Chongqing
610000 Shaanxi
220000 Jilin
140000 Shanxi
650000 Xinjiang
350000 Fujian
430000 Hunan
520000 Guizhou
Provincial-level subdivisions outside China:
ID_30 West Java
JM_17 Kingston
TR_44 Malatya
TR_39 Kirklareli
US_CA California
TR_52 Ordu
ES_53 Canary Islands
TR_08 Artvin
HU_22 Vas
PL_83 Silesia
ID_35 Bangka Belitung Islands
US_NH New Hampshire
PL_74 Lodz
TR_70 Hakkari
MX_06 Chihuahua
FR_A2 Brittany
US_OH Ohio
FR_B9 Rhone-Alpes
US_SC South Carolina
AT_02 Carinthia
RU_16 Chuvash Republic
TR_19 Corum
US_HI Hawaii
IN_03 Assam
MX_27 Tabasco
US_IA Iowa
FR_99 Lower Normandy
US_TN Tennessee
TR_45 Manisa
US_MS Mississippi
TR_76 Batman
AZ_35 Nakhchivan
MX_31 Yucatan
MY_17 Putrajaya
GL_04 Kujalleq
TR_38 Kayseri
TR_26 Eskisehir
TR_09 Aydin
TR_22 Edirne
US_IL Illinois
UA_17 Odessa
US_WI Wisconsin
IT_03 Calabria
ST_01 Principe
TR_31 Hatay
US_MI Michigan
US_NV Nevada
FR_A1 Burgundy
DE_09 Sarh
US_TX Texas
PL_80 Podkarpackie
US_WY Wyoming
TR_82 Cankiri
DE_01 Baden-Wurttemberg
TR_48 Mugla
AF_28 Zabul
US_KY Kentucky
NZ_G2 Wellington
US_MO Missouri
ES_55 Castile and Leon
IN_32 Daman and Diu
MD_81 Raionul Ocnita
TR_79 Kirikkale
TR_86 Ardahan
FR_B6 Picardy
US_MT Montana
AR_07 Buenos Aires
MX_22 Queretaro
TR_46 Kahramanmaras
US_CT Connecticut
UY_02 Canelones
FR_97 Aquitaine
TR_28 Giresun
NZ_F1 Gisborne District
UY_01 Artigas
US_VT Vermont
ID_26 North Sumatra
TR_05 Amasya
US_NM New Mexico
MX_05 Chiapas
TR_32 Mersin
FR_B3 Midi-Pyrenees
US_VA Virginia
US_DE Delaware
FR_A9 Languedoc-Roussillon
TR_49 Mus
SJ_21 Svalbard
TR_71 Konya
TR_87 Bartin
US_AL Alabama
TR_72 Mardin
TR_78 Karaman
IN_33 Goa
IN_28 West Bengal
FR_A4 Champagne-Ardenne
TR_33 Isparta
RU_17 Dagestan
IT_02 Basilicata
UY_03 Cerro Largo
US_UT Utah
MX_16 Michoacan
TR_34 Istanbul
ID_12 South Kalimantan
US_PA Pennsylvania
AF_07 Faryab
US_OR Oregon
TR_07 Antalya
TR_81 Adana
IR_34 Markazi
TR_65 Van
UA_08 Kherson Oblast
TR_75 Aksaray
TR_12 Bingol
SI_39 Obcina Ivancna Gorica
AF_36 Paktia
PE_23 Region de Tacna
MX_20 Oaxaca
TR_40 Kirsehir
US_WA Washington
US_ND North Dakota
IT_16 Tuscany
US_NJ New Jersey
US_ME Maine
US_NY New York
US_NC North Carolina
US_AR Arkansas
PL_75 Lublin
MX_17 Morelos
TR_04 Agri
FR_B8 Provence-Alps-French Riviera
MX_21 Puebla
ID_14 East Kalimantan
TR_13 Bitlis
TR_41 Kocaeli
MX_04 Campeche
TR_64 Ushak
FR_C1 Alsace
IT_15 Sicily
UA_18 Poltava
US_LA Louisiana
FR_A6 Franche-Comte
AF_02 Badghis
MX_28 Tamaulipas
TR_17 Canakkale
TR_43 Kutahya
ID_07 Central Java
TR_90 Kilis
US_AK Alaska
US_MD Maryland
TR_88 Igdir
FR_B7 Poitou-Charentes
PL_77 Lesser Poland
RU_89 Jewish Autonomous Oblast
AT_08 Vorarlberg
HU_24 Zala
HU_01 Bacs-Kiskun Megye
TR_25 Erzurum
NL_06 North Brabant
TR_92 Yalova
TR_37 Kastamonu
TR_68 Ankara
TR_83 Gaziantep
PL_72 Lower Silesia
DE_02 Bavaria
MX_14 Jalisco
TR_10 Balikesir
TR_14 Bolu
DE_16 Berlin
TR_15 Burdur
UA_13 Kiev
MX_15 State of Mexico
PL_86 Wielkopolskie
RU_49 Murmansk
ID_11 West Kalimantan
ST_02 Sao Tome Island
US_FL Florida
LV_32 Ventspilis
US_ID Idaho
IR_25 Semnan
TR_24 Erzincan
CA_07 Nova Scotia
US_CO Colorado
TR_11 Bilecik
TR_20 Denizli
TR_66 Yozgat
AT_01 Burgenland
ISP codes
100017 China Telecom
100025 China Mobile
100026 China Unicom
100098 Alibaba Cloud
local Private IP addresses