{
  "openapi": "3.0.1",
  "info": {
    "title": "Public Tenders & Contract Awards Feed - EU, UK, NL",
    "description": "Tenders and contract awards from TED, UK Find a Tender, Contracts Finder and TenderNed in one schema. Filter by CPV, country, value; incremental mode.",
    "version": "0.1",
    "x-build-id": "bakGYiOMIKfbtZngy"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/luc-dts~tenders-awards-feed/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-luc-dts-tenders-awards-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/luc-dts~tenders-awards-feed/runs": {
      "post": {
        "operationId": "runs-sync-luc-dts-tenders-awards-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/luc-dts~tenders-awards-feed/run-sync": {
      "post": {
        "operationId": "run-sync-luc-dts-tenders-awards-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": {
          "sources": {
            "title": "Sources",
            "type": "array",
            "description": "Which official sources to query. TED = EU-wide (Tenders Electronic Daily). UK Find a Tender and Contracts Finder = United Kingdom. TenderNed = Netherlands.",
            "items": {
              "type": "string",
              "enum": [
                "ted",
                "uk-fts",
                "uk-cf",
                "tenderned"
              ],
              "enumTitles": [
                "TED (EU)",
                "UK Find a Tender",
                "UK Contracts Finder",
                "TenderNed (NL)"
              ]
            },
            "default": [
              "ted",
              "uk-fts",
              "uk-cf",
              "tenderned"
            ]
          },
          "stages": {
            "title": "Notice stages",
            "type": "array",
            "description": "Which stage of the procurement process to return: planning (prior information), tender (open call), award (winner announced), contract, amendment, cancellation.",
            "items": {
              "type": "string",
              "enum": [
                "planning",
                "tender",
                "award",
                "contract",
                "amendment",
                "cancellation"
              ]
            },
            "default": [
              "tender",
              "award"
            ]
          },
          "countries": {
            "title": "Buyer countries (TED)",
            "type": "array",
            "description": "ISO country codes of the contracting authority, for example NL, DE, FR, GB (alpha-2 or alpha-3). Empty = all countries. TED filters on the country; the UK sources (GB) and TenderNed (NL) are skipped when their country is not selected.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "cpvPrefixes": {
            "title": "CPV code prefixes",
            "type": "array",
            "description": "Match CPV codes that start with these digits, for example 72 (IT services) or 7222 (IT consultancy). Empty = all categories.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "keywords": {
            "title": "Keywords (any of)",
            "type": "array",
            "description": "Keep notices whose title or description contains at least one of these words (case-insensitive). Applied after fetching, so combine with CPV or country filters for large result sets.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Drop notices whose title or description contains any of these words.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "minValue": {
            "title": "Minimum value",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum estimated or awarded value in the notice's own currency. Notices without a value are dropped when a limit is set."
          },
          "maxValue": {
            "title": "Maximum value",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum estimated or awarded value in the notice's own currency."
          },
          "currency": {
            "title": "Currency for value filters",
            "type": "string",
            "description": "Three-letter currency code (for example EUR or GBP). Values are never converted: only notices in this currency pass the value filter. Leave empty to compare numbers regardless of currency."
          },
          "deadlineWithinDays": {
            "title": "Deadline within N days",
            "minimum": 0,
            "type": "integer",
            "description": "Only notices whose submission deadline falls within the next N days. Notices without a deadline are dropped when this is set."
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "incremental",
              "window"
            ],
            "type": "string",
            "description": "incremental = only notices that are new or changed since the previous run of the same monitor (same state key and filters); schedule this Actor to get alerts. Each notice carries changeType 'new' or 'updated'. State is kept for 14 days in a key-value store of your account. window = everything published in the given period, no state.",
            "default": "incremental"
          },
          "publishedSince": {
            "title": "Published since",
            "type": "string",
            "description": "Either a date (YYYY-MM-DD) or a relative period such as 24h or 7d. Default: 7d in window mode, 24h otherwise. In incremental mode it only sets the look-back of the very first run; later runs continue where the previous run stopped. TED publishes date-only, so the effective resolution is one day."
          },
          "stateKey": {
            "title": "State key",
            "type": "string",
            "description": "Name of this monitor (letters, digits, dash, underscore). Different keys keep separate incremental state. Changing any filter also starts a fresh monitor.",
            "default": "default"
          },
          "maxItems": {
            "title": "Maximum items",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Hard upper limit of notices returned in one run. Protects your budget.",
            "default": 100
          },
          "includeDescription": {
            "title": "Include description",
            "type": "boolean",
            "description": "Include the notice description (truncated to 2000 characters).",
            "default": true
          },
          "includeRaw": {
            "title": "Include raw source data",
            "type": "boolean",
            "description": "Attach the unmodified source record to each notice (larger output).",
            "default": false
          },
          "tenderNedScope": {
            "title": "TenderNed scope",
            "enum": [
              "auto",
              "all",
              "national"
            ],
            "type": "string",
            "description": "auto = when TED is also selected, TenderNed adds only national notices (below the EU threshold), because EU-level notices appear in TED with more detail; otherwise all TenderNed notices. all = every TenderNed notice (EU-level ones may duplicate TED). national = only notices below the EU threshold.",
            "default": "auto"
          },
          "healthCheck": {
            "title": "Run health check (diagnostics)",
            "type": "boolean",
            "description": "Checks every source with a tiny live request and reports whether the data still has the expected shape. Delivers no notices and costs nothing. The result is stored under the key HEALTHCHECK.",
            "default": false
          },
          "omitWinnerNames": {
            "title": "Omit winner names",
            "type": "boolean",
            "description": "Leave out winner names in award notices (the number of winners is still reported). Useful if your use case must avoid data about sole traders.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}