{
  "openapi": "3.0.1",
  "info": {
    "title": "Company Contact & Enrichment: Emails, Phones, Socials, LEI",
    "description": "AI-agent & MCP ready: turn company domains into one JSON record each with business emails (MX-checked), E.164 phones, social profiles, LEI and SEC CIK, each with confidence and source URL. Domains with no contacts are free.",
    "version": "0.1",
    "x-build-id": "4sS5TGAznVlugqguk"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/clearfeedlabs~company-contact-enrichment/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-clearfeedlabs-company-contact-enrichment",
        "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/clearfeedlabs~company-contact-enrichment/runs": {
      "post": {
        "operationId": "runs-sync-clearfeedlabs-company-contact-enrichment",
        "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/clearfeedlabs~company-contact-enrichment/run-sync": {
      "post": {
        "operationId": "run-sync-clearfeedlabs-company-contact-enrichment",
        "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": [
          "domains"
        ],
        "properties": {
          "domains": {
            "title": "Company domains or websites",
            "type": "array",
            "description": "One per line: a domain (acme.com), a URL, or 'domain, Company Name' to help registry matching. Duplicates are merged, so each company is processed and billed once.",
            "items": {
              "type": "string"
            }
          },
          "maxPagesPerDomain": {
            "title": "Max pages per domain",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Homepage plus the most relevant contact, about, imprint and team pages. Capped at 10 to keep the load on each site light.",
            "default": 6
          },
          "includePersonalEmails": {
            "title": "Include personal-name emails",
            "type": "boolean",
            "description": "Off by default: only role addresses such as info@, sales@ or support@ are returned, and named-person addresses are counted but withheld. Turn on only if you have a lawful basis to process personal data (GDPR/CCPA).",
            "default": false
          },
          "includePersonalLinkedIn": {
            "title": "Include personal LinkedIn profiles",
            "type": "boolean",
            "description": "Off by default: only LinkedIn company pages are returned.",
            "default": false
          },
          "includeThirdPartyEmails": {
            "title": "Include emails on other domains",
            "type": "boolean",
            "description": "Off by default: only addresses on the company's own domain (or free-mail addresses it publishes) go in the email fields. Addresses on other domains, such as vendors, regulators or charities linked from the site, are listed separately in thirdPartyEmails.",
            "default": false
          },
          "suppressionList": {
            "title": "Suppression / opt-out list",
            "type": "array",
            "description": "Emails or domains that must never be returned (for example people or companies who opted out). Matching domains are not crawled at all.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "checkMx": {
            "title": "Check email domains for mail servers (DNS MX)",
            "type": "boolean",
            "description": "DNS lookup only. The Actor never connects to mail servers and never sends SMTP probes.",
            "default": true
          },
          "matchGleif": {
            "title": "Match GLEIF LEI",
            "type": "boolean",
            "description": "Look up the company's Legal Entity Identifier in GLEIF's public register. Only exact, unambiguous name matches are attached.",
            "default": true
          },
          "secContactEmail": {
            "title": "Your contact email for SEC EDGAR matching (optional)",
            "type": "string",
            "description": "Optional. The SEC asks automated users to declare a contact in the User-Agent; Clearfeed Labs' operational address is used if you leave this empty."
          },
          "incremental": {
            "title": "Incremental mode (bill only new or changed)",
            "type": "boolean",
            "description": "Remembers each domain's contact fingerprint between runs. Unchanged domains are not billed.",
            "default": false
          },
          "stateKey": {
            "title": "Incremental state key",
            "type": "string",
            "description": "Name for this watchlist's memory, so separate lists don't mix.",
            "default": "default"
          },
          "outputUnchanged": {
            "title": "Output unchanged domains (free)",
            "type": "boolean",
            "description": "In incremental mode, also write unchanged rows (not billed).",
            "default": false
          },
          "defaultCountry": {
            "title": "Default country for phone numbers",
            "type": "string",
            "description": "Two-letter code (US, GB, DE...) used to read national-format numbers when a site gives no country signal."
          },
          "maxDomains": {
            "title": "Max domains per run",
            "minimum": 1,
            "type": "integer",
            "description": "Hard cap on domains processed in this run.",
            "default": 1000
          },
          "matchSec": {
            "title": "Match SEC CIK / ticker",
            "type": "boolean",
            "description": "Match US public companies to their SEC CIK and tickers using the SEC's published company list (one download per run).",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}