{
  "openapi": "3.0.1",
  "info": {
    "title": "UK Find a Tender: Contract End Dates & Amendments",
    "description": "Track published contract end dates, renewal terms and amendments in UK Find a Tender records. Monitor an OCID watchlist or update window, compare saved snapshots, and export buyer, supplier and value evidence with notice links. End dates indicate possible renewal windows.",
    "version": "0.0",
    "x-build-id": "YGUwitJNPi6D9jnmz"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/felixgoldwin~uk-contract-renewal-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-felixgoldwin-uk-contract-renewal-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/felixgoldwin~uk-contract-renewal-monitor/runs": {
      "post": {
        "operationId": "runs-sync-felixgoldwin-uk-contract-renewal-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/felixgoldwin~uk-contract-renewal-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-felixgoldwin-uk-contract-renewal-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": {
          "ocids": {
            "title": "Explicit OCID watchlist",
            "type": "array",
            "description": "Official FTS OCIDs. Use this list OR a date range. No URLs or credentials. Maximum 50. The prefilled OCID is a public demonstration contract, not a claim that renewal is imminent.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "updatedFrom": {
            "title": "Update window start",
            "type": "string",
            "description": "ISO date-time with timezone. Required with updatedTo when ocids is empty. Maximum window 31 days."
          },
          "updatedTo": {
            "title": "Update window end",
            "type": "string",
            "description": "ISO date-time with timezone. Discovery identifies updated processes, then reads their current compiled records."
          },
          "asOfDate": {
            "title": "Renewal evaluation date",
            "type": "string",
            "description": "Optional UTC YYYY-MM-DD. Defaults to run date. Does not affect source change comparison."
          },
          "pageSize": {
            "title": "Releases per page",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Hard runtime bound. Incomplete scans never generate changes or a reusable snapshot.",
            "default": 20
          },
          "maxPages": {
            "title": "Maximum discovery pages",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Hard runtime bound. Incomplete scans never generate changes or a reusable snapshot.",
            "default": 5
          },
          "maxProcesses": {
            "title": "Maximum processes",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Hard runtime bound. Incomplete scans never generate changes or a reusable snapshot.",
            "default": 20
          },
          "maxResults": {
            "title": "Maximum result rows",
            "minimum": 1,
            "maximum": 250,
            "type": "integer",
            "description": "Hard runtime bound. Incomplete scans never generate changes or a reusable snapshot.",
            "default": 100
          },
          "maxRequests": {
            "title": "Maximum HTTP attempts",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Hard runtime bound. Incomplete scans never generate changes or a reusable snapshot.",
            "default": 30
          },
          "maxRetries": {
            "title": "Retries per request",
            "minimum": 0,
            "maximum": 3,
            "type": "integer",
            "description": "Hard runtime bound. Incomplete scans never generate changes or a reusable snapshot.",
            "default": 2
          },
          "maxSeconds": {
            "title": "Maximum scan seconds",
            "minimum": 1,
            "maximum": 300,
            "type": "integer",
            "description": "Hard runtime bound. Incomplete scans never generate changes or a reusable snapshot.",
            "default": 90
          },
          "maxResponseBytes": {
            "title": "Maximum bytes per response",
            "minimum": 1024,
            "maximum": 10000000,
            "type": "integer",
            "description": "Hard runtime bound. Incomplete scans never generate changes or a reusable snapshot.",
            "default": 5000000
          },
          "renewalWindowDays": {
            "title": "Potential renewal window days",
            "minimum": 1,
            "maximum": 1095,
            "type": "integer",
            "description": "Published end dates only; no guaranteed retender claim.",
            "default": 180
          },
          "maxBudgetUsd": {
            "title": "Maximum event budget USD",
            "minimum": 0,
            "maximum": 20,
            "type": "number",
            "description": "Caps estimated/local or configured event charges, including automatic start reserve per 1GB unit. Does not cap platform compute/storage. No manual start event is charged.",
            "default": 0.25
          },
          "previousSnapshot": {
            "title": "Previous complete snapshot",
            "type": "object",
            "description": "Paste only OUTPUT.previousSnapshot from a complete scan for the same OCIDs or exact update window. Do not include secrets. Maximum total input 1.5 MB."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}