{
  "openapi": "3.0.1",
  "info": {
    "title": "Ausschreibungs-Radar DE/AT/EU – TED & service.bund.de",
    "description": "Neue öffentliche Ausschreibungen (Vergabe / public tenders) aus der offiziellen TED API und service.bund.de. Filter: Stichwort, CPV, Land, Bundesland/NUTS, IT oder alle Branchen. Nur neue Treffer seit dem letzten Lauf – ideal täglich per Zeitplan. Keine Personendaten.",
    "version": "0.1",
    "x-build-id": "CREuo9xctiXr7eJa0"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/datenfuchs~ausschreibungs-radar-tender-de-at-eu/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-datenfuchs-ausschreibungs-radar-tender-de-at-eu",
        "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/datenfuchs~ausschreibungs-radar-tender-de-at-eu/runs": {
      "post": {
        "operationId": "runs-sync-datenfuchs-ausschreibungs-radar-tender-de-at-eu",
        "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/datenfuchs~ausschreibungs-radar-tender-de-at-eu/run-sync": {
      "post": {
        "operationId": "run-sync-datenfuchs-ausschreibungs-radar-tender-de-at-eu",
        "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": "Any keyword matches (OR). Full-text on TED; title/description on service.bund.de. Tip: use whole words with ≥ 3 letters (\"KI\"/\"AI\" are auto-expanded). For precise results combine with CPV codes.",
            "items": {
              "type": "string"
            }
          },
          "cpvCodes": {
            "title": "CPV codes",
            "type": "array",
            "description": "Optional, e.g. 72000000 (IT services), 48000000 (software), 45000000 (construction), 90910000 (cleaning). TED only (service.bund.de feed has no CPV). Combined with keywords via OR.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Countries (ISO-3)",
            "type": "array",
            "description": "Buyer country for TED, e.g. DEU, AUT, CHE.",
            "default": [
              "DEU"
            ],
            "items": {
              "type": "string"
            }
          },
          "regions": {
            "title": "Regions",
            "type": "array",
            "description": "NUTS codes (e.g. DE2 = Bayern, DE26 = Unterfranken, AT13 = Wien) or German state names ('Bayern'). Empty = whole country.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "title": "Sources",
            "type": "array",
            "description": "Sources.",
            "items": {
              "type": "string",
              "enum": [
                "ted",
                "bund"
              ]
            },
            "default": [
              "ted",
              "bund"
            ]
          },
          "noticeFilter": {
            "title": "Notice type",
            "enum": [
              "open",
              "awards",
              "all"
            ],
            "type": "string",
            "description": "TED only. 'open' returns only notices you can still bid on or prepare for (contract notices + prior information notices) and drops award/modification notices (~40% of TED volume). 'awards' returns contract award notices with winning company and award value – useful to watch competitors and market prices. service.bund.de only lists open calls.",
            "default": "open"
          },
          "sinceDate": {
            "title": "Published since",
            "type": "string",
            "description": "YYYY-MM-DD. Default: 14 days ago."
          },
          "onlyNew": {
            "title": "Only new since last run",
            "type": "boolean",
            "description": "Return only tenders not seen in earlier runs (dedupe via named key-value store 'tender-radar-state'). Best with a daily schedule: each run delivers just the new tenders.",
            "default": true
          },
          "stateKey": {
            "title": "State key",
            "type": "string",
            "description": "Separate dedupe memory per saved task/profile (e.g. 'it-bayern', 'bau-nrw'), so several searches don't hide each other's results.",
            "default": "default"
          },
          "maxResults": {
            "title": "Max results per source",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Max results per source.",
            "default": 250
          },
          "cpvFilter": {
            "title": "Sector filter (CPV)",
            "enum": [
              "auto",
              "it",
              "off"
            ],
            "type": "string",
            "description": "TED only. 'auto' keeps the IT focus unless your CPV codes include non-IT codes (e.g. 45000000), then all sectors are kept. Choose 'off' for construction, crafts, cleaning, consulting etc.",
            "default": "auto"
          },
          "excludeCpvPrefixes": {
            "title": "Exclude CPV prefixes",
            "type": "array",
            "description": "Only used with IT focus: drop TED notices whose main (first) CPV starts with one of these prefixes (default: ISP/broadband 724, construction 452/453, engineering/geodata 7131-7135, telecom 6420, 3252), unless a keyword matches the title. Set [] to keep those subtrees; use Sector filter = off to keep all sectors.",
            "default": [
              "724",
              "453",
              "452",
              "4523",
              "7131",
              "7132",
              "7133",
              "7135",
              "6420",
              "3252"
            ],
            "items": {
              "type": "string"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}