{
  "openapi": "3.0.1",
  "info": {
    "title": "Scheduled Release Page Embargo Leak and Stale-Preview Gate",
    "description": "Check each scheduled release page from outside, inside its release window. The Actor fails a gate when the outcome content is public before the release time, or when the preview content is still public after it. It compares the CDN copy with a cache-buste",
    "version": "0.1",
    "x-build-id": "hnZu4r7My7o5Ocsrq"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/kingii98~scheduled-release-page-embargo-leak-and-stale-preview-gate/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-kingii98-scheduled-release-page-embargo-leak-and-stale-preview-gate",
        "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/kingii98~scheduled-release-page-embargo-leak-and-stale-preview-gate/runs": {
      "post": {
        "operationId": "runs-sync-kingii98-scheduled-release-page-embargo-leak-and-stale-preview-gate",
        "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/kingii98~scheduled-release-page-embargo-leak-and-stale-preview-gate/run-sync": {
      "post": {
        "operationId": "run-sync-kingii98-scheduled-release-page-embargo-leak-and-stale-preview-gate",
        "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": [
          "releases"
        ],
        "properties": {
          "releases": {
            "title": "Releases",
            "minItems": 1,
            "maxItems": 50,
            "type": "array",
            "description": "1 to 50 release records. Each record has a \"url\", a \"release_at\" time in ISO 8601 with an offset (for example \"2026-10-15T08:30:00-04:00\"), 1 to 5 \"preview_markers\" and 1 to 5 \"outcome_markers\" as literal strings, and an optional \"expected_reference_period\" string (for example \"August 2026\"). The Actor does not accept regular expressions: a marker matches as a literal text, without regard to letter case or white space. If you keep the two demo records shown below and set no \"as_of\", the Actor checks the demo at 2026-09-01T12:40:00Z.",
            "default": [
              {
                "url": "https://example.com/",
                "release_at": "2026-09-01T08:30:00-04:00",
                "preview_markers": [
                  "Coming soon"
                ],
                "outcome_markers": [
                  "Example Domain"
                ]
              },
              {
                "url": "https://example.org/",
                "release_at": "2026-09-01T09:00:00-04:00",
                "preview_markers": [
                  "Example Domain"
                ],
                "outcome_markers": [
                  "Consumer Price Index rose"
                ]
              }
            ]
          },
          "window_before_minutes": {
            "title": "Window before the release (minutes)",
            "minimum": 1,
            "maximum": 240,
            "type": "integer",
            "description": "The pre-release phase starts this many minutes before release_at. In this phase, an outcome marker on the page is a leak.",
            "default": 60
          },
          "window_after_minutes": {
            "title": "Window after the release (minutes)",
            "minimum": 1,
            "maximum": 240,
            "type": "integer",
            "description": "The post-release phase ends this many minutes after release_at. Outside both phases, the Actor does not request the URL and does not charge for it.",
            "default": 30
          },
          "late_tolerance_minutes": {
            "title": "Late tolerance (minutes)",
            "minimum": 0,
            "maximum": 240,
            "type": "integer",
            "description": "After release_at, the page has this many minutes to show the outcome markers and to remove the preview markers. Inside the tolerance, the verdict is pending, not a fault.",
            "default": 5
          },
          "cache_bust": {
            "title": "Also request a cache-busted copy",
            "type": "boolean",
            "description": "When true, the Actor also requests each URL with a unique query parameter and a no-cache request header. The dataset then shows the CDN copy and the cache-busted copy side by side.",
            "default": true
          },
          "alert_webhook_url": {
            "title": "Alert webhook URL",
            "type": "string",
            "description": "Optional. One public HTTPS URL. The Actor sends one JSON POST for the first fault of each class for each release URL. Private and reserved addresses are refused, and a redirect is not followed. Leave it empty to read the faults in the dataset only.",
            "default": ""
          },
          "ledger_name": {
            "title": "Ledger name",
            "type": "string",
            "description": "The record key of the phase ledger inside the named key-value store \"release-embargo-ledger\". Use one name for each release calendar. The ledger keeps the first time the Actor saw the outcome, the first time the preview was gone, the go-live time, and the fault classes already reported.",
            "default": "DEFAULT"
          },
          "as_of": {
            "title": "Simulate at (optional)",
            "type": "string",
            "description": "Optional. An ISO 8601 time with an offset. When set, the Actor picks each phase as if the time were this value, so you can test your markers before a release day. A simulated run does not read or write the ledger and does not charge fault events. Leave it empty for a scheduled run."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}