{
  "openapi": "3.0.1",
  "info": {
    "title": "Data Breach Check API: Email, Domain and Password Exposure",
    "description": "Data breach check API on your own Enzoic account: breach exposures for emails and domains, exposed users of your domain, new breaches by date, compromised password check by partial hash (never plaintext) and exposed cards for your monitored BINs. Bring your own key.",
    "version": "0.1",
    "x-build-id": "vxSUxvypZep3dMa07"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nabeelbaghoor~data-breach-check-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nabeelbaghoor-data-breach-check-api",
        "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/nabeelbaghoor~data-breach-check-api/runs": {
      "post": {
        "operationId": "runs-sync-nabeelbaghoor-data-breach-check-api",
        "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/nabeelbaghoor~data-breach-check-api/run-sync": {
      "post": {
        "operationId": "run-sync-nabeelbaghoor-data-breach-check-api",
        "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": {
          "mode": {
            "title": "What to check",
            "enum": [
              "emailExposures",
              "domainExposures",
              "domainUsers",
              "recentExposures",
              "exposureDetails",
              "passwordCheck",
              "binExposures"
            ],
            "type": "string",
            "description": "Each mode calls one documented read-only route of the Enzoic API with your own key. Nothing is added to or removed from monitoring in your Enzoic account. Check your own users, staff, domains and BINs only.",
            "default": "emailExposures"
          },
          "apiKey": {
            "title": "Enzoic API key",
            "type": "string",
            "description": "Your own Enzoic API key, from your Enzoic account. It is sent only in the Basic Authorization header and removed from every log line. You can also paste key:secret here and leave the secret empty. Leave empty to use the DATA_API_KEY secret, set to key:secret."
          },
          "apiSecret": {
            "title": "Enzoic API secret",
            "type": "string",
            "description": "The API secret that belongs to the key above."
          },
          "emails": {
            "title": "Email addresses",
            "type": "array",
            "description": "Breach exposures for email addresses only. One address per line, up to 1,000 a run, sent in batches of 50.",
            "items": {
              "type": "string"
            }
          },
          "hashEmails": {
            "title": "Send emails as hashes",
            "type": "boolean",
            "description": "Breach exposures for email addresses only. On: each address is sent as the SHA-256 hash of the lowercased address, as the Enzoic docs recommend, so the plain address never leaves the run. Off: the plain address is sent.",
            "default": true
          },
          "domains": {
            "title": "Domains",
            "type": "array",
            "description": "Exposures for a domain and exposed users of a domain. One domain you own per line, such as example.com.",
            "items": {
              "type": "string"
            }
          },
          "exposureIds": {
            "title": "Exposure IDs",
            "type": "array",
            "description": "Exposure details only. One exposure ID per line, as the exposureId or exposureIds columns of the other modes return them.",
            "items": {
              "type": "string"
            }
          },
          "passwords": {
            "title": "Passwords",
            "type": "string",
            "description": "Compromised password check only. One password per line, up to 1,000. Each is hashed with SHA-256 inside the run and only the first 10 hex characters of the hash are sent to Enzoic. The dataset shows each password by its line number, never the password or its hash."
          },
          "startDate": {
            "title": "From date",
            "type": "string",
            "description": "Only exposures (or BIN card finds) on or after this date: YYYY-MM-DD, a full ISO-8601 timestamp, or days back such as 30d. New exposures by date needs it within the last 30 days and defaults to 7d."
          },
          "endDate": {
            "title": "To date",
            "type": "string",
            "description": "Only exposures (or BIN card finds) on or before this date: YYYY-MM-DD, a full ISO-8601 timestamp, or days back such as 1d. Not used by New exposures by date. A BIN range may span at most 30 days."
          },
          "includeNonCredentialsExposures": {
            "title": "Include exposures without credentials",
            "type": "boolean",
            "description": "New exposures by date only. Also return exposures that held personal data but no usernames or passwords.",
            "default": false
          },
          "includeRawMatchSource": {
            "title": "Include raw match snippet",
            "type": "boolean",
            "description": "Exposed payment cards only. Add the text snippet from the breach source around each card number. Enzoic warns this can be slow on large result sets.",
            "default": false
          },
          "showFullCardNumbers": {
            "title": "Show full card numbers",
            "type": "boolean",
            "description": "Exposed payment cards only. Off: card numbers, in the row and in the snippet, are masked to the first 6 and last 4 digits. On: they are kept whole.",
            "default": false
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "The most rows this run returns in total, across all values. Each row with data is one charged result, so a low cap also limits cost and Enzoic API calls.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}