{
  "openapi": "3.0.1",
  "info": {
    "title": "Paste Site Keyword Leak Finder (Pastebin, Gist & More)",
    "description": "Search Pastebin, GitHub Gist, Ideone, Paste.org, and Textbin for keywords such as leaked credentials, API keys, or company names, and get back the matching paste's URL, title, and text snippet.",
    "version": "2.0",
    "x-build-id": "hHsrORXkditdhC9p6"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/vexaloom-labs~paste-site-keyword-leak-finder-pastebin-gist/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-vexaloom-labs-paste-site-keyword-leak-finder-pastebin-gist",
        "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/vexaloom-labs~paste-site-keyword-leak-finder-pastebin-gist/runs": {
      "post": {
        "operationId": "runs-sync-vexaloom-labs-paste-site-keyword-leak-finder-pastebin-gist",
        "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/vexaloom-labs~paste-site-keyword-leak-finder-pastebin-gist/run-sync": {
      "post": {
        "operationId": "run-sync-vexaloom-labs-paste-site-keyword-leak-finder-pastebin-gist",
        "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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "searchKeywords",
              "byUrls",
              "recentPastes"
            ],
            "type": "string",
            "description": "Choose how to find public pastes.",
            "default": "searchKeywords"
          },
          "searchKeywords": {
            "title": "Search keywords",
            "type": "array",
            "description": "Words or phrases to look for in public paste content (mode=searchKeywords). Each keyword is searched independently.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "startUrls": {
            "title": "Paste URLs",
            "type": "array",
            "description": "Direct links to public Pastebin, Gist, Ideone, Paste.org, or paste.gg pastes (mode=byUrls).",
            "items": {
              "type": "object",
              "properties": {
                "url": {
                  "type": "string",
                  "title": "Paste URL",
                  "description": "Public paste URL."
                }
              }
            },
            "default": []
          },
          "sources": {
            "title": "Paste sites",
            "uniqueItems": true,
            "type": "array",
            "description": "Which public paste sites to include: pastebin, gist, ideone, paste_org, paste_gg. The default is all five.",
            "items": {
              "type": "string"
            },
            "default": [
              "pastebin",
              "gist",
              "ideone",
              "paste_org",
              "paste_gg"
            ]
          },
          "maxItems": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard limit on the total number of paste records returned.",
            "default": 50
          },
          "maxItemsPerSource": {
            "title": "Maximum results per site",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Limit on how many matching pastes or recent pastes are returned from each site.",
            "default": 10
          },
          "maxPastesToScan": {
            "title": "Maximum pastes to scan",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "How many recent public pastes to inspect per site. Pastebin archive scans are capped at 250 keys per run.",
            "default": 250
          },
          "syntaxes": {
            "title": "Pastebin syntax archives",
            "uniqueItems": true,
            "type": "array",
            "description": "Optional Pastebin syntax archives to scan in addition to the main archive. Leave empty for the main archive only.",
            "items": {
              "type": "string",
              "enum": [
                "text",
                "python",
                "javascript",
                "json",
                "sql",
                "xml",
                "bash",
                "c",
                "cpp",
                "csharp",
                "java",
                "php",
                "css",
                "html",
                "ruby",
                "perl",
                "go",
                "rust",
                "typescript",
                "yaml",
                "markdown",
                "diff",
                "nginx",
                "docker",
                "powershell",
                "lua",
                "kotlin",
                "swift",
                "scala",
                "haskell"
              ],
              "enumTitles": [
                "Text",
                "Python",
                "JavaScript",
                "JSON",
                "SQL",
                "XML",
                "Bash",
                "C",
                "C++",
                "C#",
                "Java",
                "PHP",
                "CSS",
                "HTML",
                "Ruby",
                "Perl",
                "Go",
                "Rust",
                "TypeScript",
                "YAML",
                "Markdown",
                "Diff",
                "Nginx",
                "Docker",
                "PowerShell",
                "Lua",
                "Kotlin",
                "Swift",
                "Scala",
                "Haskell"
              ]
            },
            "default": []
          },
          "includeContent": {
            "title": "Include full paste text",
            "type": "boolean",
            "description": "Return the paste text (up to the character limit) in addition to the metadata. Leave off for a smaller dataset.",
            "default": false
          },
          "maxContentChars": {
            "title": "Maximum content characters",
            "minimum": 100,
            "maximum": 50000,
            "type": "integer",
            "description": "Character limit for the returned paste text when full text is enabled.",
            "default": 5000
          },
          "extractPatterns": {
            "title": "Extract regex patterns",
            "type": "array",
            "description": "Optional regular expressions to run over paste text. Matches are returned in `regexMatches`; this does not filter results.",
            "items": {
              "type": "string"
            },
            "default": []
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}