{
  "openapi": "3.0.1",
  "info": {
    "title": "Company Contact Finder: Role Emails, Phones & Socials",
    "description": "Find public company role contacts (info@, sales@, support@), main phone, address and official socials from the company website. Personal-name emails never collected. Source page + MX check. Respects robots.txt. Pay only for domains with a contact found.",
    "version": "0.1",
    "x-build-id": "JowNPkv2dQ7IbZYhn"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/hani-tools~company-contact-finder/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-hani-tools-company-contact-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/hani-tools~company-contact-finder/runs": {
      "post": {
        "operationId": "runs-sync-hani-tools-company-contact-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/hani-tools~company-contact-finder/run-sync": {
      "post": {
        "operationId": "run-sync-hani-tools-company-contact-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",
        "properties": {
          "domains": {
            "title": "Company websites",
            "type": "array",
            "description": "Domains or URLs, one per line (e.g. acme.com or https://www.acme.com/contact). Each registrable domain is processed and billed at most once per run; repeated inputs get a free 'duplicate' row. Social-network, marketplace and link-in-bio URLs are rejected (company websites only).",
            "items": {
              "type": "string"
            }
          },
          "datasetId": {
            "title": "Dataset to enrich (optional)",
            "type": "string",
            "description": "Read company websites from this dataset (read-only access; the dataset is never modified). Output rows carry an inputRef with the dataset ID and item index so you can join the results back."
          },
          "datasetUrlField": {
            "title": "Website field in the dataset",
            "type": "string",
            "description": "Field that holds the website. Dot paths are allowed (e.g. company.website). Leave empty to try website, url, domain, homepage in that order.",
            "default": ""
          },
          "datasetPassthroughFields": {
            "title": "Fields to copy into the output",
            "maxItems": 5,
            "type": "array",
            "description": "Up to 5 dataset fields copied into each row's inputRef for joining (e.g. title, placeId).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxDatasetItems": {
            "title": "Max dataset items",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Read at most this many items from the dataset.",
            "default": 5000
          },
          "maxPagesPerDomain": {
            "title": "Max pages per domain",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Pages read per website, home page included. The Actor picks contact, imprint/legal and about pages first and stops early once it has a verified role email on the company's own domain and has read the contact page (if the site has one).",
            "default": 6
          },
          "contactTypes": {
            "title": "Contact types",
            "type": "array",
            "description": "What to return. Billing: a domain is billed only when at least one role email on the company's own domain or a free-mail domain (such as gmail.com) was found and its domain accepts mail (MX check). Agency or hosting-provider addresses alone are never billed. If you remove 'email', a domain is billed when at least one valid phone number was found.",
            "items": {
              "type": "string",
              "enum": [
                "email",
                "phone",
                "social",
                "address"
              ],
              "enumTitles": [
                "Role emails (info@, sales@ …)",
                "Main phone numbers",
                "Official social profiles",
                "Company address (structured data only)"
              ]
            },
            "default": [
              "email",
              "phone",
              "social",
              "address"
            ]
          },
          "excludeOptOutFlagged": {
            "title": "Exclude emails next to a 'no unsolicited email' notice",
            "type": "boolean",
            "description": "When the site says it does not want unsolicited or marketing email next to an address, leave that address out (only the count is reported). Page-wide notices are always shown with their source. Heuristic, not a legal assessment.",
            "default": true
          },
          "includeFreeMailRoleAddresses": {
            "title": "Include role addresses on free-mail domains",
            "type": "boolean",
            "description": "Keep addresses such as info.acmeplumbing@gmail.com when the part before @ starts with a role word. They are flagged freeMail: true.",
            "default": true
          },
          "includeNotFoundRows": {
            "title": "Output rows for domains without contacts",
            "type": "boolean",
            "description": "Also output free rows for domains where nothing was found, that were blocked, unreachable or invalid, so the output joins 1:1 with your input.",
            "default": true
          },
          "maxConcurrentDomains": {
            "title": "Domains in parallel",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "How many websites are processed at the same time. Each website is still read politely, one request at a time.",
            "default": 15
          },
          "perHostDelaySecs": {
            "title": "Delay between requests to one site",
            "minimum": 0.5,
            "maximum": 30,
            "type": "number",
            "description": "Seconds between two requests to the same website. A larger robots.txt Crawl-delay always wins.",
            "default": 1
          },
          "requestTimeoutSecs": {
            "title": "Request timeout",
            "minimum": 5,
            "maximum": 60,
            "type": "integer",
            "description": "Give up on a page after this many seconds.",
            "default": 15
          },
          "maxHtmlKb": {
            "title": "Max page size",
            "minimum": 64,
            "maximum": 10240,
            "type": "integer",
            "description": "Read at most this much HTML per page. Images and PDFs are never downloaded.",
            "default": 2048
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}