{
  "openapi": "3.0.1",
  "info": {
    "title": "Hiring Signal Monitor: Open Roles & Hiring Velocity",
    "description": "Track open roles and hiring velocity from companies' Greenhouse and Lever job boards as a B2B sales and expansion trigger. New-role and velocity-spike alerts, with a hard cost cap. For sales, recruiting and market research.",
    "version": "0.0",
    "x-build-id": "wBoVzhMEeZjtZM0lE"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/hamzatrq~hiring-signal-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-hamzatrq-hiring-signal-monitor",
        "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/hamzatrq~hiring-signal-monitor/runs": {
      "post": {
        "operationId": "runs-sync-hamzatrq-hiring-signal-monitor",
        "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/hamzatrq~hiring-signal-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-hamzatrq-hiring-signal-monitor",
        "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": {
          "greenhouseTokens": {
            "title": "Greenhouse board tokens",
            "type": "array",
            "description": "Greenhouse board tokens (the company slug in a board URL, e.g. gitlab in boards.greenhouse.io/gitlab) to track open roles for. Leave empty for a zero-config demo run on a known public board.",
            "items": {
              "type": "string"
            }
          },
          "leverTokens": {
            "title": "Lever board tokens",
            "type": "array",
            "description": "Lever board tokens (the company slug in a Lever jobs URL, e.g. leverdemo in jobs.lever.co/leverdemo) to track open roles for. Leave empty for a zero-config demo run on a known public board.",
            "items": {
              "type": "string"
            }
          },
          "roleKeywords": {
            "title": "Role keywords (title contains)",
            "type": "array",
            "description": "Keep only roles whose title contains at least one of these (case-insensitive). Empty = every role. E.g. [\"engineer\", \"sales\"] to track only engineering and sales hiring.",
            "items": {
              "type": "string"
            }
          },
          "seniority": {
            "title": "Seniority levels",
            "type": "array",
            "description": "Keep only roles whose derived seniority is one of these. Empty = every level. Allowed: intern, junior, mid, senior, lead, executive, unknown.",
            "items": {
              "type": "string"
            }
          },
          "department": {
            "title": "Departments (contains)",
            "type": "array",
            "description": "Keep only roles whose department contains at least one of these (case-insensitive). Empty = every department. E.g. [\"sales\"]. Greenhouse departments require the public board to expose them; Lever provides them natively.",
            "items": {
              "type": "string"
            }
          },
          "locationIncludes": {
            "title": "Locations (contains)",
            "type": "array",
            "description": "Keep only roles whose location contains at least one of these (case-insensitive). Empty = every location. E.g. [\"berlin\", \"remote\"].",
            "items": {
              "type": "string"
            }
          },
          "groupBy": {
            "title": "Output shape",
            "enum": [
              "role",
              "company"
            ],
            "type": "string",
            "description": "What each output row is. \"role\" (default) = one row per open role, with cleaned department, normalized function, seniority, hiring velocity (postedWithinDays/isRecent) and salary. \"company\" = one aggregated hiring-signal summary per company: open-role count, roles by function and seniority, top locations, remote share, roles posted in the last 30/90 days, and the newest roles.",
            "default": "role"
          },
          "remoteOnly": {
            "title": "Remote roles only",
            "type": "boolean",
            "description": "When true, keep only roles flagged remote (from the board's workplace type or a 'Remote' location). Default false = all roles.",
            "default": false
          },
          "maxItems": {
            "title": "Max roles per run",
            "type": "integer",
            "description": "Upper bound on the number of open roles returned per run (across all boards). Lower it to keep runs cheap; remove it to fetch every open role on the boards.",
            "default": 500
          },
          "maxCostPerRunUsd": {
            "title": "Max cost per run (USD)",
            "type": "integer",
            "description": "Hard ceiling on spend per run — the run stops before exceeding it, so you are never surprised by the bill.",
            "default": 5
          },
          "fullSync": {
            "title": "Full sync (re-scrape everything)",
            "type": "boolean",
            "description": "By default this runs as an incremental monitor: a repeat run emits only NEW or CHANGED records (and bills only for those). Turn this on to re-emit the entire current dataset every run — the one-off scraper / full-export use case.",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}