general
Returns IP information about the current IP.
Returns IP information about the current IP.
get/
Request
- Base URLhttps://ipinfo.io
- Auth
- HTTP basic
- or HTTP bearer
- or API key in query parameter token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Response
Full response object.
Example response
{
"ip": "66.87.125.72",
"hostname": "ip-66-87-125-72.spfdma.spcsdns.net",
"city": "Springfield",
"region": "Massachusetts",
"country": "US",
"loc": "42.0999,-72.5783",
"postal": "01105",
"timezone": "America/New_York",
"org": "AS51501 Khabarovsk home networks Ltd",
"asn": {
"asn": "AS10507",
"name": "Sprint Personal Communications Systems",
"country": "US",
"allocated": "1997-02-14",
"registry": "arin",
"domain": "sprint.net",
"num_ips": 71224576,
"route": "66.87.125.0/24",
"type": "isp",
"prefixes": [
{
"netblock": "104.69.216.0/22",
"id": "AKAMAI",
"name": "Akamai Technologies, Inc.",
"country": "US",
"size": "256",
"status": "ALLOCATION",
"domain": "quadranet.com",
"rpki_status": "valid"
}
],
"prefixes6": [
{
"netblock": "2601::/20",
"id": "COMCAST6NET",
"name": "Comcast Cable Communications, LLC",
"country": "US",
"size": "20282409603651670423947251286016",
"status": "ASSIGNMENT",
"domain": "comcast.com",
"rpki_status": "valid"
}
],
"peers": [
"1299"
],
"upstreams": [
"1299"
],
"downstreams": [
"109"
]
},
"company": {
"name": "Sprint Springfield POP",
"domain": "sprint.com",
"type": "isp"
},
"carrier": {
"name": "Sprint Corporation",
"mcc": "310",
"mnc": "120"
},
"privacy": {
"vpn": true
},
"domains": {
"ip": "1.1.1.1",
"page": 1,
"total": 17939,
"domains": [
"udemy.com"
]
}
}Changes
No recorded changes to this operation across all 1 revision of this API.