{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ipgeolocation/json-schema/ipgeolocation-abuse-lookup-response-schema.json",
  "title": "AbuseLookupResponse",
  "description": "Response returned by the IP Abuse Contact API.\n\nContains the queried IP address and the abuse contact information\nassociated with the network responsible for that IP.\n\nThe `ip` field is always present. The `abuse` object may be partially\npopulated depending on available registry data and field filtering.\n",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ipgeolocation-ip-abuse-contact-api-openapi.yml#/components/schemas/AbuseLookupResponse",
  "type": "object",
  "required": [
    "ip",
    "abuse"
  ],
  "properties": {
    "ip": {
      "type": "string",
      "description": "The IP address for which abuse contact details are returned.\n"
    },
    "abuse": {
      "$ref": "#/$defs/Abuse"
    }
  },
  "$defs": {
    "Abuse": {
      "type": "object",
      "description": "Abuse contact information for the network that owns this IP. Costs 1 credit.\n",
      "properties": {
        "route": {
          "type": "string",
          "description": "BGP route prefix this abuse contact is responsible for, in CIDR notation."
        },
        "country": {
          "type": "string",
          "description": "ISO 3166-1 alpha-2 country of the abuse contact. May be empty."
        },
        "name": {
          "type": "string",
          "description": "Name of the abuse contact person or team."
        },
        "organization": {
          "type": "string",
          "description": "Organization name of the abuse contact. May be empty."
        },
        "kind": {
          "type": "string",
          "description": "Contact type from registry data. Values include `group`, `individual`.\n"
        },
        "address": {
          "type": "string",
          "description": "Postal address of the abuse contact. Returned as a plain comma-separated string."
        },
        "emails": {
          "type": "array",
          "description": "Email addresses for reporting abuse.",
          "items": {
            "type": "string",
            "format": "email"
          }
        },
        "phone_numbers": {
          "type": "array",
          "description": "Phone numbers for the abuse contact.",
          "items": {
            "type": "string"
          }
        }
      }
    }
  }
}