{
  "openapi": "3.0.1",
  "info": {
    "title": "EU Tenders Scraper (TED) - Public Contracts, Winners",
    "description": "Scrape EU public tenders from TED, the official EU journal: open calls with deadline, value, buyer email and documents, plus awards with winners. Filter by keyword, country, CPV, buyer, procedure, nature, value, date. Optional AI summary with your own key. $1.50 per 1,000 notices.",
    "version": "0.1",
    "x-build-id": "XRTZDcsyOuGCZq2fv"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/om_kh~eu-tenders-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-om_kh-eu-tenders-scraper",
        "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/om_kh~eu-tenders-scraper/runs": {
      "post": {
        "operationId": "runs-sync-om_kh-eu-tenders-scraper",
        "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/om_kh~eu-tenders-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-om_kh-eu-tenders-scraper",
        "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 searched in the full notice text (any language), e.g. software, cleaning, construction. Several keywords = any of them.",
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Buyer countries",
            "type": "array",
            "description": "Two-letter codes of the buying country, e.g. FR, DE, IT, ES, NL, PL, IE. Empty = all EU/EEA.",
            "items": {
              "type": "string"
            }
          },
          "cpvCodes": {
            "title": "CPV codes (optional)",
            "type": "array",
            "description": "EU procurement categories. A code covers its sub-codes: 72000000 = all IT services, 45000000 = construction, 79000000 = business services.",
            "items": {
              "type": "string"
            }
          },
          "buyerName": {
            "title": "Buyer name contains (optional)",
            "type": "string",
            "description": "Part of the buyer's name, e.g. Ministère, Bundesamt, Comune di."
          },
          "procedureTypes": {
            "title": "Procedure types (optional)",
            "type": "array",
            "description": "Keep only these procedures.",
            "items": {
              "type": "string",
              "enum": [
                "open",
                "restricted",
                "neg-w-call",
                "neg-wo-call",
                "comp-dial",
                "innovation",
                "oth-single",
                "oth-mult"
              ],
              "enumTitles": [
                "Open",
                "Restricted",
                "Negotiated with call",
                "Negotiated without call",
                "Competitive dialogue",
                "Innovation partnership",
                "Other single stage",
                "Other multiple stage"
              ]
            }
          },
          "contractNatures": {
            "title": "Contract nature (optional)",
            "type": "array",
            "description": "Keep only these kinds of contract.",
            "items": {
              "type": "string",
              "enum": [
                "works",
                "services",
                "supplies"
              ],
              "enumTitles": [
                "Works",
                "Services",
                "Supplies"
              ]
            }
          },
          "minValue": {
            "title": "Minimum value in EUR (optional)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only notices whose estimated or awarded value is at least this amount."
          },
          "noticeKind": {
            "title": "Notice kind",
            "enum": [
              "all",
              "open",
              "awarded",
              "planned"
            ],
            "type": "string",
            "description": "Open calls for tenders, contract awards (with winners), planned (prior information), or all.",
            "default": "all"
          },
          "onlyOpenDeadlines": {
            "title": "Only tenders still open",
            "type": "boolean",
            "description": "Keep only calls whose submission deadline is today or later.",
            "default": false
          },
          "publishedAfter": {
            "title": "Published after",
            "type": "string",
            "description": "YYYY-MM-DD. Default: last 30 days."
          },
          "publishedBefore": {
            "title": "Published before (optional)",
            "type": "string",
            "description": "YYYY-MM-DD."
          },
          "language": {
            "title": "Text language",
            "enum": [
              "en",
              "fr",
              "de",
              "es",
              "it",
              "nl",
              "pl",
              "pt"
            ],
            "type": "string",
            "description": "Preferred language for titles and descriptions when available (otherwise the original language).",
            "default": "en"
          },
          "maxNotices": {
            "title": "Max notices",
            "minimum": 1,
            "maximum": 15000,
            "type": "integer",
            "description": "Newest first, 1 to 15,000. Default 100.",
            "default": 100
          },
          "customQuery": {
            "title": "Expert query (optional)",
            "type": "string",
            "description": "A TED expert query that replaces the filters above, e.g. FT~\"cloud\" AND buyer-country IN (FRA) AND publication-date>=20260901."
          },
          "analyzeWithAi": {
            "title": "Analyze each result with AI",
            "type": "boolean",
            "description": "Add an ai object to each notice: plain summary, deliverables, and a 0-100 fit score with a recommended action when you describe your company below. Uses your own Anthropic API key; the model usage is billed by Anthropic to you, not by this Actor.",
            "default": false
          },
          "anthropicApiKey": {
            "title": "Your Anthropic API key",
            "type": "string",
            "description": "Needed only for the AI analysis. Create one at platform.claude.com. It is used for this run only and never stored."
          },
          "aiModel": {
            "title": "AI model",
            "type": "string",
            "description": "Claude model ID, e.g. claude-opus-5-5 (default), claude-sonnet-5-5 or claude-haiku-4-5 for a lower cost.",
            "default": "claude-opus-5-5"
          },
          "maxAiRows": {
            "title": "Max results to analyze",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "The AI reads at most this many results per run (1 to 500), to keep your model bill predictable.",
            "default": 100
          },
          "businessProfile": {
            "title": "Your company in one or two sentences (optional)",
            "type": "string",
            "description": "What your company sells or does, e.g. 'Cloud infrastructure and DevOps consulting for public bodies, 40 people, France and Belgium'. Used to score how well each tender fits."
          },
          "maxTotalChargeUsd": {
            "title": "Max total charge (USD)",
            "type": "number",
            "description": "Optional hard cost cap for this run."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}