Returns IP inforomation about the current IP.

Returns IP information about the current IP.

get/lookup/

Request

  • Base URL: https://iplocate.io/api
  • URL: https://iplocate.io/api/lookup/
  • Auth: API key in query parameter apikey

Query parameters

includestring

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.

ipstring
countrystring nullable
country_codestring nullable
is_euboolean
citystring nullable
continentstring nullable
latitudenumber nullable
longitudenumber nullable
time_zonestring nullable
postal_codestring nullable
subdivisionstring nullable
currency_codestring nullable
calling_codestring nullable
is_anycastboolean
is_satelliteboolean

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.