{
  "openapi": "3.0.1",
  "info": {
    "title": "Job Board Snapshot Change Detector",
    "description": "Compare two buyer-authorized factual job-board snapshots and report observed additions, removals and changed fields.",
    "version": "0.1",
    "x-build-id": "lKY6YWzhWWwCWZdYV"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/zinin~job-board-snapshot-change-detector/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-zinin-job-board-snapshot-change-detector",
        "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/zinin~job-board-snapshot-change-detector/runs": {
      "post": {
        "operationId": "runs-sync-zinin-job-board-snapshot-change-detector",
        "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/zinin~job-board-snapshot-change-detector/run-sync": {
      "post": {
        "operationId": "run-sync-zinin-job-board-snapshot-change-detector",
        "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",
        "required": [
          "previous",
          "current",
          "changeTypes",
          "changedFields",
          "includeBeforeAfter",
          "maxChanges",
          "acknowledgeObservedDiffOnly"
        ],
        "properties": {
          "previous": {
            "title": "Previous snapshot",
            "required": [
              "snapshotId",
              "observedAt",
              "postings"
            ],
            "type": "object",
            "description": "Earlier buyer-authorized factual snapshot with up to 1,000 closed posting rows.",
            "properties": {
              "snapshotId": {
                "title": "Snapshot ID",
                "description": "Stable ASCII identifier unique within this comparison.",
                "type": "string",
                "minLength": 1,
                "maxLength": 64,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$"
              },
              "observedAt": {
                "title": "Observed at",
                "description": "Strict UTC RFC 3339 snapshot time from 2000 through 2100.",
                "type": "string",
                "minLength": 20,
                "maxLength": 24,
                "pattern": "^(20\\d{2}|2100)-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])T([01]\\d|2[0-3]):([0-5]\\d):([0-5]\\d)(?:\\.(\\d{1,3}))?Z$"
              },
              "sourceLabel": {
                "title": "Source label",
                "description": "Optional factual provenance label; no affiliation is implied.",
                "type": "string",
                "minLength": 1,
                "maxLength": 80
              },
              "postings": {
                "title": "Posting facts",
                "description": "Zero to 1,000 closed factual posting rows; descriptions and application data are not accepted.",
                "type": "array",
                "minItems": 0,
                "maxItems": 1000,
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "postingKey",
                    "title"
                  ],
                  "properties": {
                    "postingKey": {
                      "title": "Posting key",
                      "description": "Stable source identity used only for exact snapshot matching.",
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 160,
                      "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$"
                    },
                    "title": {
                      "title": "Title",
                      "description": "Bounded factual job title; prose is not accepted.",
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 300
                    },
                    "department": {
                      "title": "Department",
                      "description": "Optional literal department.",
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120
                    },
                    "division": {
                      "title": "Division",
                      "description": "Optional literal division.",
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120
                    },
                    "location": {
                      "title": "Location",
                      "description": "Optional bounded factual location label; street addresses are out of scope.",
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200
                    },
                    "employmentType": {
                      "title": "Employment type",
                      "description": "Optional literal employment type.",
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 80
                    },
                    "workplaceType": {
                      "title": "Workplace type",
                      "description": "Optional literal workplace type; no inference from title occurs.",
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 80
                    },
                    "publishedAt": {
                      "title": "Published at",
                      "description": "Optional strict UTC RFC 3339 source timestamp.",
                      "type": "string",
                      "minLength": 20,
                      "maxLength": 24,
                      "pattern": "^(20\\d{2}|2100)-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])T([01]\\d|2[0-3]):([0-5]\\d):([0-5]\\d)(?:\\.(\\d{1,3}))?Z$"
                    },
                    "deadlineAt": {
                      "title": "Deadline at",
                      "description": "Optional strict UTC RFC 3339 source deadline; expiry meaning is not inferred.",
                      "type": "string",
                      "minLength": 20,
                      "maxLength": 24,
                      "pattern": "^(20\\d{2}|2100)-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])T([01]\\d|2[0-3]):([0-5]\\d):([0-5]\\d)(?:\\.(\\d{1,3}))?Z$"
                    },
                    "canonicalUrl": {
                      "title": "Canonical posting URL",
                      "description": "Optional inert HTTPS fact; the Actor never fetches it.",
                      "type": "string",
                      "minLength": 9,
                      "maxLength": 2048,
                      "pattern": "^https://"
                    },
                    "compensation": {
                      "title": "Compensation",
                      "description": "Optional closed range in integer minor units; no conversion occurs.",
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "minimum",
                        "maximum",
                        "currency",
                        "period"
                      ],
                      "properties": {
                        "minimum": {
                          "title": "Minimum",
                          "description": "Range minimum in minor units.",
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 100000000000
                        },
                        "maximum": {
                          "title": "Maximum",
                          "description": "Range maximum; runtime requires it not below minimum.",
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 100000000000
                        },
                        "currency": {
                          "title": "Currency",
                          "description": "Exact uppercase three-letter currency label.",
                          "type": "string",
                          "pattern": "^[A-Z]{3}$"
                        },
                        "period": {
                          "title": "Period",
                          "description": "Exact supplied pay period; no conversion occurs.",
                          "type": "string",
                          "enum": [
                            "HOUR",
                            "DAY",
                            "WEEK",
                            "MONTH",
                            "YEAR"
                          ]
                        }
                      }
                    }
                  }
                }
              }
            },
            "additionalProperties": false
          },
          "current": {
            "title": "Current snapshot",
            "required": [
              "snapshotId",
              "observedAt",
              "postings"
            ],
            "type": "object",
            "description": "Later buyer-authorized factual snapshot with up to 1,000 closed posting rows.",
            "properties": {
              "snapshotId": {
                "title": "Snapshot ID",
                "description": "Stable ASCII identifier unique within this comparison.",
                "type": "string",
                "minLength": 1,
                "maxLength": 64,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$"
              },
              "observedAt": {
                "title": "Observed at",
                "description": "Strict UTC RFC 3339 snapshot time from 2000 through 2100.",
                "type": "string",
                "minLength": 20,
                "maxLength": 24,
                "pattern": "^(20\\d{2}|2100)-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])T([01]\\d|2[0-3]):([0-5]\\d):([0-5]\\d)(?:\\.(\\d{1,3}))?Z$"
              },
              "sourceLabel": {
                "title": "Source label",
                "description": "Optional factual provenance label; no affiliation is implied.",
                "type": "string",
                "minLength": 1,
                "maxLength": 80
              },
              "postings": {
                "title": "Posting facts",
                "description": "Zero to 1,000 closed factual posting rows; descriptions and application data are not accepted.",
                "type": "array",
                "minItems": 0,
                "maxItems": 1000,
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "postingKey",
                    "title"
                  ],
                  "properties": {
                    "postingKey": {
                      "title": "Posting key",
                      "description": "Stable source identity used only for exact snapshot matching.",
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 160,
                      "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$"
                    },
                    "title": {
                      "title": "Title",
                      "description": "Bounded factual job title; prose is not accepted.",
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 300
                    },
                    "department": {
                      "title": "Department",
                      "description": "Optional literal department.",
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120
                    },
                    "division": {
                      "title": "Division",
                      "description": "Optional literal division.",
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120
                    },
                    "location": {
                      "title": "Location",
                      "description": "Optional bounded factual location label; street addresses are out of scope.",
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200
                    },
                    "employmentType": {
                      "title": "Employment type",
                      "description": "Optional literal employment type.",
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 80
                    },
                    "workplaceType": {
                      "title": "Workplace type",
                      "description": "Optional literal workplace type; no inference from title occurs.",
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 80
                    },
                    "publishedAt": {
                      "title": "Published at",
                      "description": "Optional strict UTC RFC 3339 source timestamp.",
                      "type": "string",
                      "minLength": 20,
                      "maxLength": 24,
                      "pattern": "^(20\\d{2}|2100)-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])T([01]\\d|2[0-3]):([0-5]\\d):([0-5]\\d)(?:\\.(\\d{1,3}))?Z$"
                    },
                    "deadlineAt": {
                      "title": "Deadline at",
                      "description": "Optional strict UTC RFC 3339 source deadline; expiry meaning is not inferred.",
                      "type": "string",
                      "minLength": 20,
                      "maxLength": 24,
                      "pattern": "^(20\\d{2}|2100)-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])T([01]\\d|2[0-3]):([0-5]\\d):([0-5]\\d)(?:\\.(\\d{1,3}))?Z$"
                    },
                    "canonicalUrl": {
                      "title": "Canonical posting URL",
                      "description": "Optional inert HTTPS fact; the Actor never fetches it.",
                      "type": "string",
                      "minLength": 9,
                      "maxLength": 2048,
                      "pattern": "^https://"
                    },
                    "compensation": {
                      "title": "Compensation",
                      "description": "Optional closed range in integer minor units; no conversion occurs.",
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "minimum",
                        "maximum",
                        "currency",
                        "period"
                      ],
                      "properties": {
                        "minimum": {
                          "title": "Minimum",
                          "description": "Range minimum in minor units.",
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 100000000000
                        },
                        "maximum": {
                          "title": "Maximum",
                          "description": "Range maximum; runtime requires it not below minimum.",
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 100000000000
                        },
                        "currency": {
                          "title": "Currency",
                          "description": "Exact uppercase three-letter currency label.",
                          "type": "string",
                          "pattern": "^[A-Z]{3}$"
                        },
                        "period": {
                          "title": "Period",
                          "description": "Exact supplied pay period; no conversion occurs.",
                          "type": "string",
                          "enum": [
                            "HOUR",
                            "DAY",
                            "WEEK",
                            "MONTH",
                            "YEAR"
                          ]
                        }
                      }
                    }
                  }
                }
              }
            },
            "additionalProperties": false
          },
          "changeTypes": {
            "title": "Change types",
            "minItems": 1,
            "maxItems": 3,
            "uniqueItems": true,
            "type": "array",
            "description": "Choose one or more literal differences to deliver.",
            "items": {
              "type": "string",
              "enum": [
                "ADDED",
                "REMOVED",
                "CHANGED"
              ]
            },
            "default": [
              "ADDED",
              "REMOVED",
              "CHANGED"
            ]
          },
          "changedFields": {
            "title": "Comparable fields",
            "minItems": 0,
            "maxItems": 10,
            "uniqueItems": true,
            "type": "array",
            "description": "Leave empty to compare every supported factual field, or select an exact subset.",
            "items": {
              "type": "string",
              "enum": [
                "title",
                "department",
                "division",
                "location",
                "employmentType",
                "workplaceType",
                "compensation",
                "publishedAt",
                "deadlineAt",
                "canonicalUrl"
              ]
            },
            "default": []
          },
          "includeBeforeAfter": {
            "title": "Include changed facts",
            "type": "boolean",
            "description": "Include only the selected changed factual values; disable to return fingerprints and field names only.",
            "default": true
          },
          "maxChanges": {
            "title": "Maximum delivered changes",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Retain the deterministic first 1–2,000 selected changes; summary reports truncation.",
            "default": 2000
          },
          "inputLabel": {
            "title": "Correlation label",
            "maxLength": 80,
            "type": "string",
            "description": "Optional non-sensitive label copied only to the summary."
          },
          "acknowledgeObservedDiffOnly": {
            "title": "Acknowledge observed-only scope",
            "type": "boolean",
            "description": "Required: differences do not prove hiring, role closure, growth or snapshot completeness.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}