---
title: "IP Info"
method: GET
path: "/ip-info"
tags: ["Geolocation"]
---

# IP Info

`GET /ip-info`

Get location information about an IP address and do reverse DNS (PTR) lookups

## Query parameters

- `ip` string, required
- `reverse-lookup` boolean

## Response `200`

OK

- IPInfoResponse — Structure of ip-info
  - `valid` boolean, required — True if this is a valid IPv4 or IPv6 address
  - `country` string, required — Full country name
  - `hostname` string, required — The IPs full hostname (only set if reverse-lookup has been used)
  - `city` string, required — Name of the city (if detectable)
  - `country-code` string, required — ISO 2-letter country code
  - `latitude` number, double, required — Location latitude
  - `region` string, required — Name of the region (if detectable)
  - `longitude` number, double, required — Location longitude
  - `continent-code` string, required — ISO 2-letter continent code
  - `ip` string, required — The IPv4 or IPv6 address returned
  - `country-code3` string, required — ISO 3-letter country code
  - `currency-code` string, required — ISO 4217 currency code associated with the country
  - `host-domain` string, required — The IPs host domain (only set if reverse-lookup has been used)
  - `timezone` Timezone, required — Structure of timezone
    - `id` string, required — The time zone ID as per the IANA time zone database (tzdata). If empty then no valid timezone was detected
    - `name` string, required — The full time zone name
    - `abbr` string, required — The time zone abbreviation
    - `date` string, required — The current date at the time zone (ISO 8601 format 'YYYY-MM-DD')
    - `time` string, required — The current time at the time zone (ISO 8601 format 'hh:mm:ss.sss')
    - `offset` string, required — The UTC offset for the time zone (ISO 8601 format '±hh:mm')
  - `is-v6` boolean, required — True if this is a IPv6 address. False if IPv4
  - `is-v4-mapped` boolean, required — True if this is a <a href="https://en.wikipedia.org/wiki/IPv6#IPv4-mapped_IPv6_addresses">IPv4 mapped IPv6 address</a>
  - `is-bogon` boolean, required — True if this is a bogon IP address such as a private network, local network or reserved address
  - `region-code` string, required — ISO 3166-2 region code (if detectable)
  - `language-code` string, required — The ISO 2-letter language code for the official language spoken in the country

## Other responses

- `400` — Your API request has been rejected. Check error code for details
- `403` — You have failed to authenticate
- `500` — We messed up, sorry! Your request has caused a fatal exception
- `default` — We messed up, sorry! Your request has caused an error

---

[API](https://skmtc.net/neutrinoapi/apis/neutrino-api.md) · [All operations](https://skmtc.net/neutrinoapi/apis/neutrino-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/neutrinoapi/neutrino-api/versions/4ebd6b56de42/schema)
