{
  "openapi": "3.0.1",
  "info": {
    "title": "EU Public Tenders (TED) – Deadlines, Lots & Daily Alerts",
    "description": "EU-wide public procurement notices from TED (Tenders Electronic Daily) as clean JSON: deadlines, lots, values in EUR, buyer, CPV and NUTS. Filter by country, CPV, region, keywords, value and open deadline; 'new since last run' mode for daily tender alerts. No personal data.",
    "version": "0.1",
    "x-build-id": "diYzNOHLbaJSeRg1O"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/adamplaenitz~eu-ted-tenders/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-adamplaenitz-eu-ted-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/adamplaenitz~eu-ted-tenders/runs": {
      "post": {
        "operationId": "runs-sync-adamplaenitz-eu-ted-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/adamplaenitz~eu-ted-tenders/run-sync": {
      "post": {
        "operationId": "run-sync-adamplaenitz-eu-ted-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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "dateRange",
              "newSinceLastRun"
            ],
            "type": "string",
            "description": "'Date range' returns all matching notices published in the range. 'New since last run' returns only notices this Actor has not delivered before with the same filters – ideal for scheduled daily tender alerts.",
            "default": "dateRange"
          },
          "dateFrom": {
            "title": "Published from",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
            "type": "string",
            "description": "YYYY-MM-DD. Leave both dates empty for the latest OJ S issue on TED (published Monday to Friday). Date range mode only."
          },
          "dateTo": {
            "title": "Published to",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
            "type": "string",
            "description": "YYYY-MM-DD. Empty = today if 'Published from' is set, otherwise the latest issue. Maximum 92 days per run."
          },
          "lookbackDays": {
            "title": "Lookback days (new since last run)",
            "minimum": 1,
            "maximum": 14,
            "type": "integer",
            "description": "Checks notices published today and on the previous N days (1–14). Notices already delivered for the same filters are never delivered twice, so a longer lookback only closes gaps (e.g. after a missed run).",
            "default": 3
          },
          "noticeTypes": {
            "title": "Notice types",
            "type": "array",
            "description": "competition = calls for tenders (contract notices, PIN used as call for competition), result = contract award notices, planning = prior information notices, cont-modif = contract modifications, dir-awa-pre = voluntary ex-ante transparency notices, consultation = preliminary market consultations.",
            "items": {
              "type": "string",
              "enum": [
                "competition",
                "result",
                "planning",
                "cont-modif",
                "dir-awa-pre",
                "consultation"
              ],
              "enumTitles": [
                "Competition (calls for tenders)",
                "Result (contract awards)",
                "Planning (prior information)",
                "Contract modification",
                "Direct award pre-notice (VEAT)",
                "Market consultation"
              ]
            },
            "default": [
              "competition"
            ]
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "ISO country codes (2 or 3 letters, e.g. DE, FR, PL or DEU). Matches the buyer's country or the place of performance. Empty = all countries.",
            "items": {
              "type": "string"
            }
          },
          "cpvCodes": {
            "title": "CPV codes",
            "type": "array",
            "description": "CPV codes or groups; trailing zeros match the whole group: 45000000 = all construction work, 72000000 = all IT services, 90910000 = cleaning services. Matches main and additional CPV codes of the notice and its lots.",
            "items": {
              "type": "string"
            }
          },
          "nutsRegions": {
            "title": "Regions (NUTS)",
            "type": "array",
            "description": "NUTS code prefixes of the buyer or the place of performance, e.g. DE2 (Bavaria), DE21 (Upper Bavaria), FR10 (Île-de-France), ITC4 (Lombardy), NL3. Use 'Countries' for whole countries.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "At least one must appear in the title, description or lot titles (case and accents ignored; partial words match, so 'reinigung' finds 'Gebäudereinigung'; keywords of up to 3 characters such as IT, BIM or LED match whole words only). Notices are written in the buyer's language, so add translations (cleaning, Reinigung, nettoyage …). Keywords also match TED's English headline, which contains the English name of the main CPV category.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Notices containing any of these words in title, description or lot titles are skipped.",
            "items": {
              "type": "string"
            }
          },
          "procedureTypes": {
            "title": "Procedure types",
            "type": "array",
            "description": "Empty = all procedure types.",
            "items": {
              "type": "string",
              "enum": [
                "open",
                "restricted",
                "neg-w-call",
                "neg-wo-call",
                "comp-dial",
                "innovation",
                "oth-single",
                "oth-mult",
                "comp-tend"
              ],
              "enumTitles": [
                "Open",
                "Restricted",
                "Negotiated with prior publication",
                "Negotiated without prior publication",
                "Competitive dialogue",
                "Innovation partnership",
                "Other single-stage",
                "Other multi-stage",
                "Competitive tendering (public transport)"
              ]
            }
          },
          "minEstimatedValue": {
            "title": "Minimum estimated value (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Only notices with an estimated value of at least this amount. Other currencies are converted with the ECB reference rates. Many notices state no value – they are kept unless 'Exclude notices without value' is set. Award notices without an estimate use the awarded value."
          },
          "excludeWithoutValue": {
            "title": "Exclude notices without value",
            "type": "boolean",
            "description": "Skip notices that state neither an estimated nor an awarded value.",
            "default": false
          },
          "onlyOpenDeadlines": {
            "title": "Only open deadlines",
            "type": "boolean",
            "description": "Skip calls for tenders whose next deadline (submission or request to participate) has already passed.",
            "default": false
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Upper limit of notices per run (each delivered notice is charged). Results are sorted newest first.",
            "default": 1000
          },
          "expertQuery": {
            "title": "TED expert query (advanced)",
            "type": "string",
            "description": "Optional extra condition in TED expert search syntax, combined with AND, e.g. 'buyer-legal-type IN (la ra)' or 'sme-lot=true' (lots suitable for SMEs). Do not include dates or SORT BY. See https://ted.europa.eu/en/search/expert-search for the field list."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}