{
  "openapi": "3.0.1",
  "info": {
    "title": "EU + NL Tender Alert Feed (TED + TenderNed)",
    "description": "Filtered public tender alerts from official TED (EU) and TenderNed (Netherlands) APIs. Filter by country, CPV sector and keywords. Dedup across sources. Organisation-level fields only, no personal data.",
    "version": "0.1",
    "x-build-id": "9lrYmYEaZ3flHBcON"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/kayorama~eu-tender-alert-feed/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-kayorama-eu-tender-alert-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/kayorama~eu-tender-alert-feed/runs": {
      "post": {
        "operationId": "runs-sync-kayorama-eu-tender-alert-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/kayorama~eu-tender-alert-feed/run-sync": {
      "post": {
        "operationId": "run-sync-kayorama-eu-tender-alert-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",
        "required": [
          "sources",
          "buyerCountries",
          "noticeTypes"
        ],
        "properties": {
          "sources": {
            "title": "Sources",
            "uniqueItems": true,
            "type": "array",
            "description": "Official open APIs to read. TenderNed only covers the Netherlands, so NLD must be in buyer countries when TenderNed is selected.",
            "items": {
              "type": "string",
              "enum": [
                "ted",
                "tenderned"
              ],
              "enumTitles": [
                "TED (EU)",
                "TenderNed (Netherlands)"
              ]
            },
            "default": [
              "ted",
              "tenderned"
            ]
          },
          "buyerCountries": {
            "title": "Buyer countries (ISO 3166 alpha-3)",
            "type": "array",
            "description": "TED buyer countries, e.g. NLD, BEL, DEU. Add NLD when you want TenderNed national notices below the EU threshold.",
            "default": [
              "NLD"
            ],
            "items": {
              "type": "string"
            }
          },
          "noticeTypes": {
            "title": "Notice types",
            "uniqueItems": true,
            "type": "array",
            "description": "Contract notices are calls for tender. Market consultations are early PIN / MAC notices.",
            "items": {
              "type": "string",
              "enum": [
                "contract",
                "market_consultation"
              ],
              "enumTitles": [
                "Contract notice",
                "Market consultation"
              ]
            },
            "default": [
              "contract"
            ]
          },
          "lookbackDays": {
            "title": "Lookback days",
            "minimum": 1,
            "maximum": 90,
            "type": "integer",
            "description": "Publication window counted back from today (or asOfDate). Use 7 for a weekly feed.",
            "default": 7
          },
          "asOfDate": {
            "title": "As-of date",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Optional run date YYYY-MM-DD. Defaults to today."
          },
          "cpvPrefixes": {
            "title": "CPV prefixes",
            "type": "array",
            "description": "2 to 8 digit CPV prefixes without check digit. Example: 72 = IT services, 48 = software, 45 = construction.",
            "items": {
              "type": "string"
            }
          },
          "includeKeywords": {
            "title": "Include keywords",
            "type": "array",
            "description": "NL or EN words matched at word start (so cloud also matches cloudoplossing). End a word with ! for whole-word only.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Drop notices that hit these words.",
            "items": {
              "type": "string"
            }
          },
          "matchMode": {
            "title": "How CPV and keywords combine",
            "enum": [
              "cpv_or_keyword",
              "cpv",
              "keyword",
              "cpv_and_keyword"
            ],
            "type": "string",
            "description": "cpv_or_keyword keeps notices that match either filter (recommended). cpv / keyword / cpv_and_keyword are stricter.",
            "default": "cpv_or_keyword"
          },
          "minValueEur": {
            "title": "Minimum estimated value (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Many Dutch notices publish no value; those stay unless keepUnknownValue is off."
          },
          "maxValueEur": {
            "title": "Maximum estimated value (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional upper bound on estimated procedure value."
          },
          "keepUnknownValue": {
            "title": "Keep notices without a value",
            "type": "boolean",
            "description": "Recommended on. TenderNed public data has no value field.",
            "default": true
          },
          "minDaysLeft": {
            "title": "Minimum days left until deadline",
            "minimum": 0,
            "type": "integer",
            "description": "Drop notices whose deadline is closer than this (0 keeps open notices including those closing today).",
            "default": 0
          },
          "maxDaysLeft": {
            "title": "Maximum days left until deadline",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Drop notices whose deadline is farther out than this."
          },
          "keepUnknownDeadline": {
            "title": "Keep notices without a deadline",
            "type": "boolean",
            "description": "Recommended on. Some notices publish no deadline yet.",
            "default": true
          },
          "closingSoonDays": {
            "title": "Closing-soon window (days)",
            "minimum": 1,
            "maximum": 90,
            "type": "integer",
            "description": "Mark closingSoon when days left are within this window.",
            "default": 14
          },
          "trackChanges": {
            "title": "Track new tenders between runs",
            "type": "boolean",
            "description": "Compare with the previous run in a named key-value store and set isNew. First run treats notices published in the last 7 days as new.",
            "default": true
          },
          "stateStoreName": {
            "title": "State store name",
            "type": "string",
            "description": "Named key-value store that keeps seen tender IDs between runs when trackChanges is on.",
            "default": "eu-tender-alert-feed-state"
          },
          "outputMode": {
            "title": "Output mode",
            "enum": [
              "all",
              "newOnly"
            ],
            "type": "string",
            "description": "all = every matched open tender. newOnly = only tenders marked isNew (needs trackChanges).",
            "default": "all"
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Hard cap on rows pushed to the dataset (and billed). Leave empty for no extra cap beyond your pay-per-event budget."
          },
          "tedMaxPages": {
            "title": "TED max pages",
            "minimum": 1,
            "maximum": 80,
            "type": "integer",
            "description": "Safety cap. Each page is up to 250 notices before local filtering.",
            "default": 20
          },
          "tendernedMaxPages": {
            "title": "TenderNed max list pages",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Safety cap per notice type. Each page is up to 100 list rows; details are fetched (and cached) per notice.",
            "default": 30
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}