{
  "openapi": "3.0.1",
  "info": {
    "title": "Expired Jobs API: Dated Closures From 8 ATS",
    "description": "One run returns dated expired jobs: company, title, firstSeen, lastSeen, closedOn, absentObservations, URL and an asOf/n/historyCeilingDays receipt. Built for buyers of an expired jobs api who need a no-longer-listed date, not a filled claim. Monitor mode bills only new or changed closures.",
    "version": "0.1",
    "x-build-id": "7VJE6SjsnWNUf4RaY"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/redomic~expired-jobs-daily/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-redomic-expired-jobs-daily",
        "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~expired-jobs-daily/runs": {
      "post": {
        "operationId": "runs-sync-redomic-expired-jobs-daily",
        "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~expired-jobs-daily/run-sync": {
      "post": {
        "operationId": "run-sync-redomic-expired-jobs-daily",
        "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": [
              "search",
              "detail",
              "monitor",
              "audit"
            ],
            "type": "string",
            "description": "search returns filtered closure rows. detail checks job IDs or URLs, one status per input. monitor compares with the previous run and returns changeType new, changed or removed; an unchanged rerun costs nothing. audit returns one flat verdict row per job ID or URL, with the dates behind a closure, and bills only new or changed closures.",
            "default": "search"
          },
          "company": {
            "title": "Company or board",
            "type": "string",
            "description": "Keep closures from this company name or board token, ignoring case. Empty means all companies.",
            "default": ""
          },
          "keyword": {
            "title": "Keyword in title or department",
            "type": "string",
            "description": "Keep closures whose title or department contains this text, ignoring case. Empty means all roles.",
            "default": ""
          },
          "closedWithinDays": {
            "title": "Closed within (days)",
            "minimum": 0,
            "maximum": 365,
            "type": "integer",
            "description": "Only closures dated in the last N days. 0 means the full tracked history. Search mode only; monitor compares the full history so a shifting window never looks like a removal.",
            "default": 7
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Maximum result rows returned and billed per run.",
            "default": 500
          },
          "minSalary": {
            "title": "Minimum posted pay (per year)",
            "minimum": 0,
            "type": "number",
            "description": "Search and monitor only. Keep closures whose posted pay reaches at least this figure, compared with the top of the posted range in its own currency (no FX conversion). Hourly, monthly and weekly figures are scaled to a year; roles with no posted pay are left out when set."
          },
          "remoteOnly": {
            "title": "Remote roles only",
            "type": "boolean",
            "description": "Search and monitor only. Keep closures the posting marks Remote, either as its workplace type or in its location. Onsite and hybrid roles are left out.",
            "default": false
          },
          "location": {
            "title": "Location contains",
            "type": "string",
            "description": "Search and monitor only. Keep closures whose location contains this text, ignoring case, for example United States, Berlin or Remote. Empty means all locations.",
            "default": ""
          },
          "ats": {
            "title": "Career site platforms",
            "type": "array",
            "description": "Limit to these career-site platforms: Greenhouse, Lever, Ashby, SmartRecruiters, Workable, Teamtailor, Recruitee or Breezy. Empty means all.",
            "items": {
              "type": "string",
              "enum": [
                "greenhouse",
                "lever",
                "ashby",
                "workable",
                "smartrecruiters",
                "recruitee",
                "breezy",
                "teamtailor",
                "workday"
              ]
            },
            "default": []
          },
          "roleFamilies": {
            "title": "Role families",
            "type": "array",
            "description": "Keep closures whose role family starts with any of these values, ignoring case: engineering covers every Engineering family (Backend/Fullstack, Data, ML/AI...); sales, marketing, healthcare and data work the same way. Empty means all.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "closedFrom": {
            "title": "Closed from (date)",
            "type": "string",
            "description": "Search and monitor only. Earliest close date to return, inclusive, as YYYY-MM-DD (for example 2026-11-05). Set both dates to catch up on a day you skipped; an explicit date overrides closedWithinDays. Only closures still inside the rolling history can be returned; an invalid date is ignored.",
            "default": ""
          },
          "closedTo": {
            "title": "Closed to (date)",
            "type": "string",
            "description": "Search and monitor only. Latest close date to return, inclusive, as YYYY-MM-DD (for example 2026-11-12). Set both dates to catch up on a day you skipped; an explicit date overrides closedWithinDays. Only closures still inside the rolling history can be returned; an invalid date is ignored.",
            "default": ""
          },
          "minAbsentObservations": {
            "title": "Minimum absent observations",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Daily snapshots in which the ad was absent before we call it a closure. The default 2 filters out one-day board flapping; set 1 to include same-day closures.",
            "default": 2
          },
          "includeGeneralApplications": {
            "title": "Include talent pools and open applications",
            "type": "boolean",
            "description": "Talent pools, 'general application' and template postings collect CVs rather than fill a role, so their disappearance is not a closed job. They are left out by default; turn this on to include them (each row then carries generalApplication: true). Search and monitor only.",
            "default": false
          },
          "jobIds": {
            "title": "Job IDs or URLs",
            "type": "array",
            "description": "Detail and audit modes: job IDs or job URLs from your own board or any scraper. Detail writes one status row per input to the STATUS record; audit writes one flat verdict row per input to the dataset, even when no closure was observed.",
            "default": [],
            "items": {
              "type": "string"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}