{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ipgeolocation/json-schema/ipgeolocation-user-agent-response-schema.json",
  "title": "UserAgentResponse",
  "description": "Parsed user agent details including browser, device, layout engine, and\noperating system information. Also indicates bots, crawlers, or malicious\nuser agent strings.\n",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ipgeolocation-user-agent-api-openapi.yml#/components/schemas/UserAgentResponse",
  "type": "object",
  "properties": {
    "user_agent_string": {
      "type": "string",
      "description": "The raw user agent string that was parsed."
    },
    "name": {
      "type": "string",
      "description": "Name of the detected agent (e.g. browser name, bot name, or `\"Hacker\"`\nif the string is malformed or contains injected scripts).\n"
    },
    "type": {
      "type": "string",
      "description": "Type of the detected user agent. See possible values in the documentation.\n"
    },
    "version": {
      "type": "string",
      "description": "Full version string of the detected agent."
    },
    "version_major": {
      "type": "string",
      "description": "Major version of the detected agent."
    },
    "device": {
      "$ref": "#/$defs/Device"
    },
    "engine": {
      "$ref": "#/$defs/Engine"
    },
    "operating_system": {
      "$ref": "#/$defs/OperatingSystem"
    }
  },
  "$defs": {
    "Device": {
      "type": "object",
      "description": "Hardware device information extracted from the user agent string.",
      "properties": {
        "name": {
          "type": "string",
          "description": "Name of the device (e.g. model name or manufacturer)."
        },
        "type": {
          "type": "string",
          "description": "Type of the device. See possible values in the documentation.\n"
        },
        "brand": {
          "type": "string",
          "description": "Brand or manufacturer of the device."
        },
        "cpu": {
          "type": "string",
          "description": "CPU architecture or model of the device. May be `\"Unknown\"`."
        }
      }
    },
    "Engine": {
      "type": "object",
      "description": "Layout engine information extracted from the user agent string.",
      "properties": {
        "name": {
          "type": "string",
          "description": "Name of the layout engine (e.g. `\"AppleWebKit\"`, `\"Blink\"`, `\"Gecko\"`)."
        },
        "type": {
          "type": "string",
          "description": "Type of the layout engine. See possible values in the documentation.\n"
        },
        "version": {
          "type": "string",
          "description": "Full version string of the layout engine. May be `\"??\"` if unknown."
        },
        "version_major": {
          "type": "string",
          "description": "Major version of the layout engine. May be `\"??\"` if unknown."
        }
      }
    },
    "OperatingSystem": {
      "type": "object",
      "description": "Operating system information extracted from the user agent string.",
      "properties": {
        "name": {
          "type": "string",
          "description": "Name of the operating system."
        },
        "type": {
          "type": "string",
          "description": "Type of the operating system. See possible values in the documentation.\n"
        },
        "version": {
          "type": "string",
          "description": "Full version string of the operating system. May be `\"??\"` if unknown."
        },
        "version_major": {
          "type": "string",
          "description": "Major version of the operating system. May be `\"??\"` if unknown."
        },
        "build": {
          "type": "string",
          "description": "Build identifier of the operating system. May be `\"??\"` if unknown."
        }
      }
    }
  }
}