{
  "openapi": "3.0.1",
  "info": {
    "title": "Email Pattern Finder",
    "description": "Email pattern finder and email guesser. Work email finder by name and domain: find work emails as ranked guesses in a company's work email format. Company email format finder: reads company pages for the company employee email format, or ranks common ones to guess email format by company. MX check.",
    "version": "0.1",
    "x-build-id": "uXfcPiUfOUH9BXgaz"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/flash_scraper~email-pattern-finder/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-flash_scraper-email-pattern-finder",
        "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/flash_scraper~email-pattern-finder/runs": {
      "post": {
        "operationId": "runs-sync-flash_scraper-email-pattern-finder",
        "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/flash_scraper~email-pattern-finder/run-sync": {
      "post": {
        "operationId": "run-sync-flash_scraper-email-pattern-finder",
        "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": [
          "domain",
          "names"
        ],
        "properties": {
          "domain": {
            "title": "Company domain",
            "type": "string",
            "description": "The company's email domain, e.g. 'acme.com'. A full URL ('https://www.acme.com/about'), a port or a pasted address ('jane@acme.com') is reduced to the bare domain. One domain here; for people at several companies in one run, use 'People with their company domains' below.",
            "default": "stripe.com"
          },
          "names": {
            "title": "Full names",
            "type": "array",
            "description": "People to generate addresses for, one full name per line (e.g. 'Jane Doe'). Titles and credentials ('Dr.', 'PhD', 'Jr.') and parenthesised notes are stripped; duplicates are skipped; a single-word name only gets the 'first' pattern. Each usable name is one billed row. With entries in 'People with their company domains', the exact placeholder list (Jane Doe, John Smith) is ignored.",
            "default": [
              "Jane Doe",
              "John Smith"
            ],
            "items": {
              "type": "string"
            }
          },
          "people": {
            "title": "People with their company domains",
            "type": "array",
            "description": "Optional: one \"Name, domain\" per line (e.g. 'Jane Doe, acme.com'), with only the name before the domain; a tab, ';' or '|' also works as the separator. Via the API an entry can also be {\"name\": \"Jane Doe\", \"domain\": \"acme.com\"}. People are grouped by domain - at most one MX lookup and one site read per domain - up to 100 domains and 5,000 people per run. 'Company domain' + 'Full names' are added to this list and duplicates removed; a 'Full names' list that is exactly the placeholder (Jane Doe, John Smith) is ignored when this list has entries, so leave it as it is to process only this list (an empty list is a single-domain run). Skipped entries (e.g. no name, no or bad domain, a full name followed by another column - a job title, a company or a second name; a credential such as 'PhD' may follow) and people over the cap or out of run time are never billed, and neither is a duplicate - each delivered person is one billed row. A run that delivers rows counts the skipped entries and the people left out in its status message; RUN_SUMMARY has the counts.",
            "items": {
              "type": "string"
            }
          },
          "verifyMx": {
            "title": "Check domain MX",
            "type": "boolean",
            "description": "Look up the domain's MX records (DNS-over-HTTPS) to confirm it can receive mail and detect the provider (Google Workspace, Microsoft 365, ...). No MX record cuts every confidence to 60%; a lookup that cannot complete leaves mx_found null and confidences unchanged (see mx_status). No mailbox probing, no email sent.",
            "default": true
          },
          "crawlForPattern": {
            "title": "Detect pattern from website",
            "type": "boolean",
            "description": "Read up to 9 public pages of the company site (home, about, team, contact, ...) for real same-domain addresses and infer the company's ACTUAL pattern from them - evidence, not priors. Only addresses in mailto: links or visible page text count; one that appears only inside a script or JSON data (a demo's sample customer, say) is ignored. An observed pattern is promoted to 98 confidence and flagged 'observed' for every name. Role aliases on the built-in list (info@, sales@, investor.relations@, human.resources@, ...) are not used as evidence. pages_crawled tells you whether the site could be read at all.",
            "default": true
          },
          "maxCandidatesPerPerson": {
            "title": "Max candidates per person",
            "minimum": 1,
            "maximum": 12,
            "type": "integer",
            "description": "How many ranked addresses to return per person (1-12). The observed pattern, when there is one, is always in the list.",
            "default": 6
          },
          "patterns": {
            "title": "Limit to specific patterns",
            "type": "array",
            "description": "Optional: only generate these pattern ids. Valid ids: first.last, flast, firstlast, f.last, first, first_last, firstl, first-last, lastfirst, last.first, lfirst, last. Unknown ids are ignored; leave empty for all 12.",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}