{
  "openapi": "3.0.1",
  "info": {
    "title": "EU + UK Tenders Pack - TED & UK Notices, Only New",
    "description": "EU and UK public tenders in one feed: TED (official API), UK Find a Tender and Contracts Finder. Filter by country, CPV, notice type and date, dedupe notices across sources and use only-new mode for alerts. Structured contact fields excluded.",
    "version": "0.1",
    "x-build-id": "G35HuHas8IlhOjfSc"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/digivibetech~eu-uk-tenders-pack/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-digivibetech-eu-uk-tenders-pack",
        "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/digivibetech~eu-uk-tenders-pack/runs": {
      "post": {
        "operationId": "runs-sync-digivibetech-eu-uk-tenders-pack",
        "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/digivibetech~eu-uk-tenders-pack/run-sync": {
      "post": {
        "operationId": "run-sync-digivibetech-eu-uk-tenders-pack",
        "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": "Official notice feeds to read. Default: TED only (unchanged behaviour). Add the UK feeds for one harmonised EU + UK list. Each row says its source, licence and notice link.",
            "items": {
              "type": "string",
              "enum": [
                "ted",
                "uk-fts",
                "uk-cf"
              ],
              "enumTitles": [
                "EU TED (official Expert Search API)",
                "UK Find a Tender (official OCDS API, OGL v3.0)",
                "UK Contracts Finder (official OCDS API, OGL v3.0)"
              ]
            },
            "default": [
              "ted"
            ]
          },
          "query": {
            "title": "Expert search query (optional)",
            "type": "string",
            "description": "TED only. Raw TED Expert Search query, e.g. buyer-country = \"NLD\" AND publication-date >= 20261001. Combined with the helper filters below using AND."
          },
          "countries": {
            "title": "Buyer countries",
            "type": "array",
            "description": "ISO country codes (NLD, BEL, DEU…). OR-combined in the TED query.",
            "items": {
              "type": "string"
            }
          },
          "cpvPrefixes": {
            "title": "CPV codes / prefixes",
            "type": "array",
            "description": "2–8 digit CPV codes. Shorter codes are padded with zeros to 8 digits (72 → 72000000) and matched exactly on classification-cpv. Also applied to UK notices (matched on the code's significant digits).",
            "items": {
              "type": "string"
            }
          },
          "noticeTypes": {
            "title": "Notice types",
            "type": "array",
            "description": "TED notice-type values, e.g. cn-standard, can-standard, qu-sy.",
            "items": {
              "type": "string"
            }
          },
          "publishedSince": {
            "title": "Published since",
            "type": "string",
            "description": "Either a number of days (e.g. 7) or a date YYYYMMDD / YYYY-MM-DD. Maps to publication-date >= … Also bounds the UK feeds (default 7 days when a UK source is selected)."
          },
          "ukKeywords": {
            "title": "UK keywords (any of)",
            "type": "array",
            "description": "UK feeds only: keep notices whose title, description or buyer contains any of these words (case-insensitive). Empty = all UK tender notices in the date window. TED uses 'query' and the helpers above.",
            "items": {
              "type": "string"
            }
          },
          "ukActiveOnly": {
            "title": "UK: open notices only",
            "type": "boolean",
            "description": "UK feeds only: drop cancelled, withdrawn or completed notices.",
            "default": true
          },
          "dedupeAcrossSources": {
            "title": "Merge the same notice across sources",
            "type": "boolean",
            "description": "The same tender is often on both Find a Tender and Contracts Finder. With this on you get it once (first selected source wins) and the other copies are listed in alsoPublishedIn. You pay once.",
            "default": true
          },
          "maxNotices": {
            "title": "Max notices",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Newest matching notices to return across all selected sources (each costs $0.00089). Rows are mixed round-robin so every source is represented. Keep small for canaries.",
            "default": 50
          },
          "onlyNew": {
            "title": "Only new notices (monitor mode)",
            "type": "boolean",
            "description": "Return only publication numbers not seen in earlier runs with the same monitor name. Ideal for a daily schedule + webhook.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Separate only-new monitors by using different names (letters, digits, '-' ; max 40).",
            "default": "default"
          },
          "redactContactDetails": {
            "title": "Mask buyer-name contact patterns",
            "type": "boolean",
            "description": "Recommended: masks detected contact patterns in buyer names. UK description and title filtering are unconditional even with this switch off. Structured personal-contact fields are excluded. Descriptions default to omission and retain only controlled domain wording after contact, Unicode name and address-pattern checks. Labels preserve known occupational wording, but omit detected contact/address spans and uncertain multi-word tails regardless of case. Unfamiliar roles, languages and ordinary phrases may be shortened or omitted; descriptions can be null. Single-token names, names overlapping domain vocabulary, obfuscation and unrecognised address forms remain ambiguous. This is not a PII-free feed; review outputs before reuse. Labels pair unfamiliar alphabetic tokens with complete house-number units in either order across a bounded heuristic separator gap. House numbers support one or two Unicode letters, bis/ter/quater suffixes, slash/dash subunits and ordinal units such as 2nd, 3rd or 2ºB. The gap allows whitespace, class punctuation, or punctuation around a conventional number marker, including degree/ordinal spellings n.°/n°./n.º, nº/№/no, nr and αρ. Immediately before a number, one-to-three-letter Unicode house abbreviations (such as d., д., č., núm, num, nro or дом) are also treated as possible markers; connector letters remain ordinary wording otherwise. The cap is four NFKC-normalized, case-folded non-space characters, excluding at most one abbreviation period owned by the marker. Class punctuation includes Arabic comma, comma/semicolon/colon/period, slash/backslash, middle-dot, dash-family and #. Adjacent complete numeric/ordinal units and recognized marker residues are coalesced with omitted spans. Known occupational/domain wording such as Python, 3 and Java; 21 is retained; short abbreviations and ordinary numbered labels can be ambiguous or omitted. This is not worldwide address coverage: other address forms and single-token names remain ambiguous. Delivery boundary (Jobs and UK feeds): The same bounded address heuristic also filters company/companyName and the company component of jobKey on Jobs, and buyerNames/placeOfPerformance on UK notices, irrespective of the contact-redaction switch. Excluded company aliases are null; derived job keys use sanitized aliases or opaque stand-ins. Query/input diagnostics are unchanged safe labels or opaque SHA-256 correlation references; exception details are opaque, with fixed reasons and HTTP statuses retained. Jobs and UK rows whose sanitized title and description are both empty are not saved or charged; a remaining role prefix is eligible. Conservative filtering can also omit legitimate buyer/region labels (including code-like region labels). Existing ambiguity limits still apply: no worldwide, address-free or PII-free guarantee.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}