WeatherAPI · JSON Structure

Weatherapi Ip Lookup Response Structure

IpLookupResponse schema from WeatherAPI.com

Type: object Properties: 15
WeatherForecastHistoryMarineAstronomyGeolocationSportsAlertsPublic APIs

IpLookupResponse is a JSON Structure definition published by WeatherAPI, describing 15 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

ip type continent_code continent_name country_code country_name is_eu geoname_id city region lat lon tz_id localtime_epoch localtime

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/weatherapi/refs/heads/main/json-structure/weatherapi-ip-lookup-response-structure.json",
  "name": "IpLookupResponse",
  "description": "IpLookupResponse schema from WeatherAPI.com",
  "type": "object",
  "properties": {
    "ip": {
      "type": "string",
      "example": "sample value"
    },
    "type": {
      "type": "string",
      "enum": [
        "ipv4",
        "ipv6"
      ],
      "example": "ipv4"
    },
    "continent_code": {
      "type": "string",
      "example": "EGLL"
    },
    "continent_name": {
      "type": "string",
      "example": "EU"
    },
    "country_code": {
      "type": "string",
      "example": "United Kingdom"
    },
    "country_name": {
      "type": "string",
      "example": "United Kingdom"
    },
    "is_eu": {
      "type": "boolean",
      "example": false
    },
    "geoname_id": {
      "type": "string",
      "example": "sample value"
    },
    "city": {
      "type": "string",
      "example": "sample value"
    },
    "region": {
      "type": "string",
      "example": "City of London, Greater London"
    },
    "lat": {
      "type": "double",
      "example": 51.5074
    },
    "lon": {
      "type": "double",
      "example": -0.1278
    },
    "tz_id": {
      "type": "string",
      "example": "Europe/London"
    },
    "localtime_epoch": {
      "type": "int32",
      "example": 1748441400
    },
    "localtime": {
      "type": "string",
      "example": "2026-05-28 15:30"
    }
  }
}