{
  "openapi": "3.0.1",
  "info": {
    "title": "LeadHarvest — B2B Contact Enrichment",
    "description": "Real-time B2B contact enrichment from 10+ zero-cost sources. $0.025/lead. 20 leads free.",
    "version": "0.0",
    "x-build-id": "VrlEZE9uAYVGtfxtw"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/imran.cultmarketer~leadharvest/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-imran.cultmarketer-leadharvest",
        "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/imran.cultmarketer~leadharvest/runs": {
      "post": {
        "operationId": "runs-sync-imran.cultmarketer-leadharvest",
        "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/imran.cultmarketer~leadharvest/run-sync": {
      "post": {
        "operationId": "run-sync-imran.cultmarketer-leadharvest",
        "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": {
          "inputMode": {
            "title": "Input Mode",
            "enum": [
              "domainList",
              "singleDomain"
            ],
            "type": "string",
            "description": "How you are providing targets. Use domainList for bulk CSV/batch runs. Use singleDomain for API and agent calls (Claude, n8n, Zapier).",
            "default": "domainList"
          },
          "domains": {
            "title": "Domain List",
            "type": "array",
            "description": "Company domains to enrich. One per line. E.g. stripe.com, hubspot.com. Used when Input Mode is Domain List.",
            "items": {
              "type": "string"
            }
          },
          "domain": {
            "title": "Single Domain",
            "type": "string",
            "description": "A single company domain. Used when Input Mode is Single Domain. Ideal for API and AI agent calls."
          },
          "contactName": {
            "title": "Contact Name (optional)",
            "type": "string",
            "description": "Full name of the person to find at this company. E.g. Patrick Collison. When provided, LeadHarvest generates and validates targeted email permutations (patrick@, p.collison@, etc.). Without a name, only generic company emails are attempted."
          },
          "maxLeadsPerDomain": {
            "title": "Max Leads Per Domain",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Maximum number of email candidates to return per domain. Default is 1 (best match only). Set higher to get multiple contacts per company.",
            "default": 1
          },
          "minConfidenceScore": {
            "title": "Minimum Confidence Score",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Only return leads with a confidence score at or above this threshold. 0 = return everything. 50 = verified only. 70 = high confidence only.",
            "default": 0
          },
          "requireVerifiedEmail": {
            "title": "Require Verified Email",
            "type": "boolean",
            "description": "When enabled, only returns leads where the email was confirmed via Gravatar or MX validation. Leads with no verified email are dropped.",
            "default": false
          },
          "outputFormat": {
            "title": "Output Format",
            "enum": [
              "full",
              "email_only",
              "essential"
            ],
            "type": "string",
            "description": "Controls which fields appear in the output dataset.",
            "default": "full"
          },
          "suppressionDomains": {
            "title": "Suppression: Skip These Domains",
            "type": "array",
            "description": "Domains to skip entirely. Useful for excluding existing customers or competitors. E.g. yourcustomer.com.",
            "items": {
              "type": "string"
            }
          },
          "suppressionEmails": {
            "title": "Suppression: Skip These Emails",
            "type": "array",
            "description": "If any of these emails appear in the output, the lead is dropped. Useful for GDPR opt-out lists.",
            "items": {
              "type": "string"
            }
          },
          "skipAlreadyEnrichedDomains": {
            "title": "Skip Already-Enriched Domains",
            "type": "boolean",
            "description": "When enabled, domains already in the cache from a previous run are skipped. Saves quota and cost on repeated runs.",
            "default": true
          },
          "githubToken": {
            "title": "GitHub Token (optional)",
            "type": "string",
            "description": "Personal access token for GitHub API. Increases rate limit from 60 to 5,000 requests/hour. Improves email discovery for developer-facing companies. Create at github.com/settings/tokens."
          },
          "respectRobotsTxt": {
            "title": "Respect robots.txt",
            "type": "boolean",
            "description": "When enabled, LeadHarvest skips website crawling for domains that disallow it in robots.txt. Slightly reduces data quality but improves compliance.",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}