IP Lookup

Get an IP's information

Lookup an IP address and return the associated information.

get/v1/ip/{ip}/lookup

Request

  • Base URL: https://api.edgegap.com
  • URL: https://api.edgegap.com/v1/ip/{ip}/lookup
  • Auth: API key in header authorization

Response

Success

typestring

IP address type

ip_addressstring required

IP address

Example response

{
  "type": "IPv4",
  "ip_address": "1.1.1.1",
  "location": {
    "continent": {
      "code": "AF",
      "name": "Africa"
    },
    "country": {
      "code": "CA",
      "name": "Canada"
    }
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.