{
  "openapi": "3.0.1",
  "info": {
    "title": "Gitleaks Cloud - GitHub API Key Hunter & Secret Scanner",
    "description": "Hunt leaked API keys across GitHub. Pick a known platform (36 services: Razorpay, Stripe, AWS, OpenAI, Anthropic, Cashfree, PayU, Surepass, Decentro, Karza, Attestr, Tartan +24 more), a keyword (auto-expanded), or a regex. Scan a repo, org, or all of GitHub. PAT unlocks fast Code Search.",
    "version": "0.17",
    "x-build-id": "Ip5moswq44JUP4PlS"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/anshumanatrey~gitleaks-github-secret-scanner/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-anshumanatrey-gitleaks-github-secret-scanner",
        "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/anshumanatrey~gitleaks-github-secret-scanner/runs": {
      "post": {
        "operationId": "runs-sync-anshumanatrey-gitleaks-github-secret-scanner",
        "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/anshumanatrey~gitleaks-github-secret-scanner/run-sync": {
      "post": {
        "operationId": "run-sync-anshumanatrey-gitleaks-github-secret-scanner",
        "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": {
          "platform": {
            "title": "Secret type (platform)",
            "enum": [
              "all",
              "razorpay",
              "stripe",
              "aws",
              "gcp-api-key",
              "gcp-service-account",
              "openai",
              "anthropic",
              "groq",
              "gemini",
              "github-pat",
              "supabase",
              "firebase",
              "clerk",
              "sendgrid",
              "mailgun",
              "postmark",
              "twilio",
              "slack-bot",
              "slack-webhook",
              "discord-bot",
              "datadog",
              "pagerduty",
              "mongodb-uri",
              "postgres-uri",
              "redis-uri",
              "payu",
              "cashfree",
              "surepass",
              "decentro",
              "karza",
              "attestr",
              "tartan",
              "evm-private-key",
              "solana-private-key",
              "bitcoin-private-key",
              "bip39-mnemonic",
              "firecrawl",
              "trigger-dev",
              "jwt-generic",
              "rsa-private-key",
              "custom"
            ],
            "type": "string",
            "description": "Secret type (platform): pick the service whose leaked keys you want to find. Leave it on 'All known services' to scan for every supported credential at once (AWS, Stripe, OpenAI, Razorpay, GitHub tokens, private keys and 30+ more). Pick one service to focus the scan and cut noise.",
            "default": "all"
          },
          "target": {
            "title": "GitHub target (target)",
            "type": "string",
            "description": "GitHub target (target): a repo URL (https://github.com/owner/name), or a username / organization (octocat, microsoft). LEAVE EMPTY to scan across all of GitHub. The search area is detected from what you type, so you do not need to set anything else; add a GitHub token under Advanced for far more coverage and speed."
          },
          "search_for": {
            "title": "Search method (search_for)",
            "enum": [
              "platform",
              "keyword",
              "regex"
            ],
            "type": "string",
            "description": "Pick how you want to define the secret. 'A known platform' = use our hand-tuned rules (best accuracy). 'A keyword' = just type a word like 'anthropic', we auto-generate UPPER/snake/camel variants for you (no regex needed). 'Your own pattern' = power user, paste your own regex.",
            "default": "platform"
          },
          "keyword": {
            "title": "Search word (keyword)",
            "type": "string",
            "description": "Type one word - usually a service name or variable name. We auto-generate ~15 common patterns from it: ANTHROPIC_API_KEY, anthropic_api_key, anthropicApiKey, ANTHROPIC_SECRET, ANTHROPIC_TOKEN, etc. No regex knowledge required."
          },
          "regex_pattern": {
            "title": "Custom pattern (regex_pattern)",
            "type": "string",
            "description": "Power-user mode. Provide a regex that matches the secret value. The literal/fixed portion is used as the GitHub Code Search query; the full regex extracts the actual secret value from matching files. Examples: rzp_live_[A-Za-z0-9]{14} or sk-ant-api03-[A-Za-z0-9_-]{93}"
          },
          "platform_custom": {
            "title": "Custom service name (platform_custom)",
            "type": "string",
            "description": "Free-text label for unlisted services. Used as the display name in your output. Detection falls back to all 30 ruleset patterns merged together - gives broad coverage when we don't have a hand-tuned rule."
          },
          "additional_platforms": {
            "title": "Also scan (additional_platforms)",
            "uniqueItems": true,
            "type": "array",
            "description": "Used only in 'A known platform' mode. Pick more services to scan alongside the primary platform - useful for one-pass org audits. Each is still priced as one repo, not one per platform.",
            "items": {
              "type": "string",
              "enum": [
                "razorpay",
                "stripe",
                "aws",
                "gcp-api-key",
                "gcp-service-account",
                "openai",
                "anthropic",
                "groq",
                "gemini",
                "github-pat",
                "supabase",
                "firebase",
                "clerk",
                "sendgrid",
                "mailgun",
                "postmark",
                "twilio",
                "slack-bot",
                "slack-webhook",
                "discord-bot",
                "datadog",
                "pagerduty",
                "mongodb-uri",
                "postgres-uri",
                "redis-uri",
                "payu",
                "cashfree",
                "surepass",
                "decentro",
                "karza",
                "attestr",
                "tartan",
                "evm-private-key",
                "solana-private-key",
                "bitcoin-private-key",
                "bip39-mnemonic",
                "firecrawl",
                "trigger-dev",
                "jwt-generic",
                "rsa-private-key"
              ],
              "enumTitles": [
                "Razorpay",
                "Stripe",
                "AWS",
                "GCP API key (gcp-api-key)",
                "GCP key file (gcp-service-account)",
                "OpenAI",
                "Anthropic Claude (anthropic)",
                "Groq",
                "Gemini",
                "GitHub PAT (github-pat)",
                "Supabase",
                "Firebase",
                "Clerk",
                "SendGrid",
                "Mailgun",
                "Postmark",
                "Twilio",
                "Slack bot (slack-bot)",
                "Slack webhook (slack-webhook)",
                "Discord bot (discord-bot)",
                "Datadog",
                "PagerDuty",
                "MongoDB URI (mongodb-uri)",
                "Postgres URI (postgres-uri)",
                "Redis URI (redis-uri)",
                "PayU",
                "Cashfree",
                "Surepass",
                "Decentro",
                "Karza or Perfios (karza)",
                "Attestr",
                "Tartan",
                "EVM private key (evm-private-key)",
                "Solana keypair (solana-private-key)",
                "Bitcoin WIF (bitcoin-private-key)",
                "BIP39 mnemonic (bip39-mnemonic)",
                "Firecrawl",
                "Trigger.dev (trigger-dev)",
                "Generic JWT (jwt-generic)",
                "RSA private key (rsa-private-key)"
              ]
            }
          },
          "scope": {
            "title": "Search area (scope)",
            "enum": [
              "all_github",
              "user_or_org",
              "single_repo"
            ],
            "type": "string",
            "description": "Search area (scope): normally detected from the GitHub target above, so leave it unless you want to force it. 'All of GitHub' scans every public repo, 'A user or organization' scans every repo an owner has, 'A single repository' scans one repo URL."
          },
          "github_pat": {
            "title": "GitHub token (github_pat)",
            "type": "string",
            "description": "GitHub token (github_pat): optional personal access token, but strongly recommended. Without it GitHub allows about 10 searches a minute on a shared IP and no code search; with it you get code search, private repos and 50x the coverage. Create one at https://github.com/settings/tokens with 'public_repo' scope (or 'repo' for private). Stored encrypted, never logged."
          },
          "max_results": {
            "title": "Result limit (max_results)",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard cap on output. In fast Code Search mode = max findings to return (1-1000, GitHub's limit). In clone mode = max repos to scan. Higher = more coverage but slower and costs more. 100 is a good starting point.",
            "default": 100
          },
          "language": {
            "title": "Code language (language)",
            "type": "string",
            "description": "Narrow to repos primarily in this language. Leave blank for all languages. Common values: javascript, typescript, python, go, php, java, ruby."
          },
          "min_stars": {
            "title": "Minimum stars (min_stars)",
            "minimum": 0,
            "type": "integer",
            "description": "Only consider repos with at least N stars. Use min_stars=100 to focus on prominent production repos."
          },
          "max_stars": {
            "title": "Maximum stars (max_stars)",
            "minimum": 0,
            "type": "integer",
            "description": "Only consider repos with at most N stars. Use max_stars=5 with pushed_before=2 years ago to target low-attention forgotten repos - much higher hit rate of unrotated keys than scanning popular repos."
          },
          "pushed_after": {
            "title": "Pushed after (pushed_after)",
            "type": "string",
            "description": "Date filter for repo discovery. Only include repos with last push on or after this date. Format: YYYY-MM-DD. Use to focus on fresh leaks."
          },
          "pushed_before": {
            "title": "Pushed before (pushed_before)",
            "type": "string",
            "description": "The goldmine filter. Set this to 1-2 years ago + Maximum stars = 5 → catches forgotten amateur repos where keys were never rotated and nobody else is looking. Format: YYYY-MM-DD."
          },
          "include_extensions": {
            "title": "File types (include_extensions)",
            "uniqueItems": true,
            "type": "array",
            "description": "Whitelist of file extensions or filenames. Examples: .env, .yml, .json, Dockerfile. When set, findings in other files are filtered out. Empty = scan everything.",
            "items": {
              "type": "string"
            }
          },
          "include_test_keys": {
            "title": "Include test keys (include_test_keys)",
            "type": "boolean",
            "description": "Test-mode keys (rzp_test_*, sk_test_*, pk_test_*) are public by design and harmless if leaked. Default ON for completeness. Uncheck to filter them out and only show real (live) keys.",
            "default": true
          },
          "max_file_size_mb": {
            "title": "File size limit (max_file_size_mb)",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Avoid scanning huge binaries. Default 100 MB. Lower = faster scan, may miss leaks in big config dumps.",
            "default": 100
          },
          "include_pr_refs": {
            "title": "Scan PR branches (include_pr_refs)",
            "type": "boolean",
            "description": "Catches secrets that were pushed to a Pull Request and then squash-merged away - the PR head ref still holds them. Default ON. Slight slowdown per repo.",
            "default": true
          },
          "include_all_branches": {
            "title": "Scan all branches (include_all_branches)",
            "type": "boolean",
            "description": "Clones with --no-single-branch so feature branches are also scanned. Default ON.",
            "default": true
          },
          "include_submodules": {
            "title": "Scan submodules (include_submodules)",
            "type": "boolean",
            "description": "Adds --recurse-submodules. Catches nested repos with their own .env files. Off by default - can be very slow on big projects.",
            "default": false
          },
          "include_dangling_objects": {
            "title": "Lost commits (include_dangling_objects)",
            "type": "boolean",
            "description": "Uses git fsck --dangling to find commits the developer tried to delete via rebase but didn't garbage-collect. Off by default - adds ~30s per repo.",
            "default": false
          },
          "commit_since": {
            "title": "Commits after (commit_since)",
            "type": "string",
            "description": "Filter on commit date, not repo discovery date. Format YYYY-MM-DD. Catches only recently-introduced leaks."
          },
          "commit_until": {
            "title": "Commits before (commit_until)",
            "type": "string",
            "description": "Filter on commit date. Pair with commit_since for a date window."
          },
          "commit_author": {
            "title": "Commit author (commit_author)",
            "type": "string",
            "description": "Filter by author name/email. Example: 'alice' or '.*@example\\.com'. Useful when auditing a specific developer."
          },
          "commit_message_grep": {
            "title": "Commit message (commit_message_grep)",
            "type": "string",
            "description": "Filter by commit message regex. Example: 'wip|temp|test|hack' to surface sloppy commits where leaks usually slip in."
          },
          "commit_introduced_string": {
            "title": "Added text (commit_introduced_string)",
            "type": "string",
            "description": "Fastest historical search possible. Example: 'rzp_live_' finds only commits where this string first appeared anywhere. Massive speedup vs full history scan."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}