| 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. |
All data is available programmatically. When using curl, pass the -s flag to hide the progress bar.
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 |
Accept: application/json header to request response as JSON.?ip=IP to the request URL to lookup information for a different IP. This is not supported for the /port endpoint.These endpoints always return JSON.
| Command | Description |
|---|---|
curl ipinfo.ch/json |
Retrieve all IP information. See 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)"
}
}
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
}
curl -4 or curl -6.