{
  "openapi": "3.0.1",
  "info": {
    "title": "Germany Public Tenders Monitor — oeffentlichevergabe.de",
    "description": "Monitor official German public tenders (Ausschreibungen) from the federal Bekanntmachungsservice on oeffentlichevergabe.de, incl. below-EU-threshold UVgO/VOB notices missing from TED. Official CC0 open data, no login or proxies. Organisation-level fields only.",
    "version": "0.1",
    "x-build-id": "QbgHZXcUWqEWfhPMS"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neushua~germany-public-tenders/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neushua-germany-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/neushua~germany-public-tenders/runs": {
      "post": {
        "operationId": "runs-sync-neushua-germany-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/neushua~germany-public-tenders/run-sync": {
      "post": {
        "operationId": "run-sync-neushua-germany-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": {
          "keywords": {
            "title": "Keywords (any of)",
            "type": "array",
            "description": "Optional words or phrases matched in the notice title and description (case-insensitive; umlauts and ß also match ae/oe/ue/ss). A notice matches if it contains ANY of them. Most notices are in German, so use German terms, e.g. Software, Reinigung, Straßenbau.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Drop notices whose title or description contains any of these words.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "cpvCodes": {
            "title": "CPV codes",
            "type": "array",
            "description": "Common Procurement Vocabulary codes. Trailing zeros are treated as a hierarchy, so 72000000 matches every 72xxxxxx code (IT services) and 45233000 matches road works. Matched against the main and additional CPV codes of the notice and its lots.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "regions": {
            "title": "Regions (NUTS code or Land)",
            "type": "array",
            "description": "German NUTS codes (DE2 = Bayern, DE212 = München Stadt, DEA = Nordrhein-Westfalen) or Land names (Bayern, Berlin, Nordrhein-Westfalen, NRW…). A code matches everything under it. Empty means all of Germany.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "regionField": {
            "title": "Region filter applies to",
            "enum": [
              "buyer",
              "performance",
              "either"
            ],
            "type": "string",
            "description": "Where to apply the region list.",
            "default": "either"
          },
          "noticeTypes": {
            "title": "Notice types",
            "type": "array",
            "description": "contract-notice (open calls for tenders), award, prior-information, modification, voluntary-ex-ante, completion. Raw eForms codes also work (cn-standard, can-standard, pin-only…). Empty means all types.",
            "items": {
              "type": "string"
            },
            "default": [
              "contract-notice"
            ]
          },
          "threshold": {
            "title": "EU threshold",
            "enum": [
              "all",
              "national",
              "eu"
            ],
            "type": "string",
            "description": "National below-threshold notices are the ones you will not find on TED.",
            "default": "all"
          },
          "procedureTypes": {
            "title": "Procedure types",
            "type": "array",
            "description": "Optional eForms procedure codes: open, restricted, neg-w-call, neg-wo-call, comp-dial, innovation, oth-single, oth-mult, and the German national codes us-open, us-res-tw, us-res-no-tw, us-neg-w-call, us-neg-wo-call, us-free-tw, us-free-no-tw, us-direct.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "buyers": {
            "title": "Buyer name contains",
            "type": "array",
            "description": "Optional parts of the contracting authority's name, e.g. Deutsche Bahn, Stadt München, Bundeswehr. A notice matches if the buyer name contains ANY of them.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "minValue": {
            "title": "Minimum estimated value",
            "minimum": 0,
            "type": "integer",
            "description": "In the notice currency (almost always EUR). Most German notices do not publish an estimated value; see the next option."
          },
          "maxValue": {
            "title": "Maximum estimated value",
            "minimum": 0,
            "type": "integer",
            "description": "In the notice currency (almost always EUR)."
          },
          "includeNoticesWithoutValue": {
            "title": "Keep notices without an estimated value",
            "type": "boolean",
            "description": "When a value filter is set, also return notices that publish no estimated value (the majority). Turn off to return only notices with a value in range.",
            "default": true
          },
          "onlyOpenDeadlines": {
            "title": "Only notices with a future deadline",
            "type": "boolean",
            "description": "Drop notices whose submission deadline has passed or is not stated in the notice.",
            "default": false
          },
          "daysBack": {
            "title": "Days back",
            "minimum": 1,
            "maximum": 31,
            "type": "integer",
            "description": "Used when both dates are empty: how many complete publication days to read, ending yesterday (Europe/Berlin). The official export only offers complete past days.",
            "default": 3
          },
          "dateFrom": {
            "title": "Publication date from",
            "type": "string",
            "description": "Optional inclusive start day (YYYY-MM-DD). Earliest 2022-12-01. A run covers at most 31 days."
          },
          "dateTo": {
            "title": "Publication date to",
            "type": "string",
            "description": "Optional inclusive end day (YYYY-MM-DD). Today and later are capped at yesterday."
          },
          "maxItems": {
            "title": "Maximum notices",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Hard cap for this run (also your maximum spend). Between 1 and 5,000.",
            "default": 100
          },
          "preferredLanguage": {
            "title": "Preferred text language",
            "enum": [
              "DEU",
              "ENG"
            ],
            "type": "string",
            "description": "Title and description language. Few German notices include English text; German is used when English is missing.",
            "default": "DEU"
          },
          "onlyNew": {
            "title": "Only new since last run",
            "type": "boolean",
            "description": "Monitor mode. The Actor remembers which notice versions it already delivered for this search and only returns new ones. A corrected notice (new version) counts as new. The memory is a named key-value store called neushua-germany-tenders-state in your own Apify account. Dates are not part of the memory key, so a daily schedule with the default 'Days back' works.",
            "default": false
          },
          "stateKey": {
            "title": "Monitor name (state key)",
            "type": "string",
            "description": "Optional name for this monitor's memory. Runs with the same name share the same list of already-delivered notices. Leave empty to derive it from your filters (changing a filter then starts a fresh list)."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}