{
  "openapi": "3.0.1",
  "info": {
    "title": "Schema.org Vocabulary Drift Monitor",
    "description": "Monitor the official Schema.org JSON-LD vocabulary for watched term changes, replacements, removals, and release drift.",
    "version": "0.0",
    "x-build-id": "6cGeP6GBusugTTjJ1"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/defenestrator~schema-org-vocabulary-drift-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-defenestrator-schema-org-vocabulary-drift-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/defenestrator~schema-org-vocabulary-drift-monitor/runs": {
      "post": {
        "operationId": "runs-sync-defenestrator-schema-org-vocabulary-drift-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/defenestrator~schema-org-vocabulary-drift-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-defenestrator-schema-org-vocabulary-drift-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": {
          "watchIds": {
            "title": "Schema.org term IDs to watch",
            "type": "array",
            "description": "Exact Schema.org term IDs to always emit. Use bare names such as Product or prefixed IDs such as schema:Product.",
            "items": {
              "type": "string"
            },
            "default": [
              "Product",
              "Offer",
              "JobPosting",
              "SoftwareApplication",
              "MerchantReturnPolicy",
              "Dataset"
            ]
          },
          "watchTextTerms": {
            "title": "Watch text terms",
            "type": "array",
            "description": "Optional case-insensitive text terms to match against Schema.org IDs, labels, comments, domains, ranges, and superseded-by targets.",
            "items": {
              "type": "string"
            },
            "default": [
              "return policy",
              "price",
              "employment",
              "software",
              "dataset"
            ]
          },
          "expectedIds": {
            "title": "Expected Schema.org IDs",
            "type": "array",
            "description": "Exact Schema.org term IDs that must exist. Missing expected IDs emit HIGH-priority rows.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "baselineRows": {
            "title": "Previous dataset rows",
            "type": "array",
            "description": "Rows from a prior run of this Actor. Matching rowKey and semanticHash values detect changed and removed terms. New-term detection runs only when the baseline contains the complete vocabulary plus its summary row.",
            "items": {
              "type": "object"
            },
            "default": []
          },
          "includeVocabularySummaryRows": {
            "title": "Include vocabulary summary rows",
            "type": "boolean",
            "description": "If true, emit a summary row with counts and source hashes. This keeps default runs non-empty and trendable.",
            "default": true
          },
          "includeDeprecatedRows": {
            "title": "Include replaced or attic terms",
            "type": "boolean",
            "description": "If true, emit Schema.org terms that have supersededBy targets or belong to the attic layer, even without a watch or baseline match.",
            "default": true
          },
          "includePendingRows": {
            "title": "Include pending terms",
            "type": "boolean",
            "description": "If true, emit Schema.org terms from the pending layer. This can be useful for SEO and product teams watching upcoming structured-data vocabulary.",
            "default": false
          },
          "includeAllVocabularyRows": {
            "title": "Include all vocabulary rows",
            "type": "boolean",
            "description": "If true, emit every parsed Schema.org term, not only watched, deprecated, pending, changed, new, removed, expected-missing, or summary rows.",
            "default": false
          },
          "emitNewRowsWhenBaselineProvided": {
            "title": "Emit new rows when baseline is supplied",
            "type": "boolean",
            "description": "If true and baselineRows proves it contains the complete prior vocabulary, current terms absent from that baseline emit MEDIUM-priority new-entry rows. Partial watchlist baselines never create false new-term alerts.",
            "default": true
          },
          "emitRemovedBaselineRows": {
            "title": "Emit removed baseline rows",
            "type": "boolean",
            "description": "If true, baseline rows absent from the current Schema.org vocabulary emit HIGH-priority removed-baseline rows.",
            "default": true
          },
          "alertOnAnySemanticChange": {
            "title": "Alert on semantic changes",
            "type": "boolean",
            "description": "If true, changed semantic hashes for baseline-matched Schema.org terms produce alert rows.",
            "default": true
          },
          "maxRows": {
            "title": "Maximum dataset rows",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum rows to emit after priority sorting. Alerts, removals, changes, new rows, watched rows, deprecated rows, pending rows, and summaries are kept first.",
            "default": 500
          },
          "requestTimeoutSecs": {
            "title": "Request timeout seconds",
            "minimum": 5,
            "maximum": 120,
            "type": "integer",
            "description": "Per-request timeout for the official Schema.org JSON-LD vocabulary fetch.",
            "default": 30
          },
          "maxFetchAttempts": {
            "title": "Maximum fetch attempts",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Maximum bounded retry attempts for the official Schema.org source. Keep this low to avoid hammering official sources.",
            "default": 2
          },
          "maxResponseBytes": {
            "title": "Maximum response bytes",
            "minimum": 100000,
            "maximum": 20000000,
            "type": "integer",
            "description": "Maximum accepted response size for the official Schema.org JSON-LD vocabulary.",
            "default": 5000000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}