{
  "openapi": "3.0.1",
  "info": {
    "title": "ATS Job & B2B Leads Scraper (Greenhouse, Lever, Ashby + Email)",
    "description": "Extract real-time B2B hiring signals and active job postings from Greenhouse, Lever, and Ashby, enriched with verified company emails, salary ranges ($), LinkedIn decision-makers, and tech stack.",
    "version": "1.0",
    "x-build-id": "UmF75BOVWaatik01W"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/thunder-automation~ats-job-leads-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-thunder-automation-ats-job-leads-scraper",
        "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/thunder-automation~ats-job-leads-scraper/runs": {
      "post": {
        "operationId": "runs-sync-thunder-automation-ats-job-leads-scraper",
        "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/thunder-automation~ats-job-leads-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-thunder-automation-ats-job-leads-scraper",
        "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": {
          "jobKeywords": {
            "title": "1. Job Title / Department Keywords",
            "type": "array",
            "description": "Filter active hiring signals by job title or department (e.g., 'AI', 'Engineer', 'Marketing', 'Sales'). Leave default to test immediately!",
            "default": [
              "AI",
              "Marketing",
              "Sales",
              "Engineer"
            ],
            "items": {
              "type": "string"
            }
          },
          "locationKeywords": {
            "title": "2. Location Keywords (Optional)",
            "type": "array",
            "description": "Filter jobs by location (e.g., 'Remote', 'United States', 'New York', 'London'). Leave empty for all locations.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "atsPlatforms": {
            "title": "3. Target ATS Platforms",
            "type": "array",
            "description": "Select which ATS job boards to scan.",
            "default": [
              "greenhouse",
              "lever",
              "ashby"
            ],
            "items": {
              "type": "string"
            }
          },
          "autoDiscoverFromWeb": {
            "title": "4. Auto-Discover New Companies from Web",
            "type": "boolean",
            "description": "Automatically search the web to discover new companies hiring for your keywords on Greenhouse, Lever, and Ashby.",
            "default": true
          },
          "customCompanies": {
            "title": "5. Custom Company Slugs or Job Board URLs (Optional)",
            "type": "array",
            "description": "Optionally enter specific company slugs (e.g., 'stripe', 'figma') or full URLs (e.g., 'https://boards.greenhouse.io/stripe'). If empty, uses built-in seed directory + web discovery.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "postedWithinDays": {
            "title": "6. Posted Within Last X Days",
            "minimum": 0,
            "type": "integer",
            "description": "Only return fresh job postings published or updated within the last X days (0 = no time limit).",
            "default": 30
          },
          "maxJobsPerCompany": {
            "title": "7. Max Jobs Per Company",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum number of matching job leads to extract per company.",
            "default": 3
          },
          "maxTotalLeads": {
            "title": "8. Max Total Leads to Extract",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Total maximum number of B2B leads to output in a single run.",
            "default": 20
          },
          "enrichCompanyWebsite": {
            "title": "9. Enrich Company Website (Emails, Socials & Tech Stack)",
            "type": "boolean",
            "description": "Automatically visit each company's official website and /contact page to extract business emails, LinkedIn, Twitter/X, and Tech Stack.",
            "default": true
          },
          "onlyNewJobs": {
            "title": "10. Deduplicate Across Runs (Only New Jobs)",
            "type": "boolean",
            "description": "Remember previously scraped job IDs so scheduled runs only return brand-new job postings.",
            "default": false
          },
          "webhookUrl": {
            "title": "11. Multi-Platform Webhook URL: Discord / Slack / n8n / Make / Zapier (Optional)",
            "type": "string",
            "description": "Receive instant alerts on ANY platform! Paste a Discord Webhook URL, Slack Incoming Webhook URL, or n8n / Make.com / Zapier / Google Sheets Webhook URL. Automatically formats rich cards for Discord & Slack or full JSON for automation tools."
          },
          "telegramBotToken": {
            "title": "12. Telegram Bot Token (Optional)",
            "type": "string",
            "description": "Enter your Telegram Bot Token (from @BotFather) to receive instant B2B lead & candidate match alerts on Telegram."
          },
          "telegramChatId": {
            "title": "13. Telegram Chat ID (Optional)",
            "type": "string",
            "description": "Enter your Telegram Chat ID or Channel ID to receive instant lead notifications."
          },
          "submitCandidateCv": {
            "title": "14. Submit Candidate CV via Web UI (Optional - No Telegram Needed)",
            "type": "string",
            "description": "Want to add a Candidate CV directly from the web to match against companies (0-100% compatibility)? Format: 'Full Name | Role | Skills (comma-separated) | Years Exp | Expected Salary USD | Email | LinkedIn or CV URL'"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}