{
  "openapi": "3.0.1",
  "info": {
    "title": "Bulk Email Validator: Syntax, MX, Disposable, Role & Typo Check",
    "description": "Clean email lists without sending a single email: syntax check, typo suggestions (gmial.com to gmail.com), MX records, disposable domains, role accounts, free providers, SPF and DMARC. Valid / risky / invalid with a reason. No SMTP probing.",
    "version": "0.1",
    "x-build-id": "QlcYkX315TrBjIbyt"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/latamdatatools~email-validator-bulk/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-latamdatatools-email-validator-bulk",
        "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/latamdatatools~email-validator-bulk/runs": {
      "post": {
        "operationId": "runs-sync-latamdatatools-email-validator-bulk",
        "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/latamdatatools~email-validator-bulk/run-sync": {
      "post": {
        "operationId": "run-sync-latamdatatools-email-validator-bulk",
        "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": "Email addresses",
            "type": "array",
            "description": "One email per line. Messy values are cleaned: spaces, upper-case domains, \"Name <email>\", mailto: links and trailing dots. A line with several emails separated by ; or , gives one row per email.",
            "items": {
              "type": "string"
            }
          },
          "datasetId": {
            "title": "Dataset (from another Actor run)",
            "type": "string",
            "description": "Optional: validate the emails stored in an Apify dataset, for example the output of a lead or contact scraper. Pick the dataset or paste its ID. Use \"Email field\" to say which field holds the email."
          },
          "csvUrl": {
            "title": "CSV file URL",
            "type": "string",
            "description": "Optional: a public URL of a CSV file with a header row (comma, semicolon, tab or | separated, up to 50 MB). Google Sheets links work too if the sheet is shared as \"Anyone with the link\"."
          },
          "emailField": {
            "title": "Email field",
            "type": "string",
            "description": "Name of the field / CSV column that holds the email, e.g. email, Email, contact.email (dot notation for nested fields). A field with a list of emails, or emails separated by ; gives one row per email.",
            "default": "email"
          },
          "keepFields": {
            "title": "Fields to keep from the source",
            "type": "array",
            "description": "Optional: copy these fields of each dataset record / CSV row into the output (under \"source\"), e.g. name, company, id, so you can join the results back.",
            "items": {
              "type": "string"
            }
          },
          "checkDns": {
            "title": "Check the domain's mail servers (MX)",
            "type": "boolean",
            "description": "Look up the MX records of each domain (falling back to A/AAAA). Turn off for a syntax-only check. Lookups are cached per domain, so thousands of emails on the same domain cost one lookup.",
            "default": true
          },
          "checkSpfDmarc": {
            "title": "Check SPF and DMARC of the domain",
            "type": "boolean",
            "description": "Read the domain's SPF record and DMARC policy (two more DNS lookups per domain). Useful to see how seriously a domain handles email.",
            "default": true
          },
          "duplicates": {
            "title": "Duplicates",
            "enum": [
              "flag",
              "skip"
            ],
            "type": "string",
            "description": "Two inputs are duplicates when they are the same email after cleaning (case-insensitive). Flag them (isDuplicate = true, duplicateOf = first input) or leave them out of the results (not charged).",
            "default": "flag"
          },
          "includeInvalid": {
            "title": "Include invalid emails in the results",
            "type": "boolean",
            "description": "When off, invalid emails are left out of the results (and not charged). They are still counted in RUN_SUMMARY.",
            "default": true
          },
          "includeRisky": {
            "title": "Include risky emails in the results",
            "type": "boolean",
            "description": "When off, risky emails (disposable, role accounts, likely typos, no MX record) are left out of the results (and not charged).",
            "default": true
          },
          "maxConcurrency": {
            "title": "Domains looked up in parallel",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many new domains are looked up at the same time.",
            "default": 20
          },
          "dnsTimeoutSecs": {
            "title": "DNS timeout (seconds)",
            "minimum": 3,
            "maximum": 30,
            "type": "integer",
            "description": "Per DNS query. Domains whose lookup fails get status \"unknown\" and are not charged.",
            "default": 8
          },
          "maxEmails": {
            "title": "Max emails",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Upper limit of emails to process in one run. 0 = no limit (up to 1,000,000). Your max charge per run is respected too.",
            "default": 0
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}