{
  "openapi": "3.0.1",
  "info": {
    "title": "Data Breach Alerts: Washington & Delaware AG Breach Notices",
    "description": "Which organisations just filed a data breach notice, how many people were affected and what data was exposed: Washington and Delaware attorney general notices in one flat table, with a company watchlist, data-type and industry filters and only-new alerts. Organisations only, no emails.",
    "version": "0.1",
    "x-build-id": "7XbJRqZt79YtpJB3T"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dottti~data-breach-alerts/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dottti-data-breach-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/dottti~data-breach-alerts/runs": {
      "post": {
        "operationId": "runs-sync-dottti-data-breach-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/dottti~data-breach-alerts/run-sync": {
      "post": {
        "operationId": "run-sync-dottti-data-breach-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": {
          "watchlist": {
            "title": "Watchlist: organisations, domains or keywords",
            "type": "array",
            "description": "One entry per line: a company or organisation name (Uber, Revolve Group), a domain (harvard.edu) or a keyword (hospital, school district). Names and keywords match whole words in the organisation name; a domain matches the organisation's name in the notices. Use it for vendor-risk lists, portfolio companies or clients. Email addresses are refused: this actor never looks up people. Empty = every breach in the time window.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "title": "Sources",
            "type": "array",
            "description": "washington = Washington State Attorney General notices (breaches affecting 500+ Washington residents, with industry, cause and data types); delaware = Delaware Attorney General notices (with total people affected and a link to the notice letter). Empty = both.",
            "items": {
              "type": "string",
              "enum": [
                "washington",
                "delaware"
              ],
              "enumTitles": [
                "Washington AG",
                "Delaware AG"
              ]
            },
            "default": [
              "washington",
              "delaware"
            ]
          },
          "sinceDays": {
            "title": "Reported in the last N days",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Only breaches whose notice was filed with the attorney general (or updated by a supplemental notice) in this many days. For a daily alert schedule keep 30 with Only new on.",
            "default": 30
          },
          "minRecordsAffected": {
            "title": "Minimum people or accounts affected",
            "minimum": 0,
            "type": "integer",
            "description": "Skip smaller breaches. Compared with recordsAffected (Delaware total people affected) or, when only the state count is known, residentsAffected. 0 = no limit.",
            "default": 0
          },
          "dataTypes": {
            "title": "Only breaches exposing these data types",
            "type": "array",
            "description": "Keep breaches that exposed at least one of these: ssn, taxpayer_id, drivers_license, passport, government_id, payment_card, financial_account, medical, health_insurance, biometric, date_of_birth, name, email, password, username, phone, address, ip_address, student_id, employment, other. Plain words work too (SSN, medical, financial, credit card, credentials).",
            "items": {
              "type": "string"
            }
          },
          "industries": {
            "title": "Only these industries",
            "type": "array",
            "description": "Keep breaches whose industry contains one of these words. Industry is given by the Washington list (Health, Finance, Education, Government, Business, Non-Profit/Charity, plus a business type). Rows without an industry (Delaware) are left out when this is set.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max breaches per run",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Stop after this many breach rows. When there are more, the cut is shared evenly across sources, newest first.",
            "default": 100
          },
          "onlyNew": {
            "title": "Only new breaches (alerts)",
            "type": "boolean",
            "description": "Return (and charge for) only breaches not delivered by an earlier run with the same alert name. A Delaware supplemental notice with new numbers counts as new. Use with a schedule and a Slack or email integration.",
            "default": false
          },
          "alertName": {
            "title": "Alert name",
            "type": "string",
            "description": "Name of the memory used by Only new. Use a different name for each watchlist or schedule.",
            "default": "default"
          },
          "requestDelayMs": {
            "title": "Delay between requests (ms)",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Pause before each request, to stay polite to each source.",
            "default": 300
          },
          "maxRetries": {
            "title": "Max retries",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Retries per request on network errors, 429 and 5xx answers.",
            "default": 3
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}