Code Snippets
The Code Snippets page provides practical examples and commands for leveraging IPinfo's data, services, and libraries.
General Code Snippets
Extract only IPv4 addresses using the IPinfo CLI from any text
-o stands for only and -4 is for IPv4.
cat ./access_logs | ipinfo grepip -o -4
Create an IPinfo summary report from IP addresseses
The command will return a link where your summary report will be available.
cat iplist.txt | curl -XPOST --data-binary @- "ipinfo.io/tools/summarize-ips?cli=1"
Create an IPinfo map from IP addresseses
The command will provide a link for your IPinfo map.
cat iplist.txt | curl -XPOST --data-binary @- "https://ipinfo.io/tools/map?cli=1"
Get a list of IPv4 prefixes owned by an ASN using JQ
curl "ipinfo.io/AS7922/json?token=$TOKEN" | jq -r '.prefixes[].netblock'
Lite API Snippets
The IPinfo Lite API service provides information on the country and ASN of IP addresses. The IPinfo Lite API endpoint uses the /lite/ API endpoint.
Using the IPinfo Lite API service, get your/user/visitor IP address information:
https://api.ipinfo.io/lite/me?token=$TOKEN
Response:
{
  "ip": "82.163.118.147",
  "asn": "AS57276",
  "as_name": "Vorboss Limited",
  "as_domain": "optimity.co.uk",
  "country_code": "GB",
  "country": "United Kingdom",
  "continent_code": "EU",
  "continent": "Europe"
}
Using the IPinfo Lite API service, get input IP address (IPv4) information:
https://api.ipinfo.io/lite/3.153.114.80?token=$TOKEN
Response:
{
  "ip": "3.153.114.80",
  "asn": "AS16509",
  "as_name": "Amazon.com, Inc.",
  "as_domain": "amazon.com",
  "country_code": "US",
  "country": "United States",
  "continent_code": "NA",
  "continent": "North America"
}
Using the IPinfo Lite API service, get input IP address (IPv6) information:
https://api.ipinfo.io/lite/2001:1900:2100:280e::f0?token=$TOKEN
Response:
{
  "ip": "2001:1900:2100:280e::f0",
  "asn": "AS3356",
  "as_name": "Level 3 Parent, LLC",
  "as_domain": "lumen.com",
  "country_code": "US",
  "country": "United States",
  "continent_code": "NA",
  "continent": "North America"
}
Using the IPinfo Lite API service, identify bogon IP address:
https://api.ipinfo.io/lite/235.167.17.62?token=$TOKEN
Response:
{
  "ip": "235.167.17.62",
  "bogon": true
}
Using the IPinfo Lite API service to get information an unannounced/non-routed IP address:
https://api.ipinfo.io/lite/64.201.151.1?token=$TOKEN
Response:
{
  "ip": "64.201.151.1",
  "country_code": "US",
  "country": "United States",
  "continent_code": "NA",
  "continent": "North America"
}
Using the IPinfo Lite API service, get your/user/visitor public IP address information:
https://api.ipinfo.io/lite/me/ip?token=$TOKEN
Response:
82.163.118.147
Using the IPinfo Lite API service, get your/user/visitor IP address ASN information:
https://api.ipinfo.io/lite/me/asn?token=$TOKEN
Response:
AS57276
Using the IPinfo Lite API service, get your/user/visitor IP address ASN Organization Name information:
https://api.ipinfo.io/lite/me/as_name?token=$TOKEN
Response:
Vorboss Limited
Using the IPinfo Lite API service, get your/user/visitor IP address ASN Organization Domain Name information:
https://api.ipinfo.io/lite/me/as_domain?token=$TOKEN
Response:
optimity.co.uk    
Using the IPinfo Lite API service, get your/user/visitor IP address 2 Letter Country Code information:
https://api.ipinfo.io/lite/me/country_code?token=$TOKEN
Response:
GB
Using the IPinfo Lite API service, get your/user/visitor IP address country name:
https://api.ipinfo.io/lite/me/country?token=$TOKEN
Response:
United Kingdom
Using the IPinfo Lite API service, get your/user/visitor IP address continent code information:
https://api.ipinfo.io/lite/me/continent_code?token=$TOKEN
Response:
EU
Using the IPinfo Lite API service, get your/user/visitor IP address continent name information:
https://api.ipinfo.io/lite/me/continent?token=$TOKEN
Response:
Europe
Using the IPinfo Lite API service, you can access the API from an IPv6 connection explicitly:
https://v6.api.ipinfo.io/lite/2001:4930:98::1?token=$TOKEN
https://v6.api.ipinfo.io/lite/82.163.118.147?token=$TOKEN
https://v6.api.ipinfo.io/lite/me?token=$TOKEN
Using the IPinfo Lite API service, you can access the API from an IPv4 connection explicitl:
https://v4.api.ipinfo.io/lite/2001:4930:98::1?token=$TOKEN
https://v4.api.ipinfo.io/lite/82.163.118.147?token=$TOKEN
https://v4.api.ipinfo.io/lite/me?token=$TOKEN
Core API Snippets
The IPinfo Core API endpoint uses the /lookup/ API endpoint.
Using the IPinfo Core API service, get your/user/visitor IP address information:
https://api.ipinfo.io/lookup/me?token=$TOKEN
Response:
{
  "ip": "23.233.46.1",
  "hostname": "23-233-46-1.cpe.pppoe.ca",
  "geo": {
    "city": "Mississauga",
    "region": "Ontario",
    "region_code": "ON",
    "country": "Canada",
    "country_code": "CA",
    "continent": "North America",
    "continent_code": "NA",
    "latitude": 43.5789,
    "longitude": -79.6583,
    "timezone": "America/Toronto",
    "postal_code": "L5C"
  },
  "as": {
    "asn": "AS5645",
    "name": "TekSavvy Solutions, Inc.",
    "domain": "teksavvy.com",
    "type": "isp"
  },
  "is_anonymous": false,
  "is_anycast": false,
  "is_hosting": false,
  "is_mobile": false,
  "is_satellite": false
}
Using the IPinfo Core API service, get input IP address (IPv4) information:
https://api.ipinfo.io/lookup/106.54.79.181?token=$TOKEN
Response:
{
  "ip": "106.54.79.181",
  "geo": {
    "city": "Shanghai",
    "region": "Shanghai",
    "region_code": "SH",
    "country": "China",
    "country_code": "CN",
    "continent": "Asia",
    "continent_code": "AS",
    "latitude": 31.22222,
    "longitude": 121.45806,
    "timezone": "Asia/Shanghai",
    "postal_code": "200000"
  },
  "as": {
    "asn": "AS45090",
    "name": "Shenzhen Tencent Computer Systems Company Limited",
    "domain": "tencent.com",
    "type": "hosting"
  },
  "is_anonymous": false,
  "is_anycast": false,
  "is_hosting": true,
  "is_mobile": false,
  "is_satellite": false
}
Using the IPinfo Core API service, get input IP address (IPv6) information:
https://api.ipinfo.io/lookup/2001:1900:2100:280e::f0?token=$TOKEN
Response:
{
  "ip": "2001:1900:2100:280e::f0",
  "geo": {
    "city": "San Francisco",
    "region": "California",
    "region_code": "CA",
    "country": "United States",
    "country_code": "US",
    "continent": "North America",
    "continent_code": "NA",
    "latitude": 37.77493,
    "longitude": -122.41942,
    "timezone": "America/Los_Angeles",
    "postal_code": "94102"
  },
  "as": {
    "asn": "AS3356",
    "name": "Level 3 Parent, LLC",
    "domain": "lumen.com",
    "type": "isp"
  },
  "is_anonymous": false,
  "is_anycast": false,
  "is_hosting": false,
  "is_mobile": false,
  "is_satellite": false
}
Using the IPinfo Core API service, when the ip address does not have a region or region code:
https://api.ipinfo.io/lookup/42.200.144.116?token=$TOKEN
Response:
{
  "ip": "42.200.144.116",
  "hostname": "42-200-144-116.static.imsbiz.com",
  "geo": {
    "city": "Hong Kong",
    "country": "Hong Kong",
    "country_code": "HK",
    "continent": "Asia",
    "continent_code": "AS",
    "latitude": 22.27832,
    "longitude": 114.17469,
    "timezone": "Asia/Hong_Kong",
    "postal_code": "999077"
  },
  "as": {
    "asn": "AS4760",
    "name": "HKT Limited",
    "domain": "netvigator.com",
    "type": "isp"
  },
  "is_anonymous": false,
  "is_anycast": false,
  "is_hosting": false,
  "is_mobile": false,
  "is_satellite": false
}
Using the IPinfo Core API service, when the ip address does not have a postal or zip code:
https://api.ipinfo.io/lookup/217.165.3.147?token=$TOKEN
Response:
{
  "ip": "217.165.3.147",
  "hostname": "bba-217-165-3-147.alshamil.net.ae",
  "geo": {
    "city": "Musaffah",
    "region": "Abu Dhabi",
    "region_code": "AZ",
    "country": "United Arab Emirates",
    "country_code": "AE",
    "continent": "Asia",
    "continent_code": "AS",
    "latitude": 24.35893,
    "longitude": 54.48267,
    "timezone": "Asia/Dubai"
  },
  "as": {
    "asn": "AS5384",
    "name": "Emirates Internet",
    "domain": "emirates.net.ae",
    "type": "isp"
  },
  "is_anonymous": true,
  "is_anycast": false,
  "is_hosting": false,
  "is_mobile": false,
  "is_satellite": false
}
Using the IPinfo Core API service, to get information of an unannounced/non-routed IP address:
https://api.ipinfo.io/lookup/67.59.233.209?token=$TOKEN
Response:
{
  "ip": "67.59.233.209",
  "hostname": "cbr104-te5-1-0.cmts.nrwlct.cv.net",
  "geo": {
    "city": "Norwalk",
    "region": "Connecticut",
    "region_code": "CT",
    "country": "United States",
    "country_code": "US",
    "continent": "North America",
    "continent_code": "NA",
    "latitude": 41.1176,
    "longitude": -73.4079,
    "timezone": "America/New_York",
    "postal_code": "06851"
  },
  "as": {},
  "is_anonymous": false,
  "is_anycast": false,
  "is_hosting": false,
  "is_mobile": false,
  "is_satellite": false
}
Using the IPinfo Core API service to get information of an anonymous IP address (VPN, proxy, relay or TOR):
https://api.ipinfo.io/lookup/122.27.50.39?token=$TOKEN
Response:
{
  "ip": "122.27.50.39",
  "hostname": "p2049039-ipxg00g01niho.hiroshima.ocn.ne.jp",
  "geo": {
    "city": "Hiroshima",
    "region": "Hiroshima",
    "region_code": "34",
    "country": "Japan",
    "country_code": "JP",
    "continent": "Asia",
    "continent_code": "AS",
    "latitude": 34.4,
    "longitude": 132.45,
    "timezone": "Asia/Tokyo",
    "postal_code": "730-0011"
  },
  "as": {
    "asn": "AS4713",
    "name": "NTT Communications Corporation",
    "domain": "ntt.com",
    "type": "isp"
  },
  "is_anonymous": true,
  "is_anycast": false,
  "is_hosting": false,
  "is_mobile": false,
  "is_satellite": false
}
Using the IPinfo Core API service to get information of an anycast IP address:
https://api.ipinfo.io/lookup/146.75.15.224?token=$TOKEN
Response:
{
  "ip": "146.75.15.224",
  "geo": {
    "city": "Christchurch",
    "region": "Canterbury",
    "region_code": "CAN",
    "country": "New Zealand",
    "country_code": "NZ",
    "continent": "Oceania",
    "continent_code": "OC",
    "latitude": -43.53333,
    "longitude": 172.63333,
    "timezone": "Pacific/Auckland",
    "postal_code": "8011"
  },
  "as": {
    "asn": "AS54113",
    "name": "Fastly, Inc.",
    "domain": "fastly.com",
    "type": "hosting"
  },
  "is_anonymous": true,
  "is_anycast": true,
  "is_hosting": true,
  "is_mobile": false,
  "is_satellite": false
}
Using the IPinfo Core API service to get information of a hosting or data center type IP address:
https://api.ipinfo.io/lookup/107.182.226.232?token=$TOKEN
Response:
{
  "ip": "107.182.226.232",
  "geo": {
    "city": "New York City",
    "region": "New York",
    "region_code": "NY",
    "country": "United States",
    "country_code": "US",
    "continent": "North America",
    "continent_code": "NA",
    "latitude": 40.71427,
    "longitude": -74.00597,
    "timezone": "America/New_York",
    "postal_code": "10001"
  },
  "as": {
    "asn": "AS13213",
    "name": "UK-2 Limited",
    "domain": "ingenuitycloudservices.com",
    "type": "hosting"
  },
  "is_anonymous": false,
  "is_anycast": false,
  "is_hosting": true,
  "is_mobile": false,
  "is_satellite": false
}
Using the IPinfo Core API service to get information of a mobile or carrier type IP address:
https://api.ipinfo.io/lookup/206.47.33.149?token=$TOKEN
Response:
{
  "ip": "206.47.33.149",
  "geo": {
    "city": "Toronto",
    "region": "Ontario",
    "region_code": "ON",
    "country": "Canada",
    "country_code": "CA",
    "continent": "North America",
    "continent_code": "NA",
    "latitude": 43.6561,
    "longitude": -79.3406,
    "timezone": "America/Toronto",
    "postal_code": "M4M"
  },
  "as": {
    "asn": "AS577",
    "name": "Bell Canada",
    "domain": "bell.ca",
    "type": "isp"
  },
  "is_anonymous": false,
  "is_anycast": false,
  "is_hosting": false,
  "is_mobile": true,
  "is_satellite": false
}
Using the IPinfo Core API service to get information of a satellite type IP address:
https://api.ipinfo.io/lookup/65.181.4.152?token=$TOKEN
Response:
{
  "ip": "65.181.4.152",
  "hostname": "customer.tkyojpn1.pop.starlinkisp.net",
  "geo": {
    "city": "Tokyo",
    "region": "Tokyo",
    "region_code": "13",
    "country": "Japan",
    "country_code": "JP",
    "continent": "Asia",
    "continent_code": "AS",
    "latitude": 35.6895,
    "longitude": 139.69171,
    "timezone": "Asia/Tokyo",
    "postal_code": "101-8656"
  },
  "as": {
    "asn": "AS14593",
    "name": "Space Exploration Technologies Corporation",
    "domain": "spacex.com",
    "type": "isp"
  },
  "is_anonymous": false,
  "is_anycast": false,
  "is_hosting": false,
  "is_mobile": false,
  "is_satellite": true
}
Using the IPinfo Core API service, get your/user/visitor IP address location information:
https://api.ipinfo.io/lookup/me/geo?token=$TOKEN
Response:
{
  "city": "Mississauga",
  "region": "Ontario",
  "region_code": "ON",
  "country": "Canada",
  "country_code": "CA",
  "continent": "North America",
  "continent_code": "NA",
  "latitude": 43.5789,
  "longitude": -79.6583,
  "timezone": "America/Toronto",
  "postal_code": "L5C"
}
Using the IPinfo Core API service, get your/user/visitor IP address city information:
https://api.ipinfo.io/lookup/me/geo/city?token=$TOKEN
Response:
Mississauga
Using the IPinfo Core API service, get your/user/visitor IP address region or state information:
https://api.ipinfo.io/lookup/me/geo/region?token=$TOKEN
Response:
Ontario
Using the IPinfo Core API service, get your/user/visitor IP address region code information:
https://api.ipinfo.io/lookup/me/geo/region_code?token=$TOKEN
Response:
ON
Using the IPinfo Core API service, get your/user/visitor IP address country name:
https://api.ipinfo.io/lookup/me/geo/country?token=$TOKEN
Response:
Canada
Using the IPinfo Core API service, get your/user/visitor IP address two letter country code:
https://api.ipinfo.io/lookup/me/geo/country_code?token=$TOKEN
Response:
CA
Using the IPinfo Core API service, get your/user/visitor IP address continent name:
https://api.ipinfo.io/lookup/me/geo/continent?token=$TOKEN
Response:
North America
Using the IPinfo Core API service, get your/user/visitor IP address two leter continent code:
https://api.ipinfo.io/lookup/me/geo/continent_code?token=$TOKEN
Response:
NA
Using the IPinfo Core API service, get your/user/visitor IP address latitude value of the geographic coordinate:
https://api.ipinfo.io/lookup/me/geo/latitude?token=$TOKEN
Response:
43.5789
Using the IPinfo Core API service, get your/user/visitor IP address longitude value of the geographic coordinate:
https://api.ipinfo.io/lookup/me/geo/longitude?token=$TOKEN
Response:
-79.6583
Using the IPinfo Core API service, get your/user/visitor IP address timezone information:
https://api.ipinfo.io/lookup/me/geo/timezone?token=$TOKEN
Response:
America/Toronto
Using the IPinfo Core API service, get your/user/visitor IP address postal or zip code:
https://api.ipinfo.io/lookup/me/geo/postal_code?token=$TOKEN
Response:
L5C
Using the IPinfo Core API service, get your/user/visitor IP address ASN information:
https://api.ipinfo.io/lookup/me/as?token=$TOKEN
Response:
{
  "asn": "AS5645",
  "name": "TekSavvy Solutions, Inc.",
  "domain": "teksavvy.com",
  "type": "isp"
}
Using the IPinfo Core API service, get your/user/visitor IP address ASN value:
https://api.ipinfo.io/lookup/me/as/asn?token=$TOKEN
Response:
AS5645
Using the IPinfo Core API service, get your/user/visitor IP address ASN organization name:
https://api.ipinfo.io/lookup/me/as/name?token=$TOKEN
Response:
TekSavvy Solutions, Inc.
Using the IPinfo Core API service, get your/user/visitor IP address AS organization official domain:
https://api.ipinfo.io/lookup/me/as/domain?token=$TOKEN
Response:
teksavvy.com
Using the IPinfo Core API service, get your/user/visitor IP address AS organization type (government, education, business, isp and hosting):
https://api.ipinfo.io/lookup/me/as/type?token=$TOKEN
Response:
isp
Using the IPinfo Core API service, get your/user/visitor IP address anonymous status:
https://api.ipinfo.io/lookup/me/is_anonymous?token=$TOKEN
Response:
false
Using the IPinfo Core API service, get your/user/visitor IP address anycast status:
https://api.ipinfo.io/lookup/me/is_anycast?token=$TOKEN
Response:
false
Using the IPinfo Core API service, get your/user/visitor IP address hosting IP status:
https://api.ipinfo.io/lookup/me/is_hosting?token=$TOKEN
Response:
false
Using the IPinfo Core API service, get your/user/visitor IP address mobile / carrier IP status:
https://api.ipinfo.io/lookup/me/is_mobile?token=$TOKEN
Response:
false
Using the IPinfo Core API service, get your/user/visitor IP address satellite IP status:
https://api.ipinfo.io/lookup/me/is_satellite?token=$TOKEN
Response:
false
Using the IPinfo Core API service, you can access the API from an IPv6 connection explicitly:
https://v6.api.ipinfo.io/lookup/2001:4930:98::1?token=$TOKEN
https://v6.api.ipinfo.io/lookup/82.163.118.147?token=$TOKEN
https://v6.api.ipinfo.io/lookup/me?token=$TOKEN
Using the IPinfo Core API service, you can access the API from an IPv4 connection explicitly:
https://v4.api.ipinfo.io/lookup/2001:4930:98::1?token=$TOKEN
https://v4.api.ipinfo.io/lookup/82.163.118.147?token=$TOKEN
https://v4.api.ipinfo.io/lookup/me?token=$TOKEN
Plus API Snippets
The IPinfo Plus API endpoint uses the /lookup/ API endpoint.
Using the IPinfo Plus API service, get your/user/visitor IP address information:
https://api.ipinfo.io/lookup/me?token=$TOKEN
Response:
{
  "ip": "178.197.6.67",
  "geo": {
    "city": "Zürich",
    "region": "Zurich",
    "region_code": "ZH",
    "country": "Switzerland",
    "country_code": "CH",
    "continent": "Europe",
    "continent_code": "EU",
    "latitude": 47.3789,
    "longitude": 8.5204,
    "timezone": "Europe/Zurich",
    "postal_code": "8004",
    "geoname_id": "2657896",
    "radius": 200,
    "last_changed": "2024-03-24"
  },
  "as": {
    "asn": "AS3303",
    "name": "Swisscom (Switzerland) Ltd",
    "domain": "swisscom.ch",
    "type": "isp",
    "last_changed": "2025-09-28"
  },
  "mobile": {},
  "anonymous": {
    "is_proxy": false,
    "is_relay": false,
    "is_tor": false,
    "is_vpn": false
  },
  "is_anonymous": false,
  "is_anycast": false,
  "is_hosting": false,
  "is_mobile": false,
  "is_satellite": false
}
Using the IPinfo Plus API service, get input IP address (IPv4) information:
https://api.ipinfo.io/lookup/88.246.188.185?token=$TOKEN
Response:
{
  "ip": "88.246.188.185",
  "hostname": "88.246.188.185.static.ttnet.com.tr",
  "geo": {
    "city": "Ankara",
    "region": "Ankara",
    "region_code": "06",
    "country": "Turkey",
    "country_code": "TR",
    "continent": "Asia",
    "continent_code": "AS",
    "latitude": 39.91987,
    "longitude": 32.85427,
    "timezone": "Europe/Istanbul",
    "postal_code": "06420",
    "geoname_id": "323786",
    "radius": 50,
    "last_changed": "2025-08-03"
  },
  "as": {
    "asn": "AS47331",
    "name": "TTNet A.S.",
    "domain": "ttnet.com.tr",
    "type": "isp",
    "last_changed": "2025-09-28"
  },
  "mobile": {},
  "anonymous": {
    "is_proxy": false,
    "is_relay": false,
    "is_tor": false,
    "is_vpn": false
  },
  "is_anonymous": false,
  "is_anycast": false,
  "is_hosting": false,
  "is_mobile": false,
  "is_satellite": false
}
Using the IPinfo Plus API service, get input IP address (IPv6) information:
https://api.ipinfo.io/lookup/2c0f:4280:6040:1dbe:89e4:b86e:9e0a:cbb0?token=$TOKEN
Response:
{
  "ip": "2c0f:4280:6040:1dbe:89e4:b86e:9e0a:cbb0",
  "geo": {
    "city": "Tunis",
    "region": "Tunis Governorate",
    "region_code": "11",
    "country": "Tunisia",
    "country_code": "TN",
    "continent": "Africa",
    "continent_code": "AF",
    "latitude": 36.81897,
    "longitude": 10.16579,
    "timezone": "Africa/Tunis",
    "geoname_id": "2464470",
    "radius": 20,
    "last_changed": "2025-09-21"
  },
  "as": {
    "asn": "AS37705",
    "name": "TOPNET",
    "domain": "topnet.tn",
    "type": "isp",
    "last_changed": "2025-09-28"
  },
  "mobile": {},
  "anonymous": {
    "is_proxy": false,
    "is_relay": false,
    "is_tor": false,
    "is_vpn": false
  },
  "is_anonymous": false,
  "is_anycast": false,
  "is_hosting": false,
  "is_mobile": false,
  "is_satellite": false
}
Using the IPinfo Plus API service for IP address without a region or region code:
https://api.ipinfo.io/lookup/42.200.144.116?token=$TOKEN
Response:
{
  "ip": "42.200.144.116",
  "hostname": "42-200-144-116.static.imsbiz.com",
  "geo": {
    "city": "Hong Kong",
    "country": "Hong Kong",
    "country_code": "HK",
    "continent": "Asia",
    "continent_code": "AS",
    "latitude": 22.27832,
    "longitude": 114.17469,
    "timezone": "Asia/Hong_Kong",
    "postal_code": "999077",
    "geoname_id": "1819729",
    "radius": 20,
    "last_changed": "2025-09-21"
  },
  "as": {
    "asn": "AS4760",
    "name": "HKT Limited",
    "domain": "netvigator.com",
    "type": "isp"
  },
  "mobile": {},
  "anonymous": {
    "is_proxy": false,
    "is_relay": false,
    "is_tor": false,
    "is_vpn": false
  },
  "is_anonymous": false,
  "is_anycast": false,
  "is_hosting": false,
  "is_mobile": false,
  "is_satellite": false
}
Using the IPinfo Plus API service, when the IP address does not have a postal or zip code:
https://api.ipinfo.io/lookup/217.165.3.147?token=$TOKEN
Response:
{
  "ip": "217.165.3.147",
  "hostname": "bba-217-165-3-147.alshamil.net.ae",
  "geo": {
    "city": "Musaffah",
    "region": "Abu Dhabi",
    "region_code": "AZ",
    "country": "United Arab Emirates",
    "country_code": "AE",
    "continent": "Asia",
    "continent_code": "AS",
    "latitude": 24.35893,
    "longitude": 54.48267,
    "timezone": "Asia/Dubai",
    "geoname_id": "12042053",
    "radius": 10
  },
  "as": {
    "asn": "AS5384",
    "name": "Emirates Internet",
    "domain": "emirates.net.ae",
    "type": "isp",
    "last_changed": "2025-09-28"
  },
  "mobile": {},
  "anonymous": {
    "is_proxy": false,
    "is_relay": false,
    "is_tor": false,
    "is_vpn": true
  },
  "is_anonymous": true,
  "is_anycast": false,
  "is_hosting": false,
  "is_mobile": false,
  "is_satellite": false
}
Using the IPinfo Plus API service to get information of an unannounced/non-routed IP address:
https://api.ipinfo.io/lookup/67.59.233.209?token=$TOKEN
Response:
{
  "ip": "67.59.233.209",
  "hostname": "cbr104-te5-1-0.cmts.nrwlct.cv.net",
  "geo": {
    "city": "Norwalk",
    "region": "Connecticut",
    "region_code": "CT",
    "country": "United States",
    "country_code": "US",
    "continent": "North America",
    "continent_code": "NA",
    "latitude": 41.1176,
    "longitude": -73.4079,
    "timezone": "America/New_York",
    "postal_code": "06851",
    "dma_code": "501",
    "geoname_id": "4839822",
    "radius": 50
  },
  "as": {},
  "mobile": {},
  "anonymous": {
    "is_proxy": false,
    "is_relay": false,
    "is_tor": false,
    "is_vpn": false
  },
  "is_anonymous": false,
  "is_anycast": false,
  "is_hosting": false,
  "is_mobile": false,
  "is_satellite": false
}
Using the IPinfo Plus API service to get information of an anonymous IP address (VPN, proxy, relay or TOR):
https://api.ipinfo.io/lookup/162.120.206.244?token=$TOKEN
Response:
{
  "ip": "162.120.206.244",
  "geo": {
    "city": "Saint-Avold",
    "region": "Grand Est",
    "region_code": "GES",
    "country": "France",
    "country_code": "FR",
    "continent": "Europe",
    "continent_code": "EU",
    "latitude": 49.10465,
    "longitude": 6.70402,
    "timezone": "Europe/Paris",
    "postal_code": "57500",
    "dma_code": "57",
    "geoname_id": "2981492",
    "radius": 10
  },
  "as": {
    "asn": "AS15169",
    "name": "Google LLC",
    "domain": "google.com",
    "type": "hosting",
    "last_changed": "2025-09-28"
  },
  "mobile": {},
  "anonymous": {
    "name": "Google One VPN",
    "is_proxy": false,
    "is_relay": true,
    "is_tor": false,
    "is_vpn": false
  },
  "is_anonymous": true,
  "is_anycast": false,
  "is_hosting": true,
  "is_mobile": false,
  "is_satellite": false
}
Using the IPinfo Plus API service, information of an anycast IP address:
https://api.ipinfo.io/lookup/146.75.15.224?token=$TOKEN
Response:
{
  "ip": "146.75.15.224",
  "geo": {
    "city": "Christchurch",
    "region": "Canterbury",
    "region_code": "CAN",
    "country": "New Zealand",
    "country_code": "NZ",
    "continent": "Oceania",
    "continent_code": "OC",
    "latitude": -43.53333,
    "longitude": 172.63333,
    "timezone": "Pacific/Auckland",
    "postal_code": "8011",
    "geoname_id": "2192362",
    "radius": 10,
    "last_changed": "2024-04-14"
  },
  "as": {
    "asn": "AS54113",
    "name": "Fastly, Inc.",
    "domain": "fastly.com",
    "type": "hosting",
    "last_changed": "2025-09-28"
  },
  "mobile": {},
  "anonymous": {
    "name": "Fastly",
    "is_proxy": false,
    "is_relay": true,
    "is_tor": false,
    "is_vpn": false
  },
  "is_anonymous": true,
  "is_anycast": true,
  "is_hosting": true,
  "is_mobile": false,
  "is_satellite": false
}
Using the IPinfo Plus API service, information of a hosting or data center type IP address:
https://api.ipinfo.io/lookup/107.182.226.232?token=$TOKEN
Response:
{
  "ip": "107.182.226.232",
  "geo": {
    "city": "New York City",
    "region": "New York",
    "region_code": "NY",
    "country": "United States",
    "country_code": "US",
    "continent": "North America",
    "continent_code": "NA",
    "latitude": 40.71427,
    "longitude": -74.00597,
    "timezone": "America/New_York",
    "postal_code": "10001",
    "dma_code": "501",
    "geoname_id": "5128581",
    "radius": 10,
    "last_changed": "2024-05-19"
  },
  "as": {
    "asn": "AS13213",
    "name": "UK-2 Limited",
    "domain": "ingenuitycloudservices.com",
    "type": "hosting",
    "last_changed": "2025-09-28"
  },
  "mobile": {},
  "anonymous": {
    "is_proxy": false,
    "is_relay": false,
    "is_tor": false,
    "is_vpn": false
  },
  "is_anonymous": false,
  "is_anycast": false,
  "is_hosting": true,
  "is_mobile": false,
  "is_satellite": false
}
Using the IPinfo Plus API service, information of mobile or carrier type IP address:
https://api.ipinfo.io/lookup/206.47.33.149?token=$TOKEN
Response:
{
  "ip": "206.47.33.149",
  "geo": {
    "city": "Toronto",
    "region": "Ontario",
    "region_code": "ON",
    "country": "Canada",
    "country_code": "CA",
    "continent": "North America",
    "continent_code": "NA",
    "latitude": 43.6561,
    "longitude": -79.3406,
    "timezone": "America/Toronto",
    "postal_code": "M4M",
    "geoname_id": "6167865",
    "radius": 50,
    "last_changed": "2025-09-21"
  },
  "as": {
    "asn": "AS577",
    "name": "Bell Canada",
    "domain": "bell.ca",
    "type": "isp"
  },
  "mobile": {
    "name": "Bell Mobility",
    "mcc": "302",
    "mnc": "610"
  },
  "anonymous": {
    "is_proxy": false,
    "is_relay": false,
    "is_tor": false,
    "is_vpn": false
  },
  "is_anonymous": false,
  "is_anycast": false,
  "is_hosting": false,
  "is_mobile": true,
  "is_satellite": false
}
Using the IPinfo Plus API service, information of satellite type IP address:
https://api.ipinfo.io/lookup/65.181.4.152?token=$TOKEN
Response:
{
  "ip": "65.181.4.152",
  "hostname": "customer.tkyojpn1.pop.starlinkisp.net",
  "geo": {
    "city": "Tokyo",
    "region": "Tokyo",
    "region_code": "13",
    "country": "Japan",
    "country_code": "JP",
    "continent": "Asia",
    "continent_code": "AS",
    "latitude": 35.6895,
    "longitude": 139.69171,
    "timezone": "Asia/Tokyo",
    "postal_code": "101-8656",
    "geoname_id": "1850147",
    "radius": 10,
    "last_changed": "2022-10-09"
  },
  "as": {
    "asn": "AS14593",
    "name": "Space Exploration Technologies Corporation",
    "domain": "spacex.com",
    "type": "isp"
  },
  "mobile": {},
  "anonymous": {
    "is_proxy": false,
    "is_relay": false,
    "is_tor": false,
    "is_vpn": false
  },
  "is_anonymous": false,
  "is_anycast": false,
  "is_hosting": false,
  "is_mobile": false,
  "is_satellite": true
}
Using the IPinfo Plus API service, get your/user/visitor IP address location information:
https://api.ipinfo.io/lookup/me/geo?token=$TOKEN
Response:
{
  "city": "Rome",
  "region": "Lazio",
  "region_code": "62",
  "country": "Italy",
  "country_code": "IT",
  "continent": "Europe",
  "continent_code": "EU",
  "latitude": 41.89193,
  "longitude": 12.51133,
  "timezone": "Europe/Rome",
  "postal_code": "00118",
  "geoname_id": "3169070",
  "radius": 1000,
  "last_changed": "2025-07-13"
}
Using the IPinfo Plus API service, get your/user/visitor IP address city information:
https://api.ipinfo.io/lookup/me/geo/city?token=$TOKEN
Response:
Rome
Using the IPinfo Plus API service, get your/user/visitor IP address region or state information:
https://api.ipinfo.io/lookup/me/geo/region?token=$TOKEN
Response:
Lazio
Using the IPinfo Plus API service, get your/user/visitor IP address region code information:
https://api.ipinfo.io/lookup/me/geo/region_code?token=$TOKEN
Response:
62
Using the IPinfo Plus API service, get your/user/visitor IP address country name:
https://api.ipinfo.io/lookup/me/geo/country?token=$TOKEN
Response:
Italy
Using the IPinfo Plus API service, get your/user/visitor IP address two letter country code:
https://api.ipinfo.io/lookup/me/geo/country_code?token=$TOKEN
Response:
IT
Using the IPinfo Plus API service, get your/user/visitor IP address continent name:
https://api.ipinfo.io/lookup/me/geo/continent?token=$TOKEN
Response:
Europe
Using the IPinfo Plus API service, get your/user/visitor IP address two leter continent code:
https://api.ipinfo.io/lookup/me/geo/continent_code?token=$TOKEN
Response:
EU
Using the IPinfo Plus API service, get your/user/visitor IP address latitude value of the geographic coordinate:
https://api.ipinfo.io/lookup/me/geo/latitude?token=$TOKEN
Response:
41.89193
Using the IPinfo Plus API service, get your/user/visitor IP address longitude value of the geographic coordinate:
https://api.ipinfo.io/lookup/me/geo/longitude?token=$TOKEN
Response:
12.51133
Using the IPinfo Plus API service, get your/user/visitor IP address timezone information:
https://api.ipinfo.io/lookup/me/geo/timezone?token=$TOKEN
Response:
Europe/Rome
Using the IPinfo Plus API service, get your/user/visitor IP address postal or zip code:
https://api.ipinfo.io/lookup/me/geo/postal_code?token=$TOKEN
Response:
00118
Using the IPinfo Plus API service, get your/user/visitor IP address DMA code:
https://api.ipinfo.io/lookup/me/geo/dma_code?token=$TOKEN
Response:
534
Using the IPinfo Plus API service, get your/user/visitor IP address geoname.org ID:
https://api.ipinfo.io/lookup/me/geo/geoname_id?token=$TOKEN
Response:
3169070
Using the IPinfo Plus API service, get the accuracy radius in Kilometer for the geographic coordinates the user's or visitor's IP address:
https://api.ipinfo.io/lookup/me/geo/radius?token=$TOKEN
Response:
1000
Using the IPinfo Plus API service, get the last date when the visitor's IP address geolocation information changed:
https://api.ipinfo.io/lookup/me/geo/last_changed?token=$TOKEN
Response:
2025-07-13
Using the IPinfo Plus API service, get your/user/visitor IP address ASN information:
https://api.ipinfo.io/lookup/me/as?token=$TOKEN
Response:
{
  "asn": "AS3269",
  "name": "Telecom Italia S.p.A.",
  "domain": "telecomitalia.com",
  "type": "isp",
  "last_changed": "2025-09-28"
}
Using the IPinfo Plus API service, get your/user/visitor IP address ASN value:
https://api.ipinfo.io/lookup/me/as/asn?token=$TOKEN
Response:
AS3269
Using the IPinfo Plus API service, get your/user/visitor IP address ASN organization name:
https://api.ipinfo.io/lookup/me/as/name?token=$TOKEN
Response:
Telecom Italia S.p.A.
Using the IPinfo Plus API service, get your/user/visitor IP address AS organization official domain:
https://api.ipinfo.io/lookup/me/as/domain?token=$TOKEN
Response:
telecomitalia.com
Using the IPinfo Plus API service, get your/user/visitor IP address AS organization type (government, education, business, isp and hosting):
https://api.ipinfo.io/lookup/me/as/type?token=$TOKEN
Response:
isp
Using the IPinfo Plus API service, get your/user/visitor IP address ASN information last change date:
https://api.ipinfo.io/lookup/me/as/last_changed/type?token=$TOKEN
Response:
2025-09-28
Using the IPinfo Plus API service, get your/user/visitor IP address anonymous status:
https://api.ipinfo.io/lookup/me/is_anonymous?token=$TOKEN
Response:
false
Using the IPinfo Plus API service, get your/user/visitor IP address anycast status:
https://api.ipinfo.io/lookup/me/is_anycast?token=$TOKEN
Response:
false
Using the IPinfo Plus API service, get your/user/visitor IP address hosting IP status:
https://api.ipinfo.io/lookup/me/is_hosting?token=$TOKEN
Response:
false
Using the IPinfo Plus API service, get your/user/visitor IP address mobile / carrier IP status:
https://api.ipinfo.io/lookup/me/is_mobile?token=$TOKEN
Response:
false
Using the IPinfo Plus API service, get your/user/visitor IP address satellite IP status:
https://api.ipinfo.io/lookup/me/is_satellite?token=$TOKEN
Response:
false
Using the IPinfo Plus API service, get your/user/visitor IP address mobile/carrier information:
https://api.ipinfo.io/lookup/me/mobile?token=$TOKEN
Response:
{
  "name": "TIM",
  "mcc": "222",
  "mnc": "01"
}
Using the IPinfo Plus API service, get your/user/visitor IP address mobile/carrier name:
https://api.ipinfo.io/lookup/me/mobile/name?token=$TOKEN
Response:
TIM
Using the IPinfo Plus API service, get your/user/visitor IP address Mobile Carrier Code (MCC):
https://api.ipinfo.io/lookup/me/mobile/mcc?token=$TOKEN
Response:
222
Using the IPinfo Plus API service, get your/user/visitor IP address Mobile Network Code (MNC):
https://api.ipinfo.io/lookup/me/mobile/mnc?token=$TOKEN
Response:
01
Using the IPinfo Plus API service, get your/user/visitor IP address anonymity/privacy information:
https://api.ipinfo.io/lookup/me/anonymous?token=$TOKEN
Response:
{
  "name": "ExpressVPN",
  "is_proxy": false,
  "is_relay": false,
  "is_tor": false,
  "is_vpn": true
}
Using the IPinfo Plus API service, get your/user/visitor IP address proxy status:
https://api.ipinfo.io/lookup/me/anonymous/is_proxy?token=$TOKEN
Response:
false
Using the IPinfo Plus API service, get your/user/visitor IP address relay status:
https://api.ipinfo.io/lookup/me/anonymous/is_relay?token=$TOKEN
Response:
false
Using the IPinfo Plus API service, get your/user/visitor IP address TOR status:
https://api.ipinfo.io/lookup/me/anonymous/is_tor?token=$TOKEN
Response:
false
Using the IPinfo Plus API service, get your/user/visitor IP address VPN status:
https://api.ipinfo.io/lookup/me/anonymous/is_vpn?token=$TOKEN
Response:
true
Using the IPinfo Plus API service, get your/user/visitor IP address privacy service name:
https://api.ipinfo.io/lookup/me/anonymous/name?token=$TOKEN
Response:
ExpressVPN
Using the IPinfo Plus API service, you can access the API from an IPv6 connection explicitly:
https://v6.api.ipinfo.io/lookup/2001:4930:98::1?token=$TOKEN
https://v6.api.ipinfo.io/lookup/82.163.118.147?token=$TOKEN
https://v6.api.ipinfo.io/lookup/me?token=$TOKEN
Using the IPinfo Plus API service, you can access the API from an IPv4 connection explicitly:
https://v4.api.ipinfo.io/lookup/2001:4930:98::1?token=$TOKEN
https://v4.api.ipinfo.io/lookup/82.163.118.147?token=$TOKEN
https://v4.api.ipinfo.io/lookup/me?token=$TOKEN