Returns information about the provided IP.
Provides comprehensive information about a specified IP address, including geographic location (city, region, country), coordinates, postal code, timezone, currency code, calling code. It also provides ASN (Autonomous System Number) details, company information, privacy and threat information (VPN, proxy detection, Tor, relay, hosting, etc.), abuse contact information. This endpoint is useful for applications needing detailed IP intelligence, such as identifying geographic origin, privacy status, and potential abuse reporting information.
Request
- Base URL: https://iplocate.io/api
- URL: https://iplocate.io/api/lookup/{ip}
- Auth: API key in query parameter apikey
Path parameters
A single IPv4 or IPv6 IP address.
Query parameters
Comma-separated list of fields to include in the response. Always returns JSON format.
Examples: ip, asn.asn,privacy.is_vpn, asn,company.name
Response
Lookup response object.
Example response
{
"ip": "123.243.246.200",
"country": "Australia",
"country_code": "AU",
"city": "Sydney",
"continent": "Oceania",
"latitude": -33.86785,
"longitude": 151.20732,
"time_zone": "Australia/Sydney",
"subdivision": "New South Wales",
"currency_code": "AUD",
"asn": {
"asn": "AS7545",
"route": "123.243.246.0/24",
"netname": "TPG-INTERNET-AP",
"name": "TPG Internet Pty Ltd",
"country_code": "AU",
"domain": "tpgtelecom.com.au",
"type": "isp",
"rir": "APNIC"
},
"company": {
"name": "TPG Telecom",
"domain": "www.tpgtelecom.com.au",
"country_code": "AU",
"type": "isp"
},
"hosting": {
"provider": "Amazon AWS",
"domain": "aws.amazon.com",
"network": "3.5.140.0/22",
"region": "ap-northeast-2",
"service": "EC2"
},
"abuse": {
"address": "TPG Internet Pty Ltd. (Part of the Total Peripherals Group) 65 Waterloo Road North Ryde NSW 2113",
"country_code": "AU",
"email": "hostmaster@tpgtelecom.com.au",
"name": "ABUSE TPGCOMAU",
"network": "123.243.246.192 - 123.243.246.223"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.