❯ curl ip.upputuri.in

Chengdu, China · Shenzhen Tencent Computer Systems Company Limited

Additional information

IP address 162.14.114.97
Decimal 2718855777
Country China
Country (ISO) CN
Region Sichuan
Region code SC
City Chengdu
Latitude 30.6667
Longitude 104.0667
Timezone Asia/Shanghai
ASN AS45090
Organization Shenzhen Tencent Computer Systems Company Limited

Location

Approximate location based on IP address. IP geolocation data is provided by MaxMind GeoLite2.

API

All data is available programmatically. When using curl, pass the -s flag to hide the progress bar.

Plain text

These endpoints return plain text by default, with a trailing newline at the end.

Command Response
curl ip.upputuri.in 162.14.114.97
curl ip.upputuri.in/country China
curl ip.upputuri.in/country-iso CN
curl ip.upputuri.in/city Chengdu
curl ip.upputuri.in/asn AS45090
  • Set the Accept: application/json header to request response as JSON.
  • Append ?ip=IP to the request URL to lookup information for a different IP. This is not supported for the /port endpoint.

JSON

These endpoints always return JSON.

Command Description
curl ip.upputuri.in/json Retrieve all IP information. See response.
curl ip.upputuri.in/port/<PORT> Check if given port is reachable. See port response.

Response

{
  "ip": "162.14.114.97",
  "ip_decimal": 2718855777,
  "country": "China",
  "country_iso": "CN",
  "country_eu": false,
  "region_name": "Sichuan",
  "region_code": "SC",
  "city": "Chengdu",
  "latitude": 30.6667,
  "longitude": 104.0667,
  "time_zone": "Asia/Shanghai",
  "asn": "AS45090",
  "asn_org": "Shenzhen Tencent Computer Systems Company Limited",
  "user_agent": {
    "product": "Mozilla",
    "version": "5.0",
    "comment": "(iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1",
    "raw_value": "Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1"
  }
}

Port response

This is an example response. The actual result depends on the reachability of the queried port.

{
  "ip": "162.14.114.97",
  "port": 443,
  "reachable": false
}

FAQ

How do I force IPv4 or IPv6 lookup?
Pass the appropriate flag to your client, e.g. curl -4 or curl -6.
Is automated use permitted?
Yes, but please limit automated requests to 1 request per minute. Requests exceeding this limit may receive a 429 status code or be dropped entirely.
Can I run my own instance?
Yes. The source code and documentation are available on GitHub.