{
  "openapi": "3.0.1",
  "info": {
    "title": "UK Tenders Alerts: Contracts Finder + Find a Tender",
    "description": "UK tenders and awards from Contracts Finder + Find a Tender, filtered by keyword or CPV; about 3 in 10 award supplier names withheld; not an official service.",
    "version": "0.0",
    "x-build-id": "YMe5s88nhHmnqvQOd"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/persistent_parrot~uk-tenders-alerts/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-persistent_parrot-uk-tenders-alerts",
        "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/persistent_parrot~uk-tenders-alerts/runs": {
      "post": {
        "operationId": "runs-sync-persistent_parrot-uk-tenders-alerts",
        "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/persistent_parrot~uk-tenders-alerts/run-sync": {
      "post": {
        "operationId": "run-sync-persistent_parrot-uk-tenders-alerts",
        "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": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "monitor"
            ],
            "type": "string",
            "description": "Search returns every notice published in the date range that passes your filters. Monitor remembers what it already sent (per task) and returns only new or changed notices; schedule it daily.",
            "default": "search"
          },
          "sources": {
            "title": "Sources",
            "type": "array",
            "description": "Which official feeds to read. Notices posted on both are merged into one row.",
            "items": {
              "type": "string",
              "enum": [
                "contractsFinder",
                "findATender"
              ],
              "enumTitles": [
                "Contracts Finder",
                "Find a Tender"
              ]
            },
            "default": [
              "contractsFinder",
              "findATender"
            ]
          },
          "dateFrom": {
            "title": "From (search mode)",
            "type": "string",
            "description": "ISO date or datetime, UTC (e.g. 2026-10-16 or 2026-10-16T09:00:00Z). A date without a time means 00:00 UTC. Default: 24 hours ago. The range may span at most 31 days."
          },
          "dateTo": {
            "title": "To (search mode)",
            "type": "string",
            "description": "ISO date or datetime, UTC. A date without a time means 00:00 UTC, so 2026-10-17 stops at the start of that day; use 2026-10-18 to include all of 17 October. Default: now."
          },
          "lookbackHours": {
            "title": "First-run lookback hours (monitor mode)",
            "minimum": 1,
            "maximum": 744,
            "type": "integer",
            "description": "How far back the first monitor run looks. Later runs continue from the previous run (with a 2-hour overlap).",
            "default": 24
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Keeps a notice when any of these words appears in its title or description (upper and lower case count the same). Max 50. Empty = no keyword filter.",
            "items": {
              "type": "string"
            }
          },
          "cpvPrefixes": {
            "title": "CPV code prefixes",
            "type": "array",
            "description": "Digits only, 2 to 8 long, e.g. 45 (construction) or 7226 (software services). Keeps notices with any CPV code starting with one of them.",
            "items": {
              "type": "string"
            }
          },
          "buyers": {
            "title": "Buyer names",
            "type": "array",
            "description": "Keep notices whose buyer name contains any of these (case-insensitive), e.g. NHS, Council.",
            "items": {
              "type": "string"
            }
          },
          "regions": {
            "title": "Regions",
            "type": "array",
            "description": "Delivery region as published (e.g. East of England) or a buyer region code prefix (e.g. UKI for London).",
            "items": {
              "type": "string"
            }
          },
          "postcodePrefixes": {
            "title": "Postcode prefixes",
            "type": "array",
            "description": "e.g. SN, SW1, M1. Matched against the delivery postcode and the buyer postcode, ignoring spaces and case.",
            "items": {
              "type": "string"
            }
          },
          "noticeTypes": {
            "title": "Notice types",
            "type": "array",
            "description": "Empty = all types. Use tender for open opportunities and award for results.",
            "items": {
              "type": "string",
              "enum": [
                "tenderCancellation",
                "awardCancellation",
                "contractTermination",
                "awardUpdate",
                "award",
                "contractAmendment",
                "contractUpdate",
                "contract",
                "tenderAmendment",
                "tenderUpdate",
                "tender",
                "planningUpdate",
                "planning"
              ]
            }
          },
          "deadlineAfter": {
            "title": "Deadline after",
            "type": "string",
            "description": "ISO date. Keeps notices whose submission deadline is later than this date (00:00 UTC). Notices without a deadline are dropped when this is set."
          },
          "minValue": {
            "title": "Minimum value (GBP)",
            "type": "number",
            "description": "Tested on the awarded value, or the estimated value if there is no award."
          },
          "maxValue": {
            "title": "Maximum value (GBP)",
            "type": "number",
            "description": "Tested on the awarded value, or the estimated value if there is no award."
          },
          "includeUnknownValue": {
            "title": "Keep notices with no value",
            "type": "boolean",
            "description": "When a minimum or maximum value is set, keep notices that publish no value.",
            "default": true
          },
          "smeSuitable": {
            "title": "Only SME-suitable",
            "type": "boolean",
            "description": "Keep only notices flagged as suitable for small and medium enterprises.",
            "default": false
          },
          "vcseSuitable": {
            "title": "Only VCSE-suitable",
            "type": "boolean",
            "description": "Keep only notices flagged as suitable for voluntary, community and social enterprises.",
            "default": false
          },
          "maxRows": {
            "title": "Max rows",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many result rows (cost control).",
            "default": 1000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}