{
  "openapi": "3.0.1",
  "info": {
    "title": "EU TED Tenders via API – TED Europa & Scheduled Alerts",
    "description": "Unofficial tool by LAX Labs. Not affiliated with or endorsed by the Publications Office of the EU. EU TED tenders via the official TED Search API (TED Europa) and scheduled alerts. 0–100 score; optional AI. Personal names and contact details are filtered automatically (best effort, see Limitations).",
    "version": "0.1",
    "x-build-id": "lrOnNlhuK2s1XHGsg"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/laxlabs~ted-tender-radar/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-laxlabs-ted-tender-radar",
        "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/laxlabs~ted-tender-radar/runs": {
      "post": {
        "operationId": "runs-sync-laxlabs-ted-tender-radar",
        "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/laxlabs~ted-tender-radar/run-sync": {
      "post": {
        "operationId": "run-sync-laxlabs-ted-tender-radar",
        "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 to search in the full text of the notices (any language TED indexes). A notice matches if it contains ANY of them. Leave empty to rely on CPV codes / countries only. Example: \"cybersecurity\", \"cloud hosting\".",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "cpvCodes": {
            "title": "CPV codes",
            "type": "array",
            "description": "Common Procurement Vocabulary codes (8 digits). Matching is hierarchical: 72000000 also finds 72260000, 72267100 and every other IT-services code. Example: 72000000 (IT services), 48000000 (software packages).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Buyer countries",
            "type": "array",
            "description": "Country of the contracting authority, as ISO codes – 2 letters (DE, FR, PL) or 3 letters (DEU, FRA, POL). Leave empty for all EU/EEA countries.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "noticeTypes": {
            "title": "Notice types",
            "type": "array",
            "description": "TED eForms notice types. The default covers notices you can still bid on (contract notices, calls for competition, qualification systems). Award / result notices (can-*, veat, compl) are not offered because they can name individual winners.",
            "items": {
              "type": "string",
              "enum": [
                "cn-standard",
                "cn-social",
                "cn-desg",
                "pin-cfc-standard",
                "pin-cfc-social",
                "qu-sy",
                "subco",
                "pin-only",
                "pin-buyer",
                "pin-rtl",
                "pin-tran",
                "pmc",
                "corr"
              ],
              "enumTitles": [
                "Contract notice (standard)",
                "Contract notice (social & other specific services)",
                "Design contest notice",
                "Prior information notice used as call for competition",
                "Prior information notice as call for competition (social services)",
                "Qualification system notice",
                "Subcontracting notice",
                "Prior information notice (planning only)",
                "Buyer profile notice",
                "Prior information notice – reduced time limits",
                "Prior information notice – public transport",
                "Pre-market consultation",
                "Corrigendum"
              ]
            },
            "default": [
              "cn-standard",
              "cn-social",
              "cn-desg",
              "pin-cfc-standard",
              "pin-cfc-social",
              "qu-sy"
            ]
          },
          "publishedFrom": {
            "title": "Published from",
            "type": "string",
            "description": "Earliest publication date: YYYY-MM-DD, or a relative value such as \"3 days\", \"2 weeks\", \"1 month\", \"yesterday\". For a daily schedule use \"1 day\" together with \"Only new tenders\".",
            "default": "7 days"
          },
          "publishedTo": {
            "title": "Published to",
            "type": "string",
            "description": "Latest publication date: YYYY-MM-DD, \"today\" or a relative value like \"1 day\".",
            "default": "today"
          },
          "onlyOpen": {
            "title": "Only tenders still open",
            "type": "boolean",
            "description": "Skip notices whose submission deadline has already passed. Notices without a deadline are kept.",
            "default": true
          },
          "onlyNew": {
            "title": "Only new tenders (for schedules)",
            "type": "boolean",
            "description": "Remember which notices this exact search already delivered (stored as notice IDs in a named key-value store in your account) and return only new ones on the next run. Ideal for a daily schedule.",
            "default": false
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Hard cap on tenders delivered in this run, up to 10,000.",
            "default": 100
          },
          "minRelevanceScore": {
            "title": "Minimum relevance score",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Only deliver tenders whose relevance score (0-100) is at least this value. Tenders below the threshold are skipped.",
            "default": 0
          },
          "buyerProfile": {
            "title": "Your company profile (for scoring)",
            "type": "string",
            "description": "Describe what your company sells and which tenders you want to win. Used by the free deterministic relevance score and, if enabled, by the AI analysis. Do not include personal data."
          },
          "enableAi": {
            "title": "AI summary and AI relevance (bring your own key)",
            "type": "boolean",
            "description": "Add an AI summary, AI relevance score with reason and key requirements to tenders that already passed your filters and minimum score, using YOUR OWN LLM provider key (BYOK). Your provider bills you for tokens. There is no extra Actor fee for AI.",
            "default": false
          },
          "aiProvider": {
            "title": "AI provider",
            "enum": [
              "openrouter",
              "openai",
              "gemini",
              "groq",
              "custom"
            ],
            "type": "string",
            "description": "Any OpenAI-compatible provider. OpenRouter gives access to many low-cost models (and rate-limited free variants ending in :free) with one key; Google Gemini offers a free tier.",
            "default": "openrouter"
          },
          "aiModel": {
            "title": "AI model",
            "type": "string",
            "description": "Model ID at your provider. Leave empty for the low-cost default: google/gemini-2.5-flash-lite (OpenRouter), gpt-5-nano (OpenAI), gemini-2.5-flash-lite (Gemini), openai/gpt-oss-20b (Groq).",
            "default": ""
          },
          "aiBaseUrl": {
            "title": "Custom API base URL",
            "type": "string",
            "description": "Only for provider \"custom\": https base URL of an OpenAI-compatible API (the Actor calls {base}/chat/completions).",
            "default": ""
          },
          "aiCredentials": {
            "title": "Your AI provider key (secret)",
            "type": "object",
            "description": "Encrypted secret. Enter a JSON object with your own key, for example {\"apiKey\": \"<your provider key>\"}. It is used only for calls to your AI provider during this run and is never logged, stored or written to the output."
          },
          "aiLanguage": {
            "title": "AI summary language",
            "enum": [
              "en",
              "he",
              "de",
              "fr",
              "es",
              "it",
              "pl",
              "nl",
              "pt"
            ],
            "type": "string",
            "description": "Language of the AI summary, reason and requirements. TED notices in any EU language are summarized in this language.",
            "default": "en"
          },
          "maxAiAnalyses": {
            "title": "Maximum AI analyses",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Cap on AI analyses in this run. Each analysis uses your own provider tokens. Remaining tenders are delivered without an AI summary.",
            "default": 50
          },
          "minRelevanceScoreForAi": {
            "title": "Minimum relevance score for AI",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "AI runs only on tenders that already passed all your filters AND have at least this deterministic relevance score (0-100). Use it to spend AI only on strong matches; lower-scored tenders are still delivered, without AI.",
            "default": 0
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}