{
  "openapi": "3.0.1",
  "info": {
    "title": "Closed Jobs Tracker: Filled Roles & Time-to-Fill",
    "description": "Search closed jobs from 11,000+ companies with closedOn, daysOpen and time-to-fill signals. Returns company hiring velocity and recent closures. Pay per result.",
    "version": "0.1",
    "x-build-id": "WMWzdkvttkP3wq5Ns"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/redomic~closed-jobs-tracker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-redomic-closed-jobs-tracker",
        "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/redomic~closed-jobs-tracker/runs": {
      "post": {
        "operationId": "runs-sync-redomic-closed-jobs-tracker",
        "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/redomic~closed-jobs-tracker/run-sync": {
      "post": {
        "operationId": "run-sync-redomic-closed-jobs-tracker",
        "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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "jobs",
              "companies"
            ],
            "type": "string",
            "description": "'jobs' returns closed job rows with closedOn and daysOpen. 'companies' returns one company row with closure and hiring-velocity counts.",
            "default": "jobs"
          },
          "isOpen": {
            "title": "Open postings instead of closed roles",
            "type": "boolean",
            "description": "Jobs mode only: return current open postings from the daily open-jobs snapshot instead of closed roles. Each row carries isOpen=true and is sorted newest-posted first. Off by default.",
            "default": false
          },
          "closedWithinDays": {
            "title": "Closed within (days)",
            "minimum": 0,
            "maximum": 365,
            "type": "integer",
            "description": "Only jobs closed in the last N days. 0 = any close date in the last 90 days.",
            "default": 7
          },
          "companies": {
            "title": "Companies",
            "type": "array",
            "description": "Limit to these companies by company name or board token. Empty = all companies.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "ats": {
            "title": "Career site platforms",
            "type": "array",
            "description": "Limit to Greenhouse, Lever or Ashby companies. Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "greenhouse",
                "lever",
                "ashby"
              ]
            },
            "default": []
          },
          "roleFamilies": {
            "title": "Role families",
            "type": "array",
            "description": "Keep jobs whose role family matches any of these values (case-insensitive). Empty = all.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "seniority": {
            "title": "Seniority",
            "type": "array",
            "description": "Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "Intern",
                "Junior",
                "Mid",
                "Senior",
                "Lead/Principal"
              ]
            },
            "default": []
          },
          "countries": {
            "title": "Countries or locations",
            "type": "array",
            "description": "Keep rows whose location contains any of these strings (country, city or region). Empty = all.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "workplaceTypes": {
            "title": "Workplace types",
            "type": "array",
            "description": "Keep rows whose workplace type matches any of these values (case-insensitive), e.g. Remote, Hybrid, On-site. Empty = all.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "employmentTypes": {
            "title": "Employment types",
            "type": "array",
            "description": "Keep rows whose employment type matches any of these values (case-insensitive), e.g. Full-time, Part-time, Contract. Empty = all.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "minClosed": {
            "title": "Minimum closed roles (companies mode)",
            "minimum": 0,
            "type": "integer",
            "description": "In companies mode, keep companies with at least this many closed roles in the selected window.",
            "default": 1
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "closedOn",
              "daysOpen",
              "closed7d"
            ],
            "type": "string",
            "description": "Jobs mode defaults to newest close. Companies mode supports closed7d.",
            "default": "closedOn"
          },
          "includeEvergreen": {
            "title": "Include evergreen postings",
            "type": "boolean",
            "description": "Closed jobs mode: include evergreen/talent-pool postings (generalApplication=true). Off by default; default export excludes them and reports evergreen/workplace coverage counts.",
            "default": false
          },
          "requirePostedAt": {
            "title": "Require known posted date",
            "type": "boolean",
            "description": "Closed jobs mode: return only rows with a known postedAt so daysOpen is real time-to-fill (not a tracking floor). Off by default.",
            "default": false
          },
          "minDaysOpen": {
            "title": "Minimum days open",
            "minimum": 0,
            "type": "integer",
            "description": "Closed jobs mode: keep rows where daysOpen is at least this value (from postedAt when known, else the observed floor). Rows with unknown daysOpen are excluded. Leave unset for no lower bound."
          },
          "maxDaysOpen": {
            "title": "Maximum days open",
            "minimum": 0,
            "type": "integer",
            "description": "Closed jobs mode: keep rows where daysOpen is at most this value (from postedAt when known, else the observed floor). Rows with unknown daysOpen are excluded. Leave unset for no upper bound."
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum rows returned and billed.",
            "default": 100
          },
          "changesOnly": {
            "title": "Changes only (new since last run)",
            "type": "boolean",
            "description": "Jobs mode monitor: each run returns only jobs not seen in the previous run with the same filters and saves the baseline in the 'closed-jobs-tracker-monitor' store. In open mode (isOpen=true), this tracks newly seen open jobs since the last run. A run with nothing new returns no billed rows. Off by default.",
            "default": false
          },
          "monitorScope": {
            "title": "Monitor scope",
            "type": "string",
            "description": "Optional name for this monitor's saved baseline. Reuse the same name on a schedule to compare against the previous run; use a different name for a separate monitor. Leave empty for the default baseline.",
            "default": ""
          },
          "openedWithinDays": {
            "title": "Opened within (days)",
            "minimum": 0,
            "type": "integer",
            "description": "Open jobs mode only (isOpen=true): keep open jobs whose firstSeen is within N days of dataAsOf (e.g. 1 means firstSeen >= dataAsOf-1d). Leave unset to disable."
          },
          "freshnessSla": {
            "title": "Freshness SLA audit (closed jobs)",
            "type": "boolean",
            "description": "Closed jobs mode only: add a per-job freshness/stale audit with lastSeenOpenAt, closedVerifiedAt, removalLatencyHours and as-of/sample-size/crawl-lag disclosure fields. Off by default.",
            "default": false
          },
          "staleAudit": {
            "title": "Stale audit alias",
            "type": "boolean",
            "description": "Alias for freshnessSla; enables the same freshness/stale audit output in closed jobs mode. Off by default.",
            "default": false
          },
          "includeAggregators": {
            "title": "Include aggregators",
            "type": "boolean",
            "description": "Include staffing and aggregator boards that repost other companies' jobs. Off by default.",
            "default": false
          },
          "includeBoardRemovals": {
            "title": "Include board removals",
            "type": "boolean",
            "description": "Include closures caused by a whole board disappearing or moving ATS. Off by default; those rows are marked closedReason 'board_removed' and left out of company closure counts.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}