{
  "openapi": "3.0.1",
  "info": {
    "title": "Phishing URL Checker API: Scam and Malicious Site Detection",
    "description": "Phishing URL checker on your own CheckPhish API key: scan a list of URLs or domains and get a disposition (phish, scam, suspicious, clean and more), targeted brand, screenshot and report link for each. Paced to the 20 requests a minute limit, with polling. Bring your own key.",
    "version": "0.1",
    "x-build-id": "9eBeyAXA4xkbIzwHU"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nabeelbaghoor~phishing-url-checker-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nabeelbaghoor-phishing-url-checker-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~phishing-url-checker-api/runs": {
      "post": {
        "operationId": "runs-sync-nabeelbaghoor-phishing-url-checker-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~phishing-url-checker-api/run-sync": {
      "post": {
        "operationId": "run-sync-nabeelbaghoor-phishing-url-checker-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 do",
            "enum": [
              "scanUrls",
              "jobStatus"
            ],
            "type": "string",
            "description": "URL scan submits each URL to the CheckPhish scanner, waits for the job and returns its disposition, targeted brand, screenshot and report link. Scan results by job ID reads jobs submitted earlier, for example scans that had not finished when a previous run stopped waiting.",
            "default": "scanUrls"
          },
          "urls": {
            "title": "URLs",
            "type": "array",
            "description": "Scan URLs only. One URL or domain per line, up to 1000 a run. A bare domain is scanned as http://domain so the scanner follows its redirects. Defanged values such as evil[.]com and hxxps:// are restored first.",
            "items": {
              "type": "string"
            }
          },
          "jobIds": {
            "title": "Job IDs",
            "type": "array",
            "description": "Scan results by job ID only. One CheckPhish job ID per line, up to 1000 a run. URL scan rows return it in the jobId column.",
            "items": {
              "type": "string"
            }
          },
          "scanType": {
            "title": "Scan type",
            "enum": [
              "full",
              "quick"
            ],
            "type": "string",
            "description": "Full or quick scan, as documented by Bolster. Full is what Bolster's own bulk scan client uses.",
            "default": "full"
          },
          "insights": {
            "title": "Include report, screenshot and resolved",
            "type": "boolean",
            "description": "Asks for the insights report link, the screenshot link and whether the URL resolved with each verdict.",
            "default": true
          },
          "apiHost": {
            "title": "API host",
            "enum": [
              "checkphish",
              "bolster"
            ],
            "type": "string",
            "description": "CheckPhish keys use developers.checkphish.ai. Bolster Platform customers use developers.bolster.ai.",
            "default": "checkphish"
          },
          "maxConcurrentScans": {
            "title": "Scans running at once",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many submitted scans are waited on at the same time. More keeps the request budget busy; the requests per minute limit still applies to every call.",
            "default": 5
          },
          "requestsPerMinute": {
            "title": "Requests per minute",
            "minimum": 1,
            "maximum": 120,
            "type": "integer",
            "description": "Pacing shared by scan and status calls. The documented limit is 20 a minute (one every 3 seconds); raise it only if Bolster raised your limit. A 429 answer is waited out and retried.",
            "default": 20
          },
          "firstCheckAfterSeconds": {
            "title": "First check after (seconds)",
            "minimum": 3,
            "maximum": 300,
            "type": "integer",
            "description": "How long to wait after submitting a URL before the first status check.",
            "default": 10
          },
          "checkIntervalSeconds": {
            "title": "Check every (seconds)",
            "minimum": 3,
            "maximum": 300,
            "type": "integer",
            "description": "How long to wait between status checks of a scan that is still PENDING.",
            "default": 10
          },
          "maxWaitSeconds": {
            "title": "Maximum wait per scan (seconds)",
            "minimum": 10,
            "maximum": 3600,
            "type": "integer",
            "description": "A scan still PENDING after this long is returned as a free row with its job ID, to read later with the job ID mode.",
            "default": 180
          },
          "apiKey": {
            "title": "API key",
            "type": "string",
            "description": "Your own CheckPhish API key, from the API page of your account at checkphish.bolster.ai (or your Bolster Platform key). Stored as a secret, sent only to the chosen API host inside the request body, and never logged. You can instead set the DATA_API_KEY environment secret."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}