{
  "openapi": "3.0.1",
  "info": {
    "title": "Premium Enriched B2B Leads (129M Companies/522M Employees)",
    "description": "Apollo, ZoomInfo, Crunchbase and People Data Labs alternative. Search B2B companies by industry, category, location, technology and size, then pull verified employee contacts: name, title, email, LinkedIn, phone. Pay per result. Stable pagination for scheduled runs.",
    "version": "1.0",
    "x-build-id": "TO3dnnRffYze3prgc"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ecommerce_leads~premium-enriched-b2b-leads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ecommerce_leads-premium-enriched-b2b-leads",
        "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/ecommerce_leads~premium-enriched-b2b-leads/runs": {
      "post": {
        "operationId": "runs-sync-ecommerce_leads-premium-enriched-b2b-leads",
        "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/ecommerce_leads~premium-enriched-b2b-leads/run-sync": {
      "post": {
        "operationId": "run-sync-ecommerce_leads-premium-enriched-b2b-leads",
        "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": {
          "mode": {
            "title": "What to fetch",
            "enum": [
              "search",
              "by_id"
            ],
            "type": "string",
            "description": "Search companies by filters, or look up specific companies by ID. Every search result includes a permanent company_id — save those, then use \"Look up by company ID\" later to pull that company's employees without re-searching.",
            "default": "search"
          },
          "companyIds": {
            "title": "Company IDs",
            "type": "array",
            "description": "Company IDs to fetch, taken from company_id in an earlier run's results. Each returns the full company profile plus its employees (turn on \"Include employees\"). IDs are permanent: store them and reuse them any time. They start with 234 (has a website) or 240 (name only).",
            "items": {
              "type": "string"
            }
          },
          "searchTerm": {
            "title": "Search term",
            "type": "string",
            "description": "Searches company name, description, industry and categories at once. Example: \"solar\" finds solar installers, manufacturers and consultants."
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "Full country name as stored, e.g. \"United States\", \"Germany\", \"United Kingdom\"."
          },
          "state": {
            "title": "State / Region",
            "type": "string",
            "description": "Filter by state or region, e.g. \"California\", \"Bavaria\", \"Ontario\". Exact match."
          },
          "city": {
            "title": "City",
            "type": "string",
            "description": "Filter by city, e.g. \"London\", \"Berlin\", \"New York\". Exact match."
          },
          "industry": {
            "title": "Industry",
            "type": "string",
            "description": "Exact industry match, e.g. \"Software\", \"Construction\"."
          },
          "category": {
            "title": "Category",
            "type": "string",
            "description": "Exact category match. A company usually has several."
          },
          "hasEmail": {
            "title": "Has email",
            "type": "boolean",
            "description": "Only return companies that have at least one email address on file (35M companies).",
            "default": false
          },
          "hasPhone": {
            "title": "Has phone",
            "type": "boolean",
            "description": "Only return companies that have at least one phone number on file (52M companies).",
            "default": false
          },
          "hasWebsite": {
            "title": "Has website",
            "type": "boolean",
            "description": "Only return companies that have a website URL (106M companies).",
            "default": false
          },
          "hasLinkedin": {
            "title": "Has LinkedIn",
            "type": "boolean",
            "description": "Only return companies with a LinkedIn company page (68M companies).",
            "default": false
          },
          "hasCountry": {
            "title": "Has country",
            "type": "boolean",
            "description": "Only return companies where the country is known (90M companies).",
            "default": false
          },
          "hasCity": {
            "title": "Has city",
            "type": "boolean",
            "description": "Only return companies where the city is known (59M companies).",
            "default": false
          },
          "hasContacts": {
            "title": "Has employee contacts",
            "type": "boolean",
            "description": "Only companies we hold at least one employee for (44M companies). Use this with \"Include employees\" so you never pay for a company that returns nobody.",
            "default": false
          },
          "employeesEstimatedMin": {
            "title": "Minimum company size (estimated)",
            "minimum": 0,
            "type": "integer",
            "description": "Filters on our ESTIMATED headcount, not just the self-reported figure. 19M companies list 0 employees despite us holding their staff, so this finds companies a plain size filter misses — a \"50+\" search returns 5.8M companies instead of 3.6M."
          },
          "employeesAvailableMin": {
            "title": "Minimum employees available",
            "minimum": 0,
            "type": "integer",
            "description": "Only companies where we hold at least this many employee records."
          },
          "empMin": {
            "title": "Company size — minimum",
            "minimum": 0,
            "type": "integer",
            "description": "The vendor's stated headcount only. Often 0 or missing — prefer \"Minimum company size (estimated)\" above."
          },
          "empMax": {
            "title": "Company size — maximum",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum estimated company size. Combine with the minimum to target a size range, e.g. 10-200 for SMBs."
          },
          "includeContacts": {
            "title": "Include employees",
            "type": "boolean",
            "description": "Fetch each company's employees — name, title, work email, LinkedIn, phone. Billed per contact. Cheaper alternative: search without this, then re-run in \"Look up by company ID\" mode for just the companies you picked. Some companies have thousands — set a cap below.",
            "default": false
          },
          "maxContactsPerCompany": {
            "title": "Maximum employees per company",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Caps how many employees are pulled per company, so one large company cannot consume your whole budget. 0 means no cap.",
            "default": 25
          },
          "pageSize": {
            "title": "Results per page",
            "enum": [
              "100",
              "500",
              "1000"
            ],
            "type": "string",
            "description": "How many companies each request fetches. Does not change the price - you pay per company returned either way. Larger pages are faster.",
            "default": "100"
          },
          "startPage": {
            "title": "Start page",
            "minimum": 1,
            "type": "integer",
            "description": "Page ordering is frozen: page 3 returns the same companies next week as it does today, so you can resume where you stopped and never re-pull the same leads.",
            "default": 1
          },
          "maxPages": {
            "title": "Pages to fetch",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "How many pages to pull in this run. With 1000 per page, 10 pages = 10,000 companies.",
            "default": 1
          },
          "maxItems": {
            "title": "Maximum companies (hard stop)",
            "minimum": 0,
            "type": "integer",
            "description": "Stops the run once this many companies have been returned, whatever the page settings say. 0 means no limit.",
            "default": 0
          },
          "scope": {
            "title": "Include companies without a website",
            "enum": [
              "company",
              "both",
              "nodomain"
            ],
            "type": "string",
            "description": "21M companies are known by name only — no domain, and no website/LinkedIn/employee data. Useful for local businesses.",
            "default": "company"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}