{
  "openapi": "3.0.1",
  "info": {
    "title": "German Public Tenders – Ausschreibungen Deutschland",
    "description": "Alle öffentlichen Ausschreibungen und Zuschläge in Deutschland (Bund, Länder, Kommunen, ober- und unterschwellig) aus dem Bekanntmachungsservice des Bundes als sauberes JSON – filterbar nach Stichwort, CPV, Region, Wert und Frist, auf Wunsch nur Neues seit dem letzten Lauf.",
    "version": "0.1",
    "x-build-id": "o3aHBthw7arDwesuc"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/adamplaenitz~german-public-tenders/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-adamplaenitz-german-public-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/adamplaenitz~german-public-tenders/runs": {
      "post": {
        "operationId": "runs-sync-adamplaenitz-german-public-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/adamplaenitz~german-public-tenders/run-sync": {
      "post": {
        "operationId": "run-sync-adamplaenitz-german-public-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": {
          "mode": {
            "title": "Modus / Mode",
            "enum": [
              "dateRange",
              "newSinceLastRun"
            ],
            "type": "string",
            "description": "„dateRange“: alle Bekanntmachungen im Zeitraum. „newSinceLastRun“: nur Bekanntmachungen, die dieser Actor mit denselben Filtern noch nicht geliefert hat – ideal für tägliche Alarme per Schedule. / 'dateRange' returns everything in the range; 'newSinceLastRun' returns only notices not delivered before with the same filters (ideal for scheduled daily alerts).",
            "default": "dateRange"
          },
          "dateFrom": {
            "title": "Von (Veröffentlichungsdatum) / From",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "YYYY-MM-DD. Leer = gleich „Bis“. Nur im Modus „Zeitraum“. / Empty = same as 'To'. Date range mode only."
          },
          "dateTo": {
            "title": "Bis (Veröffentlichungsdatum) / To",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "YYYY-MM-DD. Leer = letzter Werktag (die Daten eines Tages gibt es ab dem Folgetag). Höchstens 92 Tage pro Lauf. / Empty = latest working day (a day's notices become available the next day). Max. 92 days per run."
          },
          "lookbackDays": {
            "title": "Rückblick in Tagen (Modus „Neues“) / Lookback days",
            "minimum": 1,
            "maximum": 14,
            "type": "integer",
            "description": "Wie viele Tage im Modus „Nur Neues“ geprüft werden (1–14). Bereits gelieferte Bekanntmachungen werden nie doppelt geliefert. / Days checked in 'new since last run' mode; already delivered notices are never delivered twice.",
            "default": 3
          },
          "noticeTypes": {
            "title": "Art der Bekanntmachung / Notice types",
            "type": "array",
            "description": "competition = Ausschreibung, result = Zuschlag/Vergebener Auftrag, planning = Vorinformation, cont-modif = Auftragsänderung, change = Berichtigung, dir-awa-pre = freiwillige Ex-ante-Transparenz.",
            "items": {
              "type": "string",
              "enum": [
                "competition",
                "result",
                "planning",
                "cont-modif",
                "change",
                "dir-awa-pre"
              ],
              "enumTitles": [
                "Ausschreibung / Competition",
                "Zuschlag / Result",
                "Vorinformation / Planning",
                "Auftragsänderung / Contract modification",
                "Berichtigung / Change",
                "Ex-ante-Transparenz / Direct award pre-notice"
              ]
            },
            "default": [
              "competition"
            ]
          },
          "keywords": {
            "title": "Stichwörter / Keywords",
            "type": "array",
            "description": "Mindestens eines muss in Titel oder Beschreibung vorkommen (Groß-/Kleinschreibung egal), z. B. „Gebäudereinigung“, „Software“. / At least one must appear in title or description.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Ausschluss-Stichwörter / Exclude keywords",
            "type": "array",
            "description": "Bekanntmachungen mit einem dieser Wörter werden ausgelassen. / Notices containing any of these words are skipped.",
            "items": {
              "type": "string"
            }
          },
          "cpvCodes": {
            "title": "CPV-Codes",
            "type": "array",
            "description": "CPV-Codes oder -Gruppen. „45000000“ trifft alle Bauleistungen, „72000000“ alle IT-Dienste, „90910000“ Reinigungsdienste. / CPV codes or groups; trailing zeros match the whole group.",
            "items": {
              "type": "string"
            }
          },
          "nutsRegions": {
            "title": "Regionen (NUTS) / Regions (NUTS)",
            "type": "array",
            "description": "NUTS-Präfixe für Sitz des Auftraggebers oder Leistungsort, z. B. „DE1“ Baden-Württemberg, „DE2“ Bayern, „DE21“ Oberbayern, „DE3“ Berlin, „DEA“ Nordrhein-Westfalen. / NUTS prefixes of buyer or place of performance.",
            "items": {
              "type": "string"
            }
          },
          "postCodePrefixes": {
            "title": "PLZ-Präfixe / Postcode prefixes",
            "type": "array",
            "description": "z. B. „80“, „81“ für München. Trifft Auftraggeber oder Leistungsort. / Matches buyer or place of performance.",
            "items": {
              "type": "string"
            }
          },
          "minEstimatedValue": {
            "title": "Mindest-Auftragswert (EUR) / Minimum estimated value",
            "minimum": 0,
            "type": "integer",
            "description": "Nur Bekanntmachungen mit geschätztem Wert ab diesem Betrag. Viele Bekanntmachungen nennen keinen Wert – sie bleiben enthalten, außer „ohne Wert ausschließen“ ist aktiv. / Many notices have no value; they are kept unless 'exclude without value' is set."
          },
          "excludeWithoutValue": {
            "title": "Bekanntmachungen ohne Wert ausschließen / Exclude notices without value",
            "type": "boolean",
            "description": "Bekanntmachungen ohne geschätzten Auftragswert auslassen. / Skip notices that state no estimated value.",
            "default": false
          },
          "legalBasis": {
            "title": "Rechtsgrundlage / Legal basis",
            "enum": [
              "all",
              "eu",
              "national"
            ],
            "type": "string",
            "description": "„eu“ = oberschwellig nach EU-Richtlinien (auch in TED), „national“ = unterschwellig nach VOB/VOL/UVgO (nicht in TED). / 'eu' = above EU thresholds, 'national' = below thresholds (not in TED).",
            "default": "all"
          },
          "onlyOpenDeadlines": {
            "title": "Nur mit offener Angebotsfrist / Only open deadlines",
            "type": "boolean",
            "description": "Ausschreibungen mit abgelaufener Angebotsfrist auslassen. / Skip competitions whose submission deadline has passed.",
            "default": false
          },
          "includeDeadlines": {
            "title": "Angebotsfrist und Vergabeunterlagen-Link ergänzen / Add deadlines and documents link",
            "type": "boolean",
            "description": "Lädt für Ausschreibungen die Angebotsfrist je Los und den Link zu den Vergabeunterlagen nach. / Loads submission deadline per lot and tender documents link for competitions.",
            "default": true
          },
          "maxItems": {
            "title": "Maximale Anzahl Ergebnisse / Max items",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Obergrenze pro Lauf (jede gelieferte Bekanntmachung wird berechnet). / Upper limit per run (each delivered notice is charged).",
            "default": 1000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}