{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/whoisfreaks/json-schema/whoisfreaks-ip-reputation-response-schema.json",
  "title": "IpReputationResponse",
  "x-generated": "2026-11-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/whoisfreaks-ip-reputation-api-openapi.yml#/components/schemas/IpReputationResponse",
  "type": "object",
  "properties": {
    "ip": {
      "type": "string"
    },
    "location": {
      "$ref": "#/$defs/IpLocation"
    },
    "network": {
      "$ref": "#/$defs/IpSecurityNetwork"
    },
    "asn": {
      "$ref": "#/$defs/IpSecurityAsn"
    },
    "security": {
      "$ref": "#/$defs/IpSecurity"
    }
  },
  "additionalProperties": true,
  "$defs": {
    "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
    },
    "IpSecurity": {
      "type": "object",
      "properties": {
        "threat_score": {
          "type": "integer"
        },
        "is_tor": {
          "type": "boolean"
        },
        "is_proxy": {
          "type": "boolean"
        },
        "proxy_provider_names": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "proxy_confidence_score": {
          "type": "integer"
        },
        "proxy_last_seen": {
          "type": "string"
        },
        "is_residential_proxy": {
          "type": "boolean"
        },
        "is_vpn": {
          "type": "boolean"
        },
        "vpn_provider_names": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "vpn_confidence_score": {
          "type": "integer"
        },
        "vpn_last_seen": {
          "type": "string"
        },
        "is_relay": {
          "type": "boolean"
        },
        "relay_provider_name": {
          "type": "string"
        },
        "is_anonymous": {
          "type": "boolean"
        },
        "is_known_attacker": {
          "type": "boolean"
        },
        "is_bot": {
          "type": "boolean"
        },
        "is_spam": {
          "type": "boolean"
        },
        "is_cloud_provider": {
          "type": "boolean"
        },
        "cloud_provider_name": {
          "type": "string"
        }
      },
      "additionalProperties": true
    },
    "IpSecurityAsn": {
      "type": "object",
      "properties": {
        "as_number": {
          "type": "string"
        },
        "organization": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "domain": {
          "type": "string"
        },
        "date_allocated": {
          "type": "string"
        },
        "rir": {
          "type": "string"
        }
      },
      "additionalProperties": true
    },
    "IpSecurityNetwork": {
      "type": "object",
      "properties": {
        "connection_type": {
          "type": "string"
        },
        "route": {
          "type": "string"
        },
        "is_anycast": {
          "type": "boolean"
        }
      },
      "additionalProperties": true
    }
  }
}