{
  "openapi": "3.0.1",
  "info": {
    "title": "B2B Hiring Intent, ATS Compensation & Tech-Stack API + MCP",
    "description": "Resolve company domains to live Greenhouse, Ashby, Lever, SmartRecruiters & Workable boards with salary/equity bands, hiring velocity, DNS SaaS signals, RDAP domain age & SEC Form D funding. Dual-Mode Batch + MCP.",
    "version": "1.0",
    "x-build-id": "JXR4a8Y78Ni1OUa83"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/hgreene624~b2b-hiring-techstack-intent/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-hgreene624-b2b-hiring-techstack-intent",
        "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/hgreene624~b2b-hiring-techstack-intent/runs": {
      "post": {
        "operationId": "runs-sync-hgreene624-b2b-hiring-techstack-intent",
        "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/hgreene624~b2b-hiring-techstack-intent/run-sync": {
      "post": {
        "operationId": "run-sync-hgreene624-b2b-hiring-techstack-intent",
        "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": "Target company domains",
            "type": "array",
            "description": "Company domains to enrich (automatically cleaned and normalized; shared hosting sites like *.github.io are skipped so you are never billed for host companies). Provide at least one of 'domains' or 'atsBoards'. Example: [\"ramp.com\", \"stripe.com\"].",
            "items": {
              "type": "string"
            }
          },
          "atsBoards": {
            "title": "Explicit ATS board overrides",
            "type": "array",
            "description": "Optional explicit {ats, slug, region?, domain?, companyName?} overrides bypassing domain resolution (e.g. [{\"ats\": \"smartrecruiters\", \"slug\": \"BoschGroup\"}]).",
            "items": {
              "type": "object"
            }
          },
          "mode": {
            "title": "Output mode",
            "enum": [
              "account_signals",
              "account_360",
              "jobs_feed"
            ],
            "type": "string",
            "description": "account_signals (1 row/company: ATS velocity, org mix, DNS SaaS & RDAP), account_360 (+ compensation bands, transient JD tech keywords & SEC Form D), or jobs_feed (1 flat row/job streamed in 25-row chunks).",
            "default": "account_signals"
          },
          "includeDnsAndRdap": {
            "title": "Include DNS SaaS & RDAP age signals",
            "type": "boolean",
            "description": "Attach commercial-clean DNS TXT/MX SaaS verification records, email-auth posture, and IANA RDAP domain age in-process (zero extra billing).",
            "default": true
          },
          "includeSecFormD": {
            "title": "Include SEC Form D funding signal",
            "type": "boolean",
            "description": "Query SEC EDGAR for Form D private funding filings. Auto-enabled in account_360 mode; enabling this checkbox in account_signals mode upgrades that run to the account_360 tier ($0.050/company).",
            "default": false
          },
          "extractTechKeywords": {
            "title": "Extract tech stack keywords from job descriptions",
            "type": "boolean",
            "description": "Extract backend, cloud, AI, and GTM technologies from job descriptions without saving full job text. Auto-enabled in account_360 mode; enabling this checkbox in account_signals mode upgrades that run to the account_360 tier ($0.050/company).",
            "default": false
          },
          "titleKeywords": {
            "title": "Title/role keyword filter",
            "type": "array",
            "description": "Optional keywords to filter and score matching roles (e.g. [\"SOC 2\", \"RevOps\", \"AI Engineer\"]).",
            "items": {
              "type": "string"
            }
          },
          "workplaceTypes": {
            "title": "Workplace type filter",
            "type": "array",
            "description": "Optional filter limiting jobs to: remote, hybrid, on_site (or unspecified). Case-insensitive ('on-site' is normalized to 'on_site'); unrecognized values raise a clear validation error instead of silently dropping.",
            "items": {
              "type": "string"
            }
          },
          "postedWithinDays": {
            "title": "Posted within N days",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Optional recency filter in days (e.g. 7 or 30)."
          },
          "maxCompanies": {
            "title": "Max companies",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Maximum companies to process per batch run (1..2000; Console prefill is 100, API default is 25, Apify Free plan automatically capped at 25 preview records).",
            "default": 25
          },
          "maxJobsPerCompany": {
            "title": "Max jobs per company",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum open job postings normalized per company (1..1000).",
            "default": 100
          },
          "maxTotalJobs": {
            "title": "Max total jobs (jobs_feed ceiling)",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Hard global row ceiling in jobs_feed mode (1..50000; Apify Free plan automatically capped at 25 preview records).",
            "default": 500
          },
          "strictDomainMatch": {
            "title": "Verify company-to-job-board match",
            "type": "boolean",
            "description": "Safe default (true): confirm each discovered job board actually belongs to the target company domain before billing so coincidental name collisions are rejected at $0.",
            "default": true
          },
          "allowLiveDiscovery": {
            "title": "Automatically discover career pages",
            "type": "boolean",
            "description": "When true (default), checks the company's public careers page and verified ATS board links if the domain is not in the bundled 1,100+ verified company directory.",
            "default": true
          },
          "includeUnlisted": {
            "title": "Include Ashby unlisted roles",
            "type": "boolean",
            "description": "Include Ashby postings where isListed is false (excluded by default).",
            "default": false
          },
          "includeFullDescription": {
            "title": "Include full job description (opt-in)",
            "type": "boolean",
            "description": "Strictly opt-in (default false for copyright safety). When true, emits HTML-stripped descriptionPlain capped at 15,000 chars with source attribution. Emails, phones, LinkedIn profiles, and recruiter names remain unconditionally redacted.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}