---
title: "Get an IP's information"
method: GET
path: "/v1/ip/{ip}/lookup"
tags: ["IP Lookup"]
---

# Get an IP's 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`

Lookup an IP address and return the associated information.

## Response `200`

Success

- IPAddressLookupResponse
  - `type` string: IP address type
  - `ip_address` string, required: IP address
  - `location` IPAddressLookupLocation
    - `continent` IPAddressLookupLocationContinent
      - `code` string: Continent code
      - `name` string: Continent name
    - `country` IPAddressLookupLocationCountry
      - `code` string: Country code
      - `name` string: Country name
    - `latitude` number: Latitude
    - `longitude` number: Longitude

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `500`: Internal Server Error

---

[API](https://skmtc.dev/edgegap/apis/edgegap-v1.md) · [All operations](https://skmtc.dev/edgegap/apis/edgegap-v1/llms.txt) · [OpenAPI document](https://skmtc.dev/edgegap/apis/edgegap-v1/revisions/9fa2b393a6be?raw)
