{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/scanmalware-com/json-schema/scanmalware-com-analyzer-results-response-schema.json",
  "title": "AnalyzerResultsResponse",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/scanmalware-com-openapi.json#/components/schemas/AnalyzerResultsResponse",
  "properties": {
    "scan_id": {
      "type": "string",
      "title": "Scan Id"
    },
    "analyzers": {
      "additionalProperties": {
        "$ref": "#/$defs/AnalyzerStage"
      },
      "type": "object",
      "title": "Analyzers",
      "description": "One entry per public processing stage that has recorded telemetry for this scan, keyed by stage name (page_capture, secondary_capture, network_capture, ip_enrichment, rdap_lookup, safe_browsing, threat_intel_match, tls_certificate, http_analysis, content_analysis, technology_detection, ocr, ids_analysis, js_fingerprinting, js_behavior_analysis, security_verdict, ai_analysis, and others). A stage absent from the map has not recorded anything yet. To wait for the verdicts, poll GET /api/v1/result/{scan_id} until `verdicts_ready` is true."
    },
    "total_analyzers": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Total Analyzers",
      "description": "Number of entries in `analyzers`."
    },
    "source": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Source",
      "description": "'database', or 'redis' while the scan is still in progress."
    },
    "execution_time": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Execution Time",
      "description": "Redis source only: total seconds."
    },
    "timestamp": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        },
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Timestamp",
      "description": "Redis source only."
    },
    "note": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Note",
      "description": "Present when the scan exists but has no telemetry recorded."
    }
  },
  "type": "object",
  "required": [
    "scan_id"
  ],
  "$defs": {
    "AnalyzerStage": {
      "properties": {
        "success": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Success",
          "description": "True when `status` is 'success'."
        },
        "status": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Status",
          "description": "The stage's last recorded state: 'success', 'skipped' (the stage had nothing to do for this scan), 'failed', or 'started' (still running, or ended without recording an outcome). Measured over 7 days on 2026-11-12, only these four values occur."
        },
        "execution_time": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Execution Time",
          "description": "Duration in seconds."
        },
        "duration_ms": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Duration Ms",
          "description": "Duration in milliseconds."
        },
        "started_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Started At",
          "description": "ISO 8601 timestamp (UTC)."
        },
        "completed_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Completed At",
          "description": "ISO 8601 timestamp (UTC)."
        }
      },
      "type": "object",
      "title": "AnalyzerStage"
    }
  }
}