{
  "openapi": "3.0.1",
  "info": {
    "title": "UK Council Procurement Signals | Contracts & Renewals",
    "description": "AI-ready UK council procurement monitor: finds evidence-backed awards, renewals, waivers, exemptions, budgets, vendors, values, and source-page evidence in official council documents.",
    "version": "0.1",
    "x-build-id": "mujUzkcBofbukT1bp"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/laced_kirtan~uk-council-procurement-signals/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-laced_kirtan-uk-council-procurement-signals",
        "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/laced_kirtan~uk-council-procurement-signals/runs": {
      "post": {
        "operationId": "runs-sync-laced_kirtan-uk-council-procurement-signals",
        "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/laced_kirtan~uk-council-procurement-signals/run-sync": {
      "post": {
        "operationId": "run-sync-laced_kirtan-uk-council-procurement-signals",
        "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": [
          "sources"
        ],
        "properties": {
          "sources": {
            "title": "Council sources",
            "minItems": 1,
            "type": "array",
            "description": "Official council meeting, agenda, committee, procurement, forward-plan, minutes, or document URLs. Add one object per council source.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "title": "Source URL",
                  "description": "An official council HTML page or PDF URL.",
                  "type": "string",
                  "editor": "textfield"
                },
                "council": {
                  "title": "Council name",
                  "description": "Optional council name used to make output consistent.",
                  "type": "string",
                  "editor": "textfield"
                },
                "country": {
                  "title": "Country",
                  "description": "Country code; defaults to UK.",
                  "type": "string",
                  "editor": "textfield",
                  "default": "UK"
                },
                "platform": {
                  "title": "Meeting platform",
                  "description": "Use auto unless the platform is known.",
                  "type": "string",
                  "editor": "select",
                  "enum": [
                    "auto",
                    "boarddocs",
                    "diligent",
                    "simbli",
                    "granicus",
                    "legistar",
                    "primegov",
                    "civicweb",
                    "generic"
                  ],
                  "enumTitles": [
                    "Auto-detect",
                    "BoardDocs",
                    "Diligent",
                    "Simbli",
                    "Granicus",
                    "Legistar",
                    "PrimeGov",
                    "CivicWeb",
                    "Generic"
                  ],
                  "default": "auto"
                },
                "enabled": {
                  "title": "Enabled",
                  "description": "Disable a source temporarily without removing it.",
                  "type": "boolean",
                  "default": true
                }
              }
            }
          },
          "maxDocumentsPerSource": {
            "title": "Max documents per source",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum number of relevant HTML/PDF documents to inspect for each source URL.",
            "default": 20
          },
          "onlyNewOrChanged": {
            "title": "Only new or changed signals",
            "type": "boolean",
            "description": "Persist signal fingerprints in the Actor key-value store and emit only first-seen or materially changed signals on later runs.",
            "default": true
          },
          "minConfidence": {
            "title": "Minimum confidence",
            "minimum": 0,
            "maximum": 1,
            "type": "number",
            "description": "Drop signals below this deterministic confidence score unless includeLowConfidence is enabled.",
            "default": 0.55
          },
          "includeLowConfidence": {
            "title": "Include low-confidence signals",
            "type": "boolean",
            "description": "Include triage candidates below minConfidence for review and tuning.",
            "default": false
          },
          "maxAttachmentBytes": {
            "title": "Max attachment size",
            "minimum": 1000000,
            "maximum": 20000000,
            "type": "integer",
            "description": "Skip documents larger than this size to protect run time and margins.",
            "default": 15000000
          },
          "requestTimeoutSecs": {
            "title": "Request timeout",
            "minimum": 5,
            "maximum": 120,
            "type": "integer",
            "description": "HTTP timeout per source or attachment request.",
            "default": 30
          },
          "maxSources": {
            "title": "Max sources",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Safety limit on the number of source objects processed in one run.",
            "default": 100
          },
          "maxUniqueSignals": {
            "title": "Max unique signals",
            "minimum": 100,
            "maximum": 50000,
            "type": "integer",
            "description": "Hard run-level result bound that protects memory on unusually large inputs.",
            "default": 10000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}