{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/whoisfreaks/json-schema/whoisfreaks-asn-whois-response-schema.json",
  "title": "AsnWhoisResponse",
  "description": "ASN WHOIS v2 (/v2.0/asn-whois) — pass-through of ipgeolocation ASN data.",
  "x-generated": "2026-11-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/whoisfreaks-asn-whois-api-openapi.yml#/components/schemas/AsnWhoisResponse",
  "type": "object",
  "properties": {
    "asn": {
      "$ref": "#/$defs/AsnInfo"
    }
  },
  "additionalProperties": true,
  "$defs": {
    "AsnInfo": {
      "type": "object",
      "properties": {
        "as_number": {
          "type": "string"
        },
        "organization": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "domain": {
          "type": "string"
        },
        "date_allocated": {
          "type": "string"
        },
        "asn_name": {
          "type": "string"
        },
        "allocation_status": {
          "type": "string"
        },
        "num_of_ipv4_routes": {
          "type": "string"
        },
        "num_of_ipv6_routes": {
          "type": "string"
        },
        "rir": {
          "type": "string"
        },
        "routes": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "downstreams": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AsnPeer"
          }
        },
        "upstreams": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AsnPeer"
          }
        },
        "peers": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AsnPeer"
          }
        },
        "whois_response": {
          "type": "string"
        }
      },
      "additionalProperties": true
    },
    "AsnPeer": {
      "type": "object",
      "properties": {
        "as_number": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "country": {
          "type": "string"
        }
      },
      "additionalProperties": true
    }
  }
}