EU Parliament Monitor — API Documentation - v0.8.24
    Preparing search index...
    • Detect emerging threats by comparing current threat levels against a baseline.

      A threat is considered "emerging" when:

      • The category was not present in the baseline (new threat), OR
      • The current impact level is higher than the baseline level

      Escalation rate:

      • rapid: escalated by ≥ 2 impact levels
      • moderate: escalated by 1 level
      • slow: new (no baseline) or minimal change

      Parameters

      • currentThreats: readonly {
            category: PoliticalThreatCategory;
            level: ImpactLevel;
            evidence: readonly string[];
        }[]

        Current threat dimensions with their impact levels

      • baselineThreats: readonly { category: PoliticalThreatCategory; level: ImpactLevel }[]

        Baseline (historical) threat dimensions for comparison

      • OptionaldetectionDate: string

        ISO date string for the detection timestamp (defaults to today)

      Returns EmergingThreat[]

      Array of EmergingThreat objects sorted by escalation rate (rapid first)