{
  "openapi": "3.0.1",
  "info": {
    "title": "EU TED Public Procurement Tenders, Awards & Buyer Email Leads",
    "description": "Extract live European Union Tenders Electronic Daily (TED API v3) open procurement notices & contract awards across all 27 EU/EEA countries with CPV codes, EUR values, submission deadlines, winners & verified buyer emails.",
    "version": "1.0",
    "x-build-id": "Pj16KBavpxihnbTqO"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/regpulse-data~eu-ted-public-procurement-tenders-buyer-leads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-regpulse-data-eu-ted-public-procurement-tenders-buyer-leads",
        "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/regpulse-data~eu-ted-public-procurement-tenders-buyer-leads/runs": {
      "post": {
        "operationId": "runs-sync-regpulse-data-eu-ted-public-procurement-tenders-buyer-leads",
        "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/regpulse-data~eu-ted-public-procurement-tenders-buyer-leads/run-sync": {
      "post": {
        "operationId": "run-sync-regpulse-data-eu-ted-public-procurement-tenders-buyer-leads",
        "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": "Operation Mode",
            "enum": [
              "open_tenders",
              "contract_awards",
              "all_notices",
              "watchlist_diff"
            ],
            "type": "string",
            "description": "Select 'open_tenders' for active EU/EEA contract notices (cn-standard, cn-social, cn-desg), 'contract_awards' for awarded contracts with winners & awarded values (can-standard, can-social, can-modif), 'all_notices' for all TED notice types, or 'watchlist_diff' for stateful monitoring of newly published or updated notices.",
            "default": "open_tenders"
          },
          "query": {
            "title": "Full-Text Keyword Search",
            "type": "string",
            "description": "Optional full-text search across EU TED notices (e.g., 'cloud cybersecurity', 'SAP ERP', '\"medical imaging\"', 'solar'). Safely escaped for TED Expert Search syntax."
          },
          "countries": {
            "title": "Buyer Countries (ISO-3 or ISO-2 Codes)",
            "type": "array",
            "description": "Filter by EU/EEA buyer country codes. Accepts ISO-3 (e.g., DEU, FRA, NLD, IRL, ESP, ITA, SWE, POL) or ISO-2 (e.g., DE, FR, NL, IE, ES, IT, SE, PL) which are auto-converted to ISO-3. Leave empty for all EU/EEA countries.",
            "items": {
              "type": "string"
            }
          },
          "cpvPrefixes": {
            "title": "CPV Sector Code Prefixes",
            "type": "array",
            "description": "Filter by EU Common Procurement Vocabulary (CPV) numeric prefixes — e.g., ['72', '48'] for IT & Software, ['79'] for Business & Consulting, ['45'] for Construction, ['33'] for Medical Equipment, ['71'] for Architecture & Engineering. Leave empty for all sectors.",
            "items": {
              "type": "string"
            }
          },
          "daysBack": {
            "title": "Publication Lookback Window (Days)",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Number of calendar days back from today to include notices by publication date (1 to 365).",
            "default": 14
          },
          "minEstimatedValue": {
            "title": "Minimum Estimated / Contract Value",
            "minimum": 0,
            "type": "number",
            "description": "Optional minimum contract value threshold (in the notice's reported currency, typically EUR). Notices without a value meeting this threshold are excluded."
          },
          "onlyOpenDeadlines": {
            "title": "Only Open Submission Deadlines",
            "type": "boolean",
            "description": "When enabled, returns only tenders whose submission deadline is still in the future. If omitted, automatically defaults to true in 'open_tenders' mode and false in 'contract_awards', 'all_notices', and 'watchlist_diff'."
          },
          "hasBuyerEmailOnly": {
            "title": "Only Notices With Verified Buyer Email",
            "type": "boolean",
            "description": "When enabled, excludes notices that lack a direct public-sector procurement buyer email address.",
            "default": false
          },
          "maxResults": {
            "title": "Maximum Notices to Return",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of structured EU TED notices to deliver (1 to 5,000).",
            "default": 100
          },
          "stateStoreName": {
            "title": "Watchlist State Store Name (for watchlist_diff Mode)",
            "type": "string",
            "description": "Named persistent Apify Key-Value Store used to retain previously seen EU TED publication numbers and notice states between scheduled watchlist runs.",
            "default": "eu-ted-procurement-watchlist-state"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}