{
  "openapi": "3.0.1",
  "info": {
    "title": "Email List Cleaner & Validator: MX, Disposable & Role",
    "description": "Clean a lead list or Website Contact Finder output. This email list cleaner and validator checks syntax, MX/DNS, disposable domains, role-based addresses and likely typos. Honest status: deliverable_domain, invalid, risky or unknown. Not a mailbox check; SMTP is off by default on Apify.",
    "version": "0.1",
    "x-build-id": "GrMYfWU8F8OIkaqNy"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/datacolada~email-list-cleaner/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-datacolada-email-list-cleaner",
        "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/datacolada~email-list-cleaner/runs": {
      "post": {
        "operationId": "runs-sync-datacolada-email-list-cleaner",
        "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/datacolada~email-list-cleaner/run-sync": {
      "post": {
        "operationId": "run-sync-datacolada-email-list-cleaner",
        "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": {
          "emails": {
            "title": "Emails",
            "type": "array",
            "description": "Email addresses to clean, one per line. You can also point this Actor at a Website Contact Finder dataset below. Up to 50,000 unique addresses per run.",
            "items": {
              "type": "string"
            }
          },
          "datasetId": {
            "title": "Apify dataset ID",
            "type": "string",
            "description": "Optional. Read emails from an existing Apify dataset, for example a Website Contact Finder run. Pick a dataset you have access to, or paste its ID. Emails are taken from the field set below (default 'email'), and also from Contact Finder fields: emails, primaryEmail, email and emailDetails. You can use this instead of, or together with, the Emails list."
          },
          "emailField": {
            "title": "Email field in the dataset",
            "type": "string",
            "description": "Field to read when the dataset is not Contact Finder-shaped. Default 'email'. Contact Finder rows are always understood: this Actor also reads 'emails' arrays, 'primaryEmail', and 'emailDetails'. Use a dotted path for nested fields (e.g. contact.email).",
            "default": "email"
          },
          "items": {
            "title": "Items with emails",
            "type": "array",
            "description": "Optional. Array of objects, e.g. Contact Finder rows, each with an 'emails' array, 'primaryEmail', 'email', or 'emailDetails'. Used when piping results from another actor."
          },
          "smtpCheck": {
            "title": "Try SMTP mailbox check",
            "type": "boolean",
            "description": "Optional and off by default. Not a standard cleaning step. Talks to the domain's mail server (RCPT TO, no email is sent). Outbound port 25 is blocked on Apify, so this usually times out there. Leave it off unless you are running somewhere port 25 is open. A 'valid' status is only used when the server accepts the address and a catch-all check is also on and negative.",
            "default": false
          },
          "detectCatchAll": {
            "title": "Detect catch-all domains",
            "type": "boolean",
            "description": "Only used when SMTP mailbox check is on. Probes a random address at the same domain to see if the server accepts everything. If it does, the original address is marked risky (catch-all), not valid. Default off. Has no effect on Apify while port 25 is blocked.",
            "default": false
          },
          "normalizeGmail": {
            "title": "Normalize Gmail and similar addresses",
            "type": "boolean",
            "description": "Treat jane.doe+tag@gmail.com and janedoe@gmail.com as the same address (dots and plus-tags on Gmail, Googlemail, Outlook, Hotmail, Live, iCloud and Proton). Default true.",
            "default": true
          },
          "maxConcurrency": {
            "title": "Checks in parallel",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many emails to process at once. DNS is cached per domain. SMTP, when enabled, uses a lower internal cap so mail servers are not hammered. Default 25.",
            "default": 25
          },
          "timeoutSecs": {
            "title": "Lookup timeout (seconds)",
            "minimum": 2,
            "maximum": 30,
            "type": "integer",
            "description": "Give up on a DNS or SMTP lookup after this many seconds. Default 8.",
            "default": 8
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}