Ip Interface

When you interact with our SDK or API, the geolocation data for an IP address is returned as a structured object containing details like country, region, city, coordinates, and similar information.

TypeScript
interface Ip {
    ip: string | null
    type: 'ipv4' | 'ipv6' | null
    is_eu: boolean | null
    continent: {
        name: string | null
        code: string | null
        geoname_id: number | null
        country: {
            name: string | null
            code: string | null
            geoname_id: number | null
            phone_code: string | null
            capital: string | null
            tld: string | null
            subdivision: {
                name: string | null
                code: string | null
            }
            city: {
                name: string | null
                geoname_id: number | null
                latitude: number | null
                longitude: number | null
                accuracy_radius: number | null
                metro_code: number | null
                postal_code: string | null
                timezone: {
                    name: string | null
                    time_now: string | null
                }
            }
            flag: {
                img: string | null
                emoji: string | null
                emoji_unicode: string | null
            }
            currency: {
                name: string | null
                code: string | null
                symbol: string | null
            }
        }
    }
    registered_country: {
        name: string | null
        code: string | null
        geoname_id: number | null
    }
    asn: {
        number: number | null
        name: string | null
    }
    completion_time: {
        miliseconds: number | null
        seconds: number | null
    }
}
Get Started

Convert IPs into accurate location data in milliseconds.

Sign up today and get 1,000 free monthly conversions, and discover why developers trust us for fast, reliable, and affordable IP conversions.