{
  "openapi": "3.0.1",
  "info": {
    "title": "Company Hiring Trend Monitor",
    "description": "Monitor public company career pages and ATS boards over repeated runs and detect company-level hiring changes - new roles, removed roles, department growth, location expansion, and remote/hybrid movement. No login or cookies.",
    "version": "1.0",
    "x-build-id": "OaxGUdDyibLP0REyd"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/coregent~company-hiring-trend-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-coregent-company-hiring-trend-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/coregent~company-hiring-trend-monitor/runs": {
      "post": {
        "operationId": "runs-sync-coregent-company-hiring-trend-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/coregent~company-hiring-trend-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-coregent-company-hiring-trend-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": {
          "companyUrls": {
            "title": "Company career / ATS URLs",
            "type": "array",
            "description": "Public career-page or ATS board URLs to monitor, e.g. \"https://boards.greenhouse.io/acme\", \"https://jobs.lever.co/acme\", \"https://jobs.ashbyhq.com/acme\". Each URL becomes one company. Provide at least one of Company URLs or Companies.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "companies": {
            "title": "Companies (structured)",
            "type": "array",
            "description": "Structured company inputs as JSON objects: { \"companyName\": \"Acme\", \"careersUrl\": \"https://jobs.lever.co/acme\", \"companyWebsite\": \"https://acme.com\" }. Use this when you want stable company names and websites instead of guessing from the page.",
            "default": []
          },
          "maxCompanies": {
            "title": "Max companies",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Safety cap on how many companies are processed in one run.",
            "default": 100
          },
          "maxJobsPerCompany": {
            "title": "Max jobs per company",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Prevents runaway pagination on very large employers. Collection stops for a company after this many unique jobs.",
            "default": 250
          },
          "outputMode": {
            "title": "Output mode",
            "enum": [
              "company_trends_only",
              "company_and_jobs"
            ],
            "type": "string",
            "description": "Whether the dataset contains only company trend rows, or also the current job rows behind each company.",
            "default": "company_trends_only"
          },
          "onlyChangedCompanies": {
            "title": "Only changed companies",
            "type": "boolean",
            "description": "Return only companies with detected changes (new jobs, removed jobs, or a non-zero open-roles delta) since the previous run.",
            "default": false
          },
          "minChangeCount": {
            "title": "Minimum change count",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Keep only companies where (new jobs + removed jobs) is at least this number.",
            "default": 0
          },
          "departmentKeywords": {
            "title": "Department keywords",
            "type": "array",
            "description": "Keep only companies hiring in these departments/categories (matched against job departments and titles, case-insensitive). Leave empty to keep all.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "locationKeywords": {
            "title": "Location keywords",
            "type": "array",
            "description": "Keep only companies with jobs in these locations (countries, cities, regions, or \"remote\"), case-insensitive. Leave empty to keep all.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "remoteFilter": {
            "title": "Remote filter",
            "enum": [
              "any",
              "remote_only",
              "hybrid_or_remote",
              "onsite_only"
            ],
            "type": "string",
            "description": "Filter companies by the work arrangement of their current jobs.",
            "default": "any"
          },
          "snapshotKeyPrefix": {
            "title": "Snapshot key prefix",
            "type": "string",
            "description": "Namespace for the per-company snapshots stored in the Key-Value Store. Use different prefixes to keep separate monitoring streams independent. Letters, numbers, dash, underscore (3-80 chars).",
            "default": "hiring-trend"
          },
          "saveSnapshot": {
            "title": "Save snapshot",
            "type": "boolean",
            "description": "Save the current snapshot after comparison. Turn off for dry-run/test runs that compare against the previous snapshot without overwriting it.",
            "default": true
          },
          "deduplicateJobs": {
            "title": "Deduplicate jobs",
            "type": "boolean",
            "description": "Remove duplicate jobs within each company before comparison (by source job ID, canonical URL, then title/location/department).",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Proxy configuration. Defaults to Apify Proxy enabled. Apify Residential is NOT supported and will fail the run at startup; if you need residential routing, supply your own provider via Custom proxy URLs (proxyUrls).",
            "default": {
              "useApifyProxy": true
            }
          },
          "debugMode": {
            "title": "Debug mode",
            "type": "boolean",
            "description": "Extra logs: source detection, extraction counts, and filter/failure reasons.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}