{
  "openapi": "3.0.1",
  "info": {
    "title": "UK Public Tenders (Find a Tender + Contracts Finder)",
    "description": "UK public procurement notices from the official Find a Tender service and Contracts Finder: tenders above and below threshold, awards with suppliers and values. Filter by CPV, keywords, region, value and date. Normalized JSON.",
    "version": "1.0",
    "x-build-id": "cDKwSj2EHB1Lz9a84"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/danielefontana~uk-tenders/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-danielefontana-uk-tenders",
        "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/danielefontana~uk-tenders/runs": {
      "post": {
        "operationId": "runs-sync-danielefontana-uk-tenders",
        "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/danielefontana~uk-tenders/run-sync": {
      "post": {
        "operationId": "run-sync-danielefontana-uk-tenders",
        "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": {
          "noticeKinds": {
            "title": "Notice kind",
            "type": "array",
            "description": "competition = calls for tenders (open opportunities); result = contract awards (who won, for how much); planning = pipeline and prior information notices; other = cancellations, terminations, contract changes.",
            "items": {
              "type": "string",
              "enum": [
                "competition",
                "result",
                "planning",
                "other"
              ],
              "enumTitles": [
                "Calls for tenders (competition)",
                "Contract awards (result)",
                "Pipeline / prior information (planning)",
                "Other (cancellations, terminations, changes)"
              ]
            },
            "default": [
              "competition"
            ]
          },
          "threshold": {
            "title": "Above or below threshold",
            "enum": [
              "all",
              "above",
              "below"
            ],
            "type": "string",
            "description": "below = contracts below the procurement thresholds (smaller contracts, SME-friendly); above = contracts above the thresholds. Notices that do not say are kept only with 'all'.",
            "default": "all"
          },
          "regions": {
            "title": "Regions (NUTS / ITL codes)",
            "type": "array",
            "description": "Prefixes of the buyer's region code or of the delivery region: UKI = London, UKJ = South East, UKD = North West, UKM = Scotland, UKL = Wales, UKN = Northern Ireland, UKI3 = Inner London West... Empty = whole UK. Contracts Finder notices carry no region and are dropped when this filter is set.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "cpvCodes": {
            "title": "CPV codes or prefixes",
            "type": "array",
            "description": "Common Procurement Vocabulary codes. A prefix matches the whole division: 72 = IT services, 45 = construction, 85 = health and social care, 79 = business services, 90 = environmental. Full codes like 72253000 are accepted too.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Words or phrases searched in title and description (case and accent insensitive). Any keyword may match. Example: software, \"facilities management\", cyber.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "contractNatures": {
            "title": "Contract type",
            "type": "array",
            "description": "Works, services or goods. Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "works",
                "services",
                "goods"
              ],
              "enumTitles": [
                "Works",
                "Services",
                "Goods"
              ]
            },
            "default": []
          },
          "buyerNames": {
            "title": "Buyer name contains",
            "type": "array",
            "description": "Keep only notices whose buyer name contains one of these phrases, e.g. \"NHS\", \"County Council\", \"Ministry of Defence\".",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "daysBack": {
            "title": "Published in the last N days",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Used when 'Published from' is empty. Find a Tender can be slow (up to ~2 minutes per request), so each day adds about 1–2 minutes to the run. Default 7 = last week when the field is left empty.",
            "default": 7
          },
          "dateFrom": {
            "title": "Published from (YYYY-MM-DD)",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Overrides 'daysBack'. Lower bound, inclusive."
          },
          "dateTo": {
            "title": "Published until (YYYY-MM-DD)",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Upper bound, inclusive. Empty = today."
          },
          "minValue": {
            "title": "Minimum estimated value (GBP)",
            "minimum": 0,
            "type": "integer",
            "description": "Skips notices whose estimated value (net of VAT) is known and lower than this amount. Notices without a value are kept."
          },
          "onlyOpen": {
            "title": "Only tenders still open",
            "type": "boolean",
            "description": "Keep only notices whose deadline for tenders has not passed yet (notices without a deadline are dropped).",
            "default": false
          },
          "maxItems": {
            "title": "Maximum results",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many records. You are only charged for records actually written. Empty = no limit (subject to your Apify spending cap)."
          },
          "sources": {
            "title": "Sources",
            "type": "array",
            "description": "fts = Find a Tender, the central platform for all procurements under the Procurement Act 2023 (above and below threshold); cf = Contracts Finder, still used for notices under the previous rules. Both by default.",
            "items": {
              "type": "string",
              "enum": [
                "fts",
                "cf"
              ],
              "enumTitles": [
                "Find a Tender",
                "Contracts Finder"
              ]
            },
            "default": [
              "fts",
              "cf"
            ]
          },
          "includeUpdates": {
            "title": "Include updates and amendments",
            "type": "boolean",
            "description": "Also return update notices (changed deadlines, corrections). On Find a Tender these contain only the changed fields.",
            "default": false
          },
          "includeRaw": {
            "title": "Include raw OCDS release",
            "type": "boolean",
            "description": "Adds the original OCDS release under the `raw` field (larger output).",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}