{
  "openapi": "3.0.1",
  "info": {
    "title": "UK Public Tenders Feed: Find a Tender + Contracts Finder",
    "description": "New UK public sector tenders, pipeline and contract award notices from the official Find a Tender and Contracts Finder APIs. Filter by CPV, region, value, keyword, buyer. Schedule it daily and get only notices you have not seen. No API key, no contact data.",
    "version": "0.0",
    "x-build-id": "IIaizUVKppI7hDAFt"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/asunoki~uk-public-tenders-feed/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-asunoki-uk-public-tenders-feed",
        "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/asunoki~uk-public-tenders-feed/runs": {
      "post": {
        "operationId": "runs-sync-asunoki-uk-public-tenders-feed",
        "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/asunoki~uk-public-tenders-feed/run-sync": {
      "post": {
        "operationId": "run-sync-asunoki-uk-public-tenders-feed",
        "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": {
          "noticeTypes": {
            "title": "Notice types",
            "type": "array",
            "description": "Leave empty for opportunities only.",
            "items": {
              "type": "string",
              "enum": [
                "opportunity",
                "planning",
                "award",
                "update"
              ],
              "enumTitles": [
                "Opportunities (tender notices you can bid on)",
                "Pipeline and planning (pipeline, preliminary market engagement, planned procurement)",
                "Awards (contract award, contract details, transparency notices: who won)",
                "Updates (changes, cancellations, terminations, performance)"
              ]
            }
          },
          "cpvPrefixes": {
            "title": "CPV codes (or their start)",
            "type": "array",
            "description": "2 to 8 digits. 72 = IT services, 48 = software, 45 = construction works, 79 = business services, 85 = health and social work, 90 = waste and environmental. A notice matches if any of its CPV codes starts with one of these. Leave empty for all.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Keywords (any)",
            "type": "array",
            "description": "Only notices whose title or description contains at least one of these (case-insensitive), e.g. cyber, data platform, CCTV.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Drop notices whose title or description contains any of these.",
            "items": {
              "type": "string"
            }
          },
          "regions": {
            "title": "Regions (ITL / NUTS codes)",
            "type": "array",
            "description": "Delivery or buyer region codes or their start: UKC North East, UKD North West, UKE Yorkshire and the Humber, UKF East Midlands, UKG West Midlands, UKH East of England, UKI London, UKJ South East, UKK South West, UKL Wales, UKM Scotland, UKN Northern Ireland. Contracts Finder region names are mapped to these codes. Nationwide (UK) notices always match.",
            "items": {
              "type": "string"
            }
          },
          "includeUnknownRegion": {
            "title": "Keep notices without any region",
            "type": "boolean",
            "description": "Many Contracts Finder notices state no region. Turn off to drop them when a region filter is set.",
            "default": true
          },
          "minValueGbp": {
            "title": "Minimum value (GBP)",
            "minimum": 0,
            "type": "integer",
            "description": "Estimated contract value excluding VAT (or including VAT if that is all the notice gives; for awards, the awarded value)."
          },
          "maxValueGbp": {
            "title": "Maximum value (GBP)",
            "minimum": 0,
            "type": "integer",
            "description": "Leave empty for no maximum."
          },
          "includeUnknownValue": {
            "title": "Keep notices without a value",
            "type": "boolean",
            "description": "About a third of notices publish no value. Turn off to drop them when a value filter is set.",
            "default": true
          },
          "openOnly": {
            "title": "Open opportunities only",
            "type": "boolean",
            "description": "Drop tender notices whose submission deadline has passed or that are cancelled. Other notice types are not affected.",
            "default": true
          },
          "smeSuitableOnly": {
            "title": "Suitable for SMEs only",
            "type": "boolean",
            "description": "Only notices (or at least one lot) the buyer marked as suitable for small and medium-sized enterprises.",
            "default": false
          },
          "buyerNameContains": {
            "title": "Buyer name contains",
            "type": "array",
            "description": "e.g. NHS, Council, Ministry of Defence.",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "title": "Sources",
            "type": "array",
            "description": "Leave empty for both. A notice published on both is output once (the Find a Tender copy).",
            "items": {
              "type": "string",
              "enum": [
                "find-a-tender",
                "contracts-finder"
              ],
              "enumTitles": [
                "Find a Tender (all Procurement Act 2023 notices and above-threshold notices)",
                "Contracts Finder (lower-value and older-regime notices in England)"
              ]
            }
          },
          "days": {
            "title": "Days to look back",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Window of publication dates read on every run. With \"only new\" on, use more days than your schedule interval (3 for a daily schedule, 10 for weekly) so nothing falls between runs.",
            "default": 3
          },
          "onlyNew": {
            "title": "Only notices not output before (for schedules)",
            "type": "boolean",
            "description": "Remembered per filter set in a named key-value store. Turn off to get the whole window every time.",
            "default": true
          },
          "maxItems": {
            "title": "Max notices per run",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "You are charged per notice stored, so this caps the cost of a run. About 350 Find a Tender and 110 Contracts Finder notices of all types are published per working day. Notices cut by the limit stay new for the next run.",
            "default": 200
          },
          "descriptionMaxChars": {
            "title": "Description length (characters)",
            "minimum": 0,
            "maximum": 20000,
            "type": "integer",
            "description": "Descriptions are shortened to this length (keywords are matched on the full text). 0 leaves the description out.",
            "default": 1000
          },
          "stateStoreName": {
            "title": "State store name (advanced)",
            "type": "string",
            "description": "Leave empty to use the default."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}