{
  "openapi": "3.0.1",
  "info": {
    "title": "Public Tenders API: UK Find a Tender, Contracts Finder & EU TED",
    "description": "UK and EU public tenders API: contract opportunities and awards from the official Find a Tender, Contracts Finder and TED (EU) APIs in one flat schema. Filter by keyword, CPV code, value, region, country and buyer. $2 per 1,000 notices, no start fee. No personal contact data.",
    "version": "0.1",
    "x-build-id": "v7jSjAfbXEi1c67Wd"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/localwire~uk-public-tenders/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-localwire-uk-public-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/localwire~uk-public-tenders/runs": {
      "post": {
        "operationId": "runs-sync-localwire-uk-public-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/localwire~uk-public-tenders/run-sync": {
      "post": {
        "operationId": "run-sync-localwire-uk-public-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": {
          "sources": {
            "title": "Sources",
            "type": "array",
            "description": "Which official sources to read. fts = Find a Tender (higher-value notices, whole UK); contractsFinder = Contracts Finder (lower-value opportunities and awards in England); ted = TED, every above-threshold notice in the EU and EEA (opt in, and use countries to narrow it). If left out, the two UK sources are read. A notice published on both UK sources is returned once.",
            "items": {
              "type": "string",
              "enum": [
                "fts",
                "contractsFinder",
                "ted"
              ],
              "enumTitles": [
                "Find a Tender (FTS)",
                "Contracts Finder",
                "TED (EU and EEA)"
              ]
            },
            "default": [
              "fts",
              "contractsFinder"
            ]
          },
          "stages": {
            "title": "Stages",
            "type": "array",
            "description": "Which part of the procurement to return: planning (early market engagement and pipeline notices), tender (open opportunities you can bid for) or award (who won, and for how much). If left out, only tender.",
            "items": {
              "type": "string",
              "enum": [
                "planning",
                "tender",
                "award"
              ],
              "enumTitles": [
                "Planning (pipeline / market engagement)",
                "Tender (open opportunities)",
                "Award (contract winners)"
              ]
            },
            "default": [
              "tender"
            ]
          },
          "lastDays": {
            "title": "Last N days",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Notices published or updated in this many days up to now (1 to 365; 7 if left out). Ignored when 'From date' is set. For daily alerts, schedule the Actor every day with 1 or 2 here.",
            "default": 7
          },
          "dateFrom": {
            "title": "From date",
            "type": "string",
            "description": "Start of an explicit date window, e.g. 2026-10-01. Overrides 'Last N days'."
          },
          "dateTo": {
            "title": "To date",
            "type": "string",
            "description": "End of the date window, inclusive, e.g. 2026-10-31. Defaults to now."
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Return notices whose title, description or lot titles contain ANY of these words or phrases (case-insensitive), e.g. software, cleaning, \"social care\".",
            "items": {
              "type": "string"
            }
          },
          "cpvCodes": {
            "title": "CPV codes",
            "type": "array",
            "description": "CPV classification prefixes, 2 to 8 digits. \"72\" matches all IT services, \"7226\" software-related services, \"45000000\" construction work.",
            "items": {
              "type": "string"
            }
          },
          "minValue": {
            "title": "Minimum value (GBP; EUR on TED)",
            "minimum": 0,
            "type": "integer",
            "description": "Only notices with an estimated or awarded value of at least this amount. Compared in pounds on the UK sources and in euros on TED; values are not converted."
          },
          "maxValue": {
            "title": "Maximum value (GBP; EUR on TED)",
            "minimum": 0,
            "type": "integer",
            "description": "Only notices worth at most this amount (pounds on the UK sources, euros on TED)."
          },
          "includeUnknownValue": {
            "title": "Include notices without a value",
            "type": "boolean",
            "description": "Many notices publish no value. With a value filter set, they are excluded unless this is on.",
            "default": false
          },
          "regions": {
            "title": "Regions",
            "type": "array",
            "description": "Delivery regions: NUTS/ITL code prefixes (UKI = London, UKJ = South East, UKM = Scotland, TLJ3 also works) or region names (\"North West\").",
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Countries (TED)",
            "type": "array",
            "description": "For the TED source: keep notices from buyers in ANY of these countries, as ISO codes or names (GB, DEU, Germany). Applied by TED's own search, so a narrow list keeps runs small. Ignored by the UK sources.",
            "items": {
              "type": "string"
            }
          },
          "buyerName": {
            "title": "Buyer name contains",
            "type": "string",
            "description": "Only notices from buyers whose name contains this text, e.g. \"NHS\", \"County Council\", \"Ministry of Defence\"."
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many notices. Each notice returned is one charged result ($0.002), so 50 notices cost $0.10. 500 if left out; pass a small number for a quick sample.",
            "default": 500
          },
          "deduplicate": {
            "title": "Remove duplicates",
            "type": "boolean",
            "description": "Return a notice once even if it is published on both UK sources or updated several times in the window (the newest version is kept).",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}