{
  "openapi": "3.0.1",
  "info": {
    "title": "CheckLeaked.cc — Breach & OSINT Suite",
    "description": "Full CheckLeaked.cc API as an Apify actor: Dehashed, Experimental (Snusbase), LeakCheck, Crack Hash, IP Lookup, Google Hunt (GHunt), plus a combined OSINT report mode that fans out every identifier across every service in a single run.",
    "version": "1.0",
    "x-build-id": "REwgYQ9KyVFbETnur"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/eduair94~checkleaked-cc/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-eduair94-checkleaked-cc",
        "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/eduair94~checkleaked-cc/runs": {
      "post": {
        "operationId": "runs-sync-eduair94-checkleaked-cc",
        "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/eduair94~checkleaked-cc/run-sync": {
      "post": {
        "operationId": "run-sync-eduair94-checkleaked-cc",
        "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",
        "required": [
          "mode"
        ],
        "properties": {
          "apiKey": {
            "title": "CheckLeaked.cc bot API key",
            "type": "string",
            "description": "Your bot token from https://checkleaked.cc/botLinks — sent as the `api-key` header on every request. Required for: dehashed, experimental, crack_hash, ip_lookup, ghunt and osint_report modes."
          },
          "leakCheckKey": {
            "title": "LeakCheck.io API key (only for `leak_check` mode)",
            "type": "string",
            "description": "Your third-party LeakCheck.io key. Required only for the `leak_check` mode. NOTE: the CheckLeaked.cc upstream also requires you to whitelist IP `192.126.161.211` in your LeakCheck.io dashboard (the actor uses that gateway)."
          },
          "mode": {
            "title": "Search mode",
            "enum": [
              "dehashed",
              "experimental",
              "leak_check",
              "crack_hash",
              "ip_lookup",
              "ghunt",
              "osint_report"
            ],
            "type": "string",
            "description": "Which CheckLeaked.cc endpoint to call.\n\n- **dehashed** — POST /api/dehashed (paginated, Pro/Plus unlocks passwords & hashes)\n- **experimental** — POST /api/experimental (Snusbase-backed, `loadAll` auto-expands truncated rows)\n- **leak_check** — GET /api/leak_check (fast breach lookup; needs LeakCheck.io key)\n- **crack_hash** — POST /api/crack_hash (rainbow-table style MD5/SHA hash reverse)\n- **ip_lookup** — GET /api/ip (geolocation + ASN + threat data)\n- **ghunt** — GET /api/ghunt (Gmail OSINT, Pro/Plus only)\n- **osint_report** — **combined mode**: for every input identifier run every compatible endpoint above and emit one merged record per identifier. Highest-value mode.",
            "default": "osint_report"
          },
          "queries": {
            "title": "Queries to run",
            "type": "array",
            "description": "One row per lookup. Each row has an `entry` (the value to look up) and a `type` (how to interpret it). In `osint_report` mode the `type` is optional — if omitted, the actor detects it automatically (email / ip / hash / phone / username).\n\nAllowed `type` values per mode:\n- dehashed: email, username, ip_address, name, address, phone, vin, free\n- experimental: email, username, mass, password, name, hash, lastip\n- leak_check: auto, email, username, keyword, domain, phone, hash, password, origin, phash (plus legacy: mass, login, pass_email, domain_email, pass_login)\n- crack_hash: (type ignored — `entry` must be the hash itself)\n- ip_lookup: (type ignored — `entry` must be an IPv4/IPv6 address; leave entry empty to look up the actor's own IP)\n- ghunt: (type ignored — `entry` must be a Gmail address)\n- osint_report: any of the above; auto-detected if type omitted",
            "default": []
          },
          "singleEntry": {
            "title": "Single entry (shortcut)",
            "type": "string",
            "description": "Convenience field — if `queries` is empty, the actor treats this as a single query with the `singleType` below. Ideal for one-shot API calls / Zapier / Make integrations."
          },
          "singleType": {
            "title": "Single entry type (shortcut)",
            "type": "string",
            "description": "Type for `singleEntry`. Leave empty for auto-detect (only valid in `osint_report` / `leak_check`)."
          },
          "startPage": {
            "title": "Start page (dehashed)",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "First page to fetch in `dehashed` mode. Ignored by every other mode.",
            "default": 1
          },
          "maxPages": {
            "title": "Max pages per query (dehashed)",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Hard cap on pages fetched per query in `dehashed` mode. The actor stops earlier if a page returns zero entries. Set to 1 to disable auto-pagination.",
            "default": 5
          },
          "loadAll": {
            "title": "Load all (experimental)",
            "type": "boolean",
            "description": "When true and mode is `experimental` or `osint_report`, the actor appends `?loadAll=true` so CheckLeaked.cc auto-expands every truncated row into its full breach record. Requires a Pro/Plus subscription on CheckLeaked.cc.",
            "default": false
          },
          "includeRawResponse": {
            "title": "Include raw upstream response",
            "type": "boolean",
            "description": "If true, every dataset item keeps a `raw` field with the untouched upstream JSON. Handy for debugging / schema discovery; doubles dataset size.",
            "default": false
          },
          "maskPasswords": {
            "title": "Mask passwords & hashes in output",
            "type": "boolean",
            "description": "Redact `password`, `hashed_password` and `hash` fields before writing to the dataset. Use this when the Apify run output will be shared with non-privileged viewers.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Max concurrent requests",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many upstream requests run in parallel. CheckLeaked.cc enforces per-plan cooldowns; keep this ≤ 3 for Free, ≤ 10 for Plus, ≤ 25 for Pro. See pricing section of the README.",
            "default": 3
          },
          "delayMs": {
            "title": "Delay between requests (ms)",
            "minimum": 0,
            "maximum": 600000,
            "type": "integer",
            "description": "Sleep added after each completed request per worker. Use to stay under the per-plan cooldown (Free = 10s, Plus = 2s, Pro = 0s).",
            "default": 0
          },
          "maxRetries": {
            "title": "Max retries per request",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "On 429 / 5xx / network errors the actor retries with exponential backoff.",
            "default": 4
          },
          "requestTimeoutSecs": {
            "title": "Request timeout (seconds)",
            "minimum": 10,
            "maximum": 1800,
            "type": "integer",
            "description": "Per-request HTTP timeout. Dehashed can be slow on cold cache — keep ≥ 120.",
            "default": 180
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Optional Apify proxy. CheckLeaked.cc does not require one (auth is by API key), but a proxy can help if your plan has IP-based cooldowns or you want to rotate outbound IPs.",
            "default": {
              "useApifyProxy": false
            }
          },
          "stopOnError": {
            "title": "Stop on first hard error",
            "type": "boolean",
            "description": "If true, the actor aborts the run on any 4xx that isn't 404/429. If false, errors are written to the dataset as records of type `error` and the run continues.",
            "default": 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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}