{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/whoisfreaks/json-schema/whoisfreaks-geolocation-response-schema.json",
  "title": "GeolocationResponse",
  "x-generated": "2026-11-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/whoisfreaks-geolocation-api-openapi.yml#/components/schemas/GeolocationResponse",
  "type": "object",
  "properties": {
    "ip": {
      "type": "string"
    },
    "location": {
      "$ref": "#/$defs/IpLocation"
    },
    "country_metadata": {
      "$ref": "#/$defs/CountryMetadata"
    },
    "network": {
      "$ref": "#/$defs/GeoNetwork"
    },
    "currency": {
      "$ref": "#/$defs/Currency"
    }
  },
  "additionalProperties": true,
  "$defs": {
    "CountryMetadata": {
      "type": "object",
      "properties": {
        "calling_code": {
          "type": "string"
        },
        "tld": {
          "type": "string"
        },
        "languages": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "additionalProperties": true
    },
    "Currency": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "symbol": {
          "type": "string"
        }
      },
      "additionalProperties": true
    },
    "GeoAsn": {
      "type": "object",
      "properties": {
        "as_number": {
          "type": "string"
        },
        "organization": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "asn_name": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "domain": {
          "type": "string"
        },
        "date_allocated": {
          "type": "string"
        },
        "allocation_status": {
          "type": "string"
        },
        "num_of_ipv4_routes": {
          "type": "string"
        },
        "num_of_ipv6_routes": {
          "type": "string"
        },
        "rir": {
          "type": "string"
        }
      },
      "additionalProperties": true
    },
    "GeoCompany": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "domain": {
          "type": "string"
        }
      },
      "additionalProperties": true
    },
    "GeoNetwork": {
      "type": "object",
      "properties": {
        "asn": {
          "$ref": "#/$defs/GeoAsn"
        },
        "connection_type": {
          "type": "string"
        },
        "company": {
          "$ref": "#/$defs/GeoCompany"
        }
      },
      "additionalProperties": true
    },
    "IpLocation": {
      "type": "object",
      "properties": {
        "continent_code": {
          "type": "string"
        },
        "continent_name": {
          "type": "string"
        },
        "country_code2": {
          "type": "string"
        },
        "country_code3": {
          "type": "string"
        },
        "country_name": {
          "type": "string"
        },
        "country_name_official": {
          "type": "string"
        },
        "country_capital": {
          "type": "string"
        },
        "state_prov": {
          "type": "string"
        },
        "state_code": {
          "type": "string"
        },
        "district": {
          "type": "string"
        },
        "city": {
          "type": "string"
        },
        "locality": {
          "type": "string"
        },
        "accuracy_radius": {
          "type": "string"
        },
        "confidence": {
          "type": "string"
        },
        "zipcode": {
          "type": "string"
        },
        "latitude": {
          "type": "string"
        },
        "longitude": {
          "type": "string"
        },
        "is_eu": {
          "type": "boolean"
        },
        "geoname_id": {
          "type": "string"
        },
        "country_emoji": {
          "type": "string"
        }
      },
      "additionalProperties": true
    }
  }
}