{
  "openapi": "3.0.1",
  "info": {
    "title": "B2B Hiring Intent & Tech-Stack Intelligence Miner (AI Enriched)",
    "description": "Extract active job postings, detected tech stack, hiring velocity, executive growth signals, and B2B intent scores from company ATS boards (Greenhouse, Ashby, Lever, Workable, SmartRecruiters) directly formatted for Clay, CRM & outbound lead gen.",
    "version": "1.0",
    "x-build-id": "aVccZ6PrJlKt4EHDM"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/snazzy_seafan~b2b-hiring-intent-tech-stack-miner/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-snazzy_seafan-b2b-hiring-intent-tech-stack-miner",
        "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/snazzy_seafan~b2b-hiring-intent-tech-stack-miner/runs": {
      "post": {
        "operationId": "runs-sync-snazzy_seafan-b2b-hiring-intent-tech-stack-miner",
        "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/snazzy_seafan~b2b-hiring-intent-tech-stack-miner/run-sync": {
      "post": {
        "operationId": "run-sync-snazzy_seafan-b2b-hiring-intent-tech-stack-miner",
        "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": [
          "companies"
        ],
        "properties": {
          "companies": {
            "title": "Companies / ATS Targets",
            "type": "array",
            "description": "List of company domains (e.g. 'stripe.com', 'ramp.com', 'databricks.com') or direct ATS URLs (e.g. 'https://boards.greenhouse.io/stripe', 'https://jobs.ashbyhq.com/ramp')."
          },
          "atsFilter": {
            "title": "Force Specific ATS Type (Optional)",
            "enum": [
              "auto",
              "greenhouse",
              "ashby",
              "lever",
              "workable",
              "smartrecruiters",
              "generic"
            ],
            "type": "string",
            "description": "Leave as 'auto' for automatic board detection, or force a specific ATS engine.",
            "default": "auto"
          },
          "maxJobsPerCompany": {
            "title": "Max Jobs Per Company",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum number of active jobs to fetch and analyze per company (0 for unlimited).",
            "default": 100
          },
          "departmentFilter": {
            "title": "Department Filter (Regex / Keywords)",
            "type": "array",
            "description": "Only analyze jobs matching these departments (e.g. ['Engineering', 'Data', 'Sales', 'Product']). Leave empty to process all.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "enrichmentMode": {
            "title": "AI Enrichment Mode",
            "enum": [
              "hybrid",
              "regex_only",
              "ai_deep"
            ],
            "type": "string",
            "description": "Choose 'hybrid' for instant regex tech stack detection + AI intent reasoning (recommended for B2B sales), 'regex_only' for zero-LLM-cost deterministic extraction, or 'ai_deep' for full narrative analysis.",
            "default": "hybrid"
          },
          "aiProvider": {
            "title": "AI Model Provider",
            "enum": [
              "openai",
              "gemini",
              "heuristic"
            ],
            "type": "string",
            "description": "Provider for AI enrichment. When running on Apify without custom keys, 'apify_llm' or 'heuristic' fallback can be used.",
            "default": "heuristic"
          },
          "aiApiKey": {
            "title": "AI API Key (Optional if heuristic)",
            "type": "string",
            "description": "Your OpenAI (sk-...) or Google Gemini API key for deep AI enrichment. If left empty, intelligent deterministic heuristic + regex engine will run with 0 token cost."
          },
          "aiModel": {
            "title": "AI Model Name",
            "type": "string",
            "description": "E.g. 'gpt-4o-mini', 'gemini-1.5-flash', 'gemini-2.0-flash'.",
            "default": "gpt-4o-mini"
          },
          "enableDeltaScraping": {
            "title": "Enable Incremental Delta Scraping",
            "type": "boolean",
            "description": "When enabled, stores seen job IDs in Key-Value store. Subsequent scheduled runs will only enrich and alert on newly posted or changed jobs.",
            "default": true
          },
          "generateColdOutreachHooks": {
            "title": "Generate Cold Outreach Hooks",
            "type": "boolean",
            "description": "Generate high-converting 1-sentence personalized B2B outreach angles tailored to the company's open hiring pain points.",
            "default": true
          },
          "outputGranularity": {
            "title": "Output Granularity",
            "enum": [
              "company_summary",
              "job_postings",
              "both"
            ],
            "type": "string",
            "description": "'company_summary' outputs 1 consolidated intelligence record per company (best for Clay / CRM). 'job_postings' outputs individual job records enriched with company context.",
            "default": "company_summary"
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "ATS endpoints do not require proxies, but proxy rotation can be enabled for custom career pages.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}