{
  "openapi": "3.0.1",
  "info": {
    "title": "Domain & Brand Trust Check",
    "description": "Check registration, TLS, email, DNS, and HTTP headers for domains you manage, plus a bounded lookalike scan. Each check is charged on its own. Watch mode returns changes and upcoming expiries.",
    "version": "0.1",
    "x-build-id": "Y8ukUP6k6d7hqKCgc"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/mikee368~domain-brand-trust/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-mikee368-domain-brand-trust",
        "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/mikee368~domain-brand-trust/runs": {
      "post": {
        "operationId": "runs-sync-mikee368-domain-brand-trust",
        "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/mikee368~domain-brand-trust/run-sync": {
      "post": {
        "operationId": "run-sync-mikee368-domain-brand-trust",
        "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": {
          "domains": {
            "title": "Domains you manage",
            "type": "array",
            "description": "Domain names you or your client administer, one per line. A string is split on whitespace and commas. At most 200 names per run. This is not a lead list.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "checks": {
            "title": "Checks",
            "type": "array",
            "description": "Each selected check is charged separately when it returns an answer. Unknown names are ignored. gdpr calls the Actor in GDPR Actor ID and stays off when that field is empty.",
            "items": {
              "type": "string",
              "enum": [
                "rdap",
                "tls",
                "email",
                "dns",
                "http",
                "lookalike",
                "gdpr"
              ],
              "enumTitles": [
                "RDAP registration",
                "TLS certificate",
                "Email security",
                "DNSSEC and CAA",
                "HTTP security headers",
                "Lookalike domains",
                "GDPR pre-consent hook"
              ]
            },
            "default": [
              "rdap",
              "tls",
              "email",
              "dns",
              "http",
              "lookalike"
            ]
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "report",
              "watch"
            ],
            "type": "string",
            "description": "report stores one trust row per domain. watch stores a snapshot for this Monitor ID and, on a later run, returns only changes and upcoming expiries.",
            "default": "report"
          },
          "monitorId": {
            "title": "Monitor ID",
            "type": "string",
            "description": "Name of the saved watch snapshot. Use one ID per client list. State is in the named key-value store domain-brand-trust-state, keys seen-<id> and meta-<id>. The snapshot stays until you delete it.",
            "default": "default"
          },
          "expiryWithinDays": {
            "title": "Expiry window (days)",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Registration or certificate dates inside this window become a finding, and in watch mode an expiry alert once per date.",
            "default": 30
          },
          "lookalikeRecentDays": {
            "title": "Lookalike recent window (days)",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "A lookalike whose RDAP creation date is inside this window is reported as recently registered.",
            "default": 365
          },
          "maxLookalikes": {
            "title": "Lookalike names to check",
            "minimum": 1,
            "maximum": 40,
            "type": "integer",
            "description": "How many generated lookalike names get a DNS lookup. Hard maximum 40.",
            "default": 24
          },
          "maxLookalikeRdap": {
            "title": "Lookalike RDAP lookups",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "RDAP is queried only for lookalikes that answer DNS, and only up to this many. Hard maximum 8.",
            "default": 5
          },
          "dkimSelectors": {
            "title": "Extra DKIM selectors",
            "type": "array",
            "description": "Added after the built-in selectors (google, selector1, selector2, s1, s2, k1, default, mail). The combined list is capped at 12.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxDomains": {
            "title": "Domain cap",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Maximum domains checked this run. Hard maximum 200. Further names are not checked.",
            "default": 25
          },
          "requestTimeoutSecs": {
            "title": "Request timeout (seconds)",
            "minimum": 3,
            "maximum": 30,
            "type": "integer",
            "description": "Timeout for one DNS, HTTP, or TLS connection.",
            "default": 12
          },
          "gdprActorId": {
            "title": "GDPR Actor ID",
            "type": "string",
            "description": "Optional. When the gdpr check is selected, this Actor is called with {url, domain, purpose: pre-consent-trackers}, using this run's token. Any Actor id is accepted, and that Actor's usage is charged to the caller. Leave empty to skip the hook.",
            "default": ""
          },
          "gdprTimeoutSecs": {
            "title": "GDPR hook timeout (seconds)",
            "minimum": 5,
            "maximum": 40,
            "type": "integer",
            "description": "How long to wait for the GDPR Actor. Capped at 40 seconds.",
            "default": 25
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "type": "string",
            "description": "Watch mode only. HTTPS on port 443, with a public hostname, no userinfo, and no IP, localhost, metadata host, or internal suffix. The DIGEST JSON is POSTed when a run has alerts.",
            "default": ""
          },
          "notifyWhenEmpty": {
            "title": "Notify when nothing changed",
            "type": "boolean",
            "description": "Also POST the webhook after a watch run that found no alerts.",
            "default": false
          },
          "resetState": {
            "title": "Reset saved watch state",
            "type": "boolean",
            "description": "Ignore the saved snapshot for this Monitor ID and store a new baseline. No alerts are emitted on that run.",
            "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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}