WeatherAPI · Schema

IpLookupResponse

IpLookupResponse schema from WeatherAPI.com

WeatherForecastHistoryMarineAstronomyGeolocationSportsAlertsPublic APIs

Properties

Name Type Description
ip string
type string
continent_code string
continent_name string
country_code string
country_name string
is_eu boolean
geoname_id string
city string
region string
lat number
lon number
tz_id string
localtime_epoch integer
localtime string
View JSON Schema on GitHub

JSON Schema

weatherapi-ip-lookup-response-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/weatherapi/refs/heads/main/json-schema/weatherapi-ip-lookup-response-schema.json",
  "title": "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": "number",
      "example": 51.5074
    },
    "lon": {
      "type": "number",
      "example": -0.1278
    },
    "tz_id": {
      "type": "string",
      "example": "Europe/London"
    },
    "localtime_epoch": {
      "type": "integer",
      "example": 1748441400
    },
    "localtime": {
      "type": "string",
      "example": "2026-05-28 15:30"
    }
  }
}