{
  "openapi": "3.0.1",
  "info": {
    "title": "EU Public Tenders (TED) Search & Monitor",
    "description": "Search and monitor EU public procurement notices from the official TED API: contract notices, awards, winners, values and lots. Filter by keyword, CPV, country and date. Daily alerts for new tenders.",
    "version": "0.1",
    "x-build-id": "GcB4KAnIr685m3c1G"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/kyyzen0~eu-ted-tenders/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-kyyzen0-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/kyyzen0~eu-ted-tenders/runs": {
      "post": {
        "operationId": "runs-sync-kyyzen0-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/kyyzen0~eu-ted-tenders/run-sync": {
      "post": {
        "operationId": "run-sync-kyyzen0-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": {
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Full-text keywords. Multiple keywords are combined with OR, for example [\"cloud\", \"hosting\"].",
            "items": {
              "type": "string"
            }
          },
          "cpvCodes": {
            "title": "CPV codes",
            "type": "array",
            "description": "CPV classification codes. Use 8-digit codes (for example \"72000000\"), wildcard prefixes (for example \"72*\"), or codes with a check digit (for example \"72000000-5\").",
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Country codes as ISO alpha-2 or alpha-3 (for example \"FR\" or \"FRA\"). Alpha-2 codes are converted to alpha-3 automatically.",
            "items": {
              "type": "string"
            }
          },
          "countryField": {
            "title": "Country field",
            "enum": [
              "buyer-country",
              "place-of-performance"
            ],
            "type": "string",
            "description": "Whether to filter on the buyer's country or the place of performance.",
            "default": "buyer-country"
          },
          "noticeTypes": {
            "title": "Notice types",
            "type": "array",
            "description": "Restrict results to specific TED notice types. Leave empty to include all notice types.",
            "items": {
              "type": "string",
              "enum": [
                "pin-only",
                "pin-buyer",
                "pin-rtl",
                "pin-tran",
                "pin-cfc-standard",
                "pin-cfc-social",
                "qu-sy",
                "cn-standard",
                "cn-social",
                "cn-desg",
                "can-standard",
                "can-social",
                "can-desg",
                "can-tran",
                "can-modif",
                "veat",
                "pmc",
                "compl",
                "brin-ecs",
                "brin-eeig"
              ],
              "enumTitles": [
                "Prior information notice",
                "Prior information notice (buyer profile)",
                "Prior information notice (reduced time limits)",
                "Prior information notice (transitional)",
                "Prior information notice (call for competition)",
                "Prior information notice (social services)",
                "Qualification system",
                "Contract notice",
                "Contract notice (social services)",
                "Contract notice (design contest)",
                "Contract award notice",
                "Contract award notice (social services)",
                "Contract award notice (design contest)",
                "Contract award notice (transitional)",
                "Contract modification notice",
                "Voluntary ex-ante transparency notice",
                "Prior market consultation",
                "Completion notice",
                "Buyer profile notice (European company survey)",
                "Buyer profile notice (European economic interest grouping)"
              ]
            },
            "default": []
          },
          "publishedInLastDays": {
            "title": "Published in the last N days",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Used when 'Published from' is empty. Defaults to the last 7 days.",
            "default": 7
          },
          "publishedFrom": {
            "title": "Published from",
            "type": "string",
            "description": "Start of the publication date range. Accepts an absolute date (YYYY-MM-DD) or a relative value such as \"7 days\", \"2 weeks\" or \"1 month\"."
          },
          "publishedTo": {
            "title": "Published to",
            "type": "string",
            "description": "End of the publication date range. Accepts an absolute date (YYYY-MM-DD) or a relative value such as \"today\"."
          },
          "onlyOpenTenders": {
            "title": "Only open tenders",
            "type": "boolean",
            "description": "Only include notices whose tender deadline is today or later.",
            "default": false
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum number of notices to collect.",
            "default": 100
          },
          "detailedMode": {
            "title": "Detailed mode",
            "type": "boolean",
            "description": "Include lots, values, winners and award criteria. Billed as notice-detailed.",
            "default": false
          },
          "preferredLanguage": {
            "title": "Preferred language",
            "enum": [
              "eng",
              "fra",
              "deu",
              "spa",
              "ita",
              "nld",
              "pol",
              "por",
              "ron",
              "ces",
              "slk",
              "slv",
              "hun",
              "bul",
              "hrv",
              "ell",
              "dan",
              "swe",
              "fin",
              "est",
              "lav",
              "lit",
              "mlt",
              "gle"
            ],
            "type": "string",
            "description": "Language used for multilingual titles and descriptions when available.",
            "default": "eng"
          },
          "onlyNewNotices": {
            "title": "Only new notices (monitoring mode)",
            "type": "boolean",
            "description": "Return only notices not returned by a previous run with the same search (or the same Monitor ID). Schedule the Actor daily to get alerts. The first run returns everything in the date window and remembers it. Set Max results high enough to cover a full day.",
            "default": false
          },
          "monitorId": {
            "title": "Monitor ID",
            "type": "string",
            "description": "Optional name for the monitor state. Defaults to a hash of the normalized search parameters."
          },
          "customQuery": {
            "title": "Custom TED query",
            "type": "string",
            "description": "Advanced TED expert query, combined with the other filters using AND."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}