{
  "openapi": "3.0.1",
  "info": {
    "title": "Czech Security Alerts (NÚKIB, CSIRT.CZ)",
    "description": "Downloads cybersecurity warnings and notices from NÚKIB and CSIRT.CZ and saves them as structured data: date, severity, affected products and CVE numbers.",
    "version": "1.0",
    "x-build-id": "Xr57cEMni8NtzcvtG"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/aletheie~czech-security-alerts/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-aletheie-czech-security-alerts",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/aletheie~czech-security-alerts/runs": {
      "post": {
        "operationId": "runs-sync-aletheie-czech-security-alerts",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/aletheie~czech-security-alerts/run-sync": {
      "post": {
        "operationId": "run-sync-aletheie-czech-security-alerts",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "sources": {
            "title": "Sources",
            "type": "array",
            "description": "Which publishers to download alerts from. NÚKIB publishes formal warnings (varování) and notices (upozornění); CSIRT.CZ publishes security news (Aktuálně z bezpečnosti).",
            "items": {
              "type": "string",
              "enum": [
                "nukib",
                "csirt"
              ],
              "enumTitles": [
                "NÚKIB – Hrozby",
                "CSIRT.CZ – Aktuálně z bezpečnosti"
              ]
            },
            "default": [
              "nukib",
              "csirt"
            ]
          },
          "period": {
            "title": "Period",
            "enum": [
              "sinceLastRun",
              "last24h",
              "last7days",
              "last30days",
              "all"
            ],
            "type": "string",
            "description": "Which alerts to download. \"New since last run\" returns only alerts that earlier runs have not saved yet (on the first run it falls back to the last 24 hours). The sources publish dates without times, so \"Last 24 hours\" means published yesterday or today (Prague time). Ignored when \"Published on or after\" is set. For scheduled runs and notifications, use \"New since last run\".",
            "default": "last30days"
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Only return alerts from these areas. Leave empty to return all alerts. Categories are inferred from the products and keywords in the alert text, so one alert can belong to several categories.",
            "items": {
              "type": "string",
              "enum": [
                "web",
                "linux",
                "microsoft",
                "apple",
                "mobile",
                "browser",
                "network",
                "virtualization",
                "email",
                "hardware",
                "phishing",
                "malware",
                "ddos"
              ],
              "enumTitles": [
                "Web applications and servers (WordPress, GitLab, Confluence, PHP, Log4j, …)",
                "Linux (kernel, distributions, sudo, Samba)",
                "Microsoft (Windows, Exchange, Office, SMB)",
                "Apple (iOS, macOS, Safari)",
                "Mobile devices and apps (iOS, Android, WhatsApp)",
                "Web browsers (Chrome, Firefox, Safari, Edge)",
                "Network devices and VPN (Fortinet, Cisco, Citrix, Ivanti, routers)",
                "Virtualization and backup (VMware, Veeam)",
                "E-mail (Exchange, Outlook, Zimbra, Roundcube)",
                "Hardware (processors, NAS, firmware)",
                "Phishing and scams",
                "Malware and ransomware",
                "DDoS attacks"
              ]
            },
            "default": []
          },
          "maxItemsPerSource": {
            "title": "Max alerts per source",
            "minimum": 0,
            "type": "integer",
            "description": "Safety cap on the number of alerts saved from each source in one run. When Categories are set, only matching alerts count. Use 0 for no limit.",
            "default": 20
          },
          "dateFrom": {
            "title": "Published on or after",
            "type": "string",
            "description": "Optional fixed start date (YYYY-MM-DD). When set, it overrides Period and alerts are returned even if an earlier run already saved them."
          },
          "slackWebhookUrl": {
            "title": "Slack webhook URL",
            "type": "string",
            "description": "Slack Incoming Webhook URL (https://hooks.slack.com/services/...). Create one in your Slack app under Incoming Webhooks. When set, the Actor posts a formatted message with the new alerts to that channel. Stored encrypted."
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "type": "string",
            "description": "Any http(s) URL (n8n, Make, Zapier, Microsoft Teams workflow, your own API). When set, the Actor sends one JSON POST with all new alerts at the end of the run. Stored encrypted."
          },
          "webhookHeaders": {
            "title": "Webhook headers",
            "type": "object",
            "description": "Extra HTTP headers for the webhook request, for example {\"Authorization\": \"Bearer ...\"}. Stored encrypted."
          },
          "webhookIncludeText": {
            "title": "Include full text in webhook",
            "type": "boolean",
            "description": "Send the full alert text in the webhook payload. Off by default to keep the payload small; the summary is always included. Slack messages always show only the summary.",
            "default": false
          },
          "notifyMinSeverity": {
            "title": "Minimum severity to notify",
            "enum": [
              "all",
              "low",
              "medium",
              "high",
              "critical"
            ],
            "type": "string",
            "description": "Only notify about alerts with at least this severity. All alerts are still saved to the dataset. Alerts with unknown severity (typically news and phishing notices) are sent only with \"All\".",
            "default": "all"
          },
          "notifyWhenEmpty": {
            "title": "Notify when there are no new alerts",
            "type": "boolean",
            "description": "Also send a short \"no new alerts\" message, so you know the scheduled run worked.",
            "default": false
          },
          "notificationLanguage": {
            "title": "Slack message language",
            "enum": [
              "cs",
              "en"
            ],
            "type": "string",
            "description": "Language of the Slack message labels and footer. The dataset and webhook payload use English codes (e.g. severity \"high\"), and alert titles and texts stay in Czech, because neither source publishes them in English.",
            "default": "cs"
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Maximum number of pages fetched in parallel. Both sites are small government/non-profit websites, so keep this low.",
            "default": 3
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy settings. Both sites are publicly accessible, so no proxy is needed by default.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}