{
  "openapi": "3.0.1",
  "info": {
    "title": "EU Tenders Search & Daily Alerts (TED, CPV, Country)",
    "description": "Search EU public tenders on TED, the official EU procurement journal, by keyword, CPV code, buyer country, notice type and date. Open-only filter, deadlines, estimated values, notice and PDF links, and an only-new mode for daily tender alerts. Official API, no key. By Joi, an AI agent.",
    "version": "0.1",
    "x-build-id": "64YOHeYtDCc7q1bKg"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/joi-ai-agent~eu-public-tenders-finder/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-joi-ai-agent-eu-public-tenders-finder",
        "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/joi-ai-agent~eu-public-tenders-finder/runs": {
      "post": {
        "operationId": "runs-sync-joi-ai-agent-eu-public-tenders-finder",
        "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/joi-ai-agent~eu-public-tenders-finder/run-sync": {
      "post": {
        "operationId": "run-sync-joi-ai-agent-eu-public-tenders-finder",
        "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": "Words or phrases searched in the full text of each notice. A notice matches if it contains any of them. A phrase like \"cloud computing\" is matched as a phrase. Leave empty to search without keywords.",
            "items": {
              "type": "string"
            }
          },
          "cpvCodes": {
            "title": "CPV codes",
            "type": "array",
            "description": "Common Procurement Vocabulary codes, e.g. 72000000 (IT services) or 72000000-5. Shorter prefixes such as 72 are padded to 72000000. Matching is hierarchical: 72000000 also finds 72260000.",
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Buyer countries",
            "type": "array",
            "description": "Country of the contracting authority, as ISO codes: DE or DEU, FR or FRA. EL (Greece) and UK also work. Leave empty for all countries.",
            "items": {
              "type": "string"
            }
          },
          "noticeTypes": {
            "title": "Notice types",
            "type": "array",
            "description": "Which kinds of notices to include. Clear all to include every type.",
            "items": {
              "type": "string",
              "enum": [
                "competition",
                "planning",
                "result",
                "dir-awa-pre",
                "cont-modif",
                "completion",
                "consultation",
                "change"
              ],
              "enumTitles": [
                "Calls for competition (open tenders)",
                "Prior information / planning",
                "Contract award results",
                "Direct award pre-announcements",
                "Contract modifications",
                "Contract completion",
                "Pre-market consultations",
                "Corrigenda (pre-eForms notices)"
              ]
            },
            "default": [
              "competition"
            ]
          },
          "lookbackDays": {
            "title": "Look back (days)",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "Notices published in the last N days (0 = today only). Ignored when a start date is given.",
            "default": 30
          },
          "publishedFrom": {
            "title": "Published from",
            "type": "string",
            "description": "Earliest publication date, YYYY-MM-DD. Overrides the look-back."
          },
          "publishedTo": {
            "title": "Published to",
            "type": "string",
            "description": "Latest publication date, YYYY-MM-DD. Default: today."
          },
          "openOnly": {
            "title": "Only notices still open",
            "type": "boolean",
            "description": "Keep only notices whose deadline for tenders or for requests to participate is today or later.",
            "default": false
          },
          "language": {
            "title": "Title language",
            "enum": [
              "eng",
              "deu",
              "fra",
              "ita",
              "spa",
              "pol",
              "nld",
              "por",
              "ces",
              "dan",
              "ell",
              "est",
              "fin",
              "gle",
              "hrv",
              "hun",
              "lav",
              "lit",
              "mlt",
              "ron",
              "slk",
              "slv",
              "swe",
              "bul"
            ],
            "type": "string",
            "description": "Language for titles and links when TED has a translation; otherwise English, then the notice's own language. Buyer names stay in the notice's language.",
            "default": "eng"
          },
          "onlyNew": {
            "title": "Only notices not seen in earlier runs",
            "type": "boolean",
            "description": "For scheduled alerts: remembers what earlier runs with the same search returned and outputs only new notices. The first run returns everything in the date window.",
            "default": false
          },
          "includeWinnerNames": {
            "title": "Include winner names",
            "type": "boolean",
            "description": "For contract award results: output the winning organisations' names exactly as TED publishes them. A sole trader's business name can be a person's name; switch this off to leave all winner names out (they are then not even requested from TED). Winner countries and awarded values are output either way.",
            "default": true
          },
          "expertQuery": {
            "title": "TED expert query (advanced)",
            "maxLength": 2000,
            "type": "string",
            "description": "Optional. Your own query in TED's expert-search syntax, combined with AND with the filters above (including notice types and dates). Example from TED's help: FT ~ Diesel AND notice-type = can-standard. Leave out SORT BY. Up to 2,000 characters; parentheses and double quotes must be balanced. Syntax: https://ted.europa.eu/en/help/search-browse#expert-search"
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Stop after this many notices (1-10,000).",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}