Sponsored by VIVANET

Amsterdam · Namecheap, Inc.

Additional information

IP address 162.0.217.198
Decimal 2717964742
Region North Holland
Region code NH
Postal code 1012
City Amsterdam
Latitude 52.3716
Longitude 4.8883
Timezone Europe/Amsterdam
ASN AS22612
Organization Namecheap, Inc.

Location

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 ipinfo.ch 162.0.217.198
curl ipinfo.ch/city Amsterdam
curl ipinfo.ch/asn AS22612
  • 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 ipinfo.ch/json Retrieve all IP information. See response.

Response

{
  "ip": "162.0.217.198",
  "ip_decimal": 2717964742,
  "country_eu": false,
  "region_name": "North Holland",
  "region_code": "NH",
  "zip_code": "1012",
  "city": "Amsterdam",
  "latitude": 52.3716,
  "longitude": 4.8883,
  "time_zone": "Europe/Amsterdam",
  "asn": "AS22612",
  "asn_org": "Namecheap, Inc.",
  "user_agent": {
    "product": "Mozilla",
    "version": "5.0",
    "comment": "(Windows NT 10.0; Win64; x64)",
    "raw_value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64)"
  }
}

Port response

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

{
  "ip": "162.0.217.198",
  "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.