{
  "openapi": "3.0.1",
  "info": {
    "title": "EU TED Tenders Monitor: Public Procurement Alerts & Awards",
    "description": "Scrape and monitor EU public tenders from the official TED API. Get only new public procurement notices, deadline changes with before/after values, cancellations, contract awards and reminders. No API key, no duplicates.",
    "version": "0.1",
    "x-build-id": "6Y8zuJbykaccdiR9z"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/noticewatch~ted-tender-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-noticewatch-ted-tender-monitor",
        "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/noticewatch~ted-tender-monitor/runs": {
      "post": {
        "operationId": "runs-sync-noticewatch-ted-tender-monitor",
        "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/noticewatch~ted-tender-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-noticewatch-ted-tender-monitor",
        "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": [
              "monitor",
              "search"
            ],
            "type": "string",
            "description": "Monitor remembers what you have already received. Search returns a one-off list and remembers nothing.",
            "default": "monitor"
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Exact words or phrases. TED notices are written in each buyer's language, so add translations (software, logiciel, Wartung). Use softw* for word beginnings.",
            "items": {
              "type": "string"
            }
          },
          "cpvCodes": {
            "title": "CPV codes",
            "type": "array",
            "description": "EU product codes, 2 to 8 digits. 72 covers all IT services, 45 all construction. Sub-codes are included automatically.",
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Buyer countries",
            "type": "array",
            "description": "ISO codes with 2 or 3 letters (ES or ESP). Leave empty for all countries.",
            "items": {
              "type": "string"
            }
          },
          "regions": {
            "title": "Regions (NUTS)",
            "type": "array",
            "description": "Place of performance, e.g. ES61 (Andalusia) or FR10 (Paris region). Sub-regions are included.",
            "items": {
              "type": "string"
            }
          },
          "noticeKinds": {
            "title": "What to search",
            "uniqueItems": true,
            "type": "array",
            "description": "Awards and corrections of tenders you already received always arrive in Monitor mode, whatever you choose here.",
            "items": {
              "type": "string",
              "enum": [
                "opportunities",
                "planning",
                "awards",
                "contractChanges"
              ],
              "enumTitles": [
                "Open opportunities",
                "Planned tenders",
                "Awards (who won)",
                "Contract changes"
              ]
            },
            "default": [
              "opportunities"
            ]
          },
          "keywordMode": {
            "title": "Match",
            "enum": [
              "any",
              "all"
            ],
            "type": "string",
            "description": "How several keywords are combined.",
            "default": "any"
          },
          "keywordScope": {
            "title": "Look for keywords in",
            "enum": [
              "anywhere",
              "title"
            ],
            "type": "string",
            "description": "Title only gives fewer, more precise results.",
            "default": "anywhere"
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Notices containing any of these are dropped.",
            "items": {
              "type": "string"
            }
          },
          "buyerNames": {
            "title": "Buyer names",
            "type": "array",
            "description": "Only tenders from buyers whose name contains one of these.",
            "items": {
              "type": "string"
            }
          },
          "contractNatures": {
            "title": "Contract type",
            "uniqueItems": true,
            "type": "array",
            "description": "Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "services",
                "supplies",
                "works"
              ],
              "enumTitles": [
                "Services",
                "Supplies",
                "Works"
              ]
            }
          },
          "minValue": {
            "title": "Minimum value",
            "minimum": 0,
            "type": "integer",
            "description": "Compared in the tender's own currency. Many tenders publish no value: see the next options."
          },
          "maxValue": {
            "title": "Maximum value",
            "minimum": 0,
            "type": "integer",
            "description": "Compared in the tender's own currency."
          },
          "includeUnknownValue": {
            "title": "Keep tenders without published value",
            "type": "boolean",
            "description": "Recommended. Many TED notices publish no total value, and a plain value filter would silently hide them.",
            "default": true
          },
          "minRelevance": {
            "title": "Minimum relevance (0-100)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Every result carries a score with its reasons. Raise this to receive fewer, better matches.",
            "default": 0
          },
          "onlyOpen": {
            "title": "Only tenders still open",
            "type": "boolean",
            "description": "Default: yes in Monitor mode, no in Search mode."
          },
          "expertQuery": {
            "title": "TED expert query",
            "type": "string",
            "description": "Optional. Added to the filters above with AND. Example: procedure-type=open"
          },
          "events": {
            "title": "Notify me about",
            "uniqueItems": true,
            "type": "array",
            "description": "Types you do not select are not delivered and not charged.",
            "items": {
              "type": "string",
              "enum": [
                "new",
                "corrected",
                "cancelled",
                "awarded",
                "closedWithoutAward",
                "contractChanged",
                "closingSoon"
              ],
              "enumTitles": [
                "New tenders",
                "Corrections and deadline changes",
                "Cancellations",
                "Awards",
                "Closed without award",
                "Contract changes",
                "Deadline reminders"
              ]
            },
            "default": [
              "new",
              "corrected",
              "cancelled",
              "awarded",
              "closedWithoutAward",
              "closingSoon"
            ]
          },
          "closingSoonDays": {
            "title": "Remind me this many days before the deadline",
            "minimum": 0,
            "maximum": 60,
            "type": "integer",
            "description": "One reminder per deadline. 0 turns reminders off.",
            "default": 5
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Optional. Keeps the same memory even if you edit the filters. Without a name, each combination of filters has its own memory."
          },
          "resetMonitor": {
            "title": "Forget everything and start again",
            "type": "boolean",
            "description": "Use once, then turn it off: otherwise every run delivers (and charges) everything again.",
            "default": false
          },
          "lookbackDays": {
            "title": "Days to look back",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "For the first Monitor run, and for Search without dates.",
            "default": 7
          },
          "dateFrom": {
            "title": "Published from",
            "type": "string",
            "description": "Search mode, or the first Monitor run. Format YYYY-MM-DD."
          },
          "dateTo": {
            "title": "Published until",
            "type": "string",
            "description": "Search mode only. Format YYYY-MM-DD."
          },
          "maxResults": {
            "title": "Maximum results per run",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "In Monitor mode the rest is not lost: it arrives in the next run.",
            "default": 200
          },
          "latestVersionOnly": {
            "title": "One row per tender, latest version",
            "type": "boolean",
            "description": "A tender published and corrected appears once, with its current deadline. Turn off to get every notice.",
            "default": true
          },
          "linkHistory": {
            "title": "Link with earlier notices",
            "type": "boolean",
            "description": "Finds the original tender of each correction or award, to show what changed and what was originally announced.",
            "default": true
          },
          "language": {
            "title": "Preferred language",
            "enum": [
              "bg",
              "cs",
              "da",
              "de",
              "el",
              "en",
              "es",
              "et",
              "fi",
              "fr",
              "ga",
              "hr",
              "hu",
              "it",
              "lt",
              "lv",
              "mt",
              "nl",
              "pl",
              "pt",
              "ro",
              "sk",
              "sl",
              "sv"
            ],
            "type": "string",
            "description": "Used for titles and links when TED offers it. The buyer's own text stays in its original language.",
            "default": "en"
          },
          "includeContacts": {
            "title": "Include buyer contact e-mail and website",
            "type": "boolean",
            "description": "Off by default to keep personal data out. If you turn it on, you are responsible for using it lawfully (GDPR).",
            "default": false
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "type": "string",
            "description": "Optional. A message is sent when there is news. Works with Slack, Discord, Make, n8n, Zapier or your own server. Stored encrypted."
          },
          "webhookFormat": {
            "title": "Webhook format",
            "enum": [
              "json",
              "slack",
              "discord"
            ],
            "type": "string",
            "description": "Use JSON for Make, n8n, Zapier or your own server.",
            "default": "json"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}