{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ipwhois-net/json-schema/ipwhois-net-ip-batch-schema.json",
  "title": "IpBatch",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/ipwhois-net-api-openapi.json#/components/schemas/IpBatch",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "count": {
      "type": "integer"
    },
    "results": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/IpResult"
      }
    },
    "meta": {
      "$ref": "#/$defs/Meta"
    }
  },
  "$defs": {
    "IpResult": {
      "type": "object",
      "properties": {
        "success": {
          "type": "boolean"
        },
        "ip": {
          "type": "string"
        },
        "version": {
          "type": "integer",
          "enum": [
            4,
            6
          ]
        },
        "location": {
          "type": "object",
          "properties": {
            "continent": {
              "type": "string"
            },
            "continent_code": {
              "type": "string"
            },
            "country": {
              "type": "string"
            },
            "country_code": {
              "type": "string"
            },
            "region": {
              "type": "string"
            },
            "city": {
              "type": "string"
            },
            "district": {
              "type": [
                "string",
                "null"
              ]
            },
            "postal_code": {
              "type": "string"
            },
            "latitude": {
              "type": "number"
            },
            "longitude": {
              "type": "number"
            },
            "accuracy_radius_km": {
              "type": "integer"
            },
            "is_eu": {
              "type": "boolean"
            }
          }
        },
        "timezone": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "utc_offset": {
              "type": "string",
              "description": "Paid plans."
            },
            "is_dst": {
              "type": "boolean"
            },
            "current_time": {
              "type": "string"
            }
          }
        },
        "network": {
          "type": "object",
          "properties": {
            "asn": {
              "type": "integer"
            },
            "isp": {
              "type": "string"
            },
            "organization": {
              "type": "string"
            },
            "domain": {
              "type": "string"
            },
            "connection_type": {
              "type": "string",
              "description": "isp, cable, mobile, hosting, business, backbone, vpn, education, government and others."
            },
            "asn_name": {
              "type": "string",
              "description": "Paid plans, like every field below."
            },
            "org_domain": {
              "type": "string"
            },
            "holding": {
              "type": "string",
              "description": "Parent company of the operator."
            },
            "holding_domain": {
              "type": "string"
            },
            "usage": {
              "type": "string",
              "description": "Network detail, for example FTTH Residential."
            },
            "hostname": {
              "type": "string"
            },
            "range": {
              "type": "object",
              "properties": {
                "start": {
                  "type": "string"
                },
                "end": {
                  "type": "string"
                },
                "size": {
                  "type": "integer"
                }
              }
            },
            "rpki": {
              "type": "string"
            },
            "anycast": {
              "type": [
                "object",
                "null"
              ],
              "description": "Measured anycast (LACeS Anycast Census). null when not in the census.",
              "properties": {
                "prefix": {
                  "type": "string"
                },
                "sites": {
                  "type": "integer"
                },
                "countries": {
                  "type": "integer"
                },
                "cities": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "city": {
                        "type": "string"
                      },
                      "country_code": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            },
            "speed_mbps": {
              "type": "object",
              "properties": {
                "download": {
                  "type": "number"
                },
                "upload": {
                  "type": "number"
                }
              }
            }
          }
        },
        "country_info": {
          "type": "object",
          "description": "Paid plans.",
          "properties": {
            "calling_code": {
              "type": "string"
            },
            "tld": {
              "type": "string"
            },
            "currency": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string"
                },
                "symbol": {
                  "type": "string"
                }
              }
            },
            "languages": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        },
        "security": {
          "type": "object",
          "description": "Paid plans.",
          "properties": {
            "is_vpn": {
              "type": "boolean"
            },
            "vpn_provider": {
              "type": [
                "string",
                "null"
              ]
            },
            "is_proxy": {
              "type": "boolean"
            },
            "is_tor": {
              "type": "boolean"
            },
            "is_hosting": {
              "type": "boolean"
            },
            "is_threat": {
              "type": "boolean"
            },
            "threat_type": {
              "type": [
                "string",
                "null"
              ]
            },
            "threat_confidence": {
              "type": "integer"
            },
            "threat_reports": {
              "type": "integer"
            },
            "threat_last_seen": {
              "type": [
                "string",
                "null"
              ]
            },
            "verified_crawler": {
              "type": [
                "object",
                "null"
              ],
              "description": "Address is inside a range the crawler operator publishes. null otherwise.",
              "properties": {
                "bot": {
                  "type": "string"
                },
                "operator": {
                  "type": "string"
                },
                "prefix": {
                  "type": "string"
                }
              }
            }
          }
        },
        "abuse": {
          "type": "object",
          "description": "Paid plans.",
          "properties": {
            "email": {
              "type": "string"
            }
          }
        },
        "meta": {
          "$ref": "#/$defs/Meta"
        }
      }
    },
    "Meta": {
      "type": "object",
      "description": "Plan and quota of the key that made the call.",
      "properties": {
        "plan": {
          "type": "string"
        },
        "fields": {
          "type": "string",
          "enum": [
            "basic",
            "full"
          ]
        },
        "quota": {
          "type": "object",
          "properties": {
            "limit": {
              "type": "integer"
            },
            "used": {
              "type": "integer"
            },
            "remaining": {
              "type": "integer"
            },
            "period": {
              "type": "string",
              "enum": [
                "day",
                "month"
              ]
            },
            "resets_at": {
              "type": "string",
              "format": "date-time"
            }
          }
        }
      }
    }
  }
}