{
  "openapi": "3.0.1",
  "info": {
    "title": "German Public Contract Awards – Zuschläge & Auftragnehmer",
    "description": "Who won German public contracts? Daily contract awards (Zuschläge) from oeffentlichevergabe.de: winning company, award value, bids, buyer, CPV and Bundesland. B2G sales leads and competitor analysis. CC0 data, $5 per 1,000 awards.",
    "version": "0.1",
    "x-build-id": "EGrtZJTiuDnhYzddV"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nordlicht~german-contract-awards/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nordlicht-german-contract-awards",
        "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/nordlicht~german-contract-awards/runs": {
      "post": {
        "operationId": "runs-sync-nordlicht-german-contract-awards",
        "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/nordlicht~german-contract-awards/run-sync": {
      "post": {
        "operationId": "run-sync-nordlicht-german-contract-awards",
        "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": {
          "daysBack": {
            "title": "Days back",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "How many completed days to load, ending yesterday (Europe/Berlin). Ignored when fromDate or toDate is set. Default 1, maximum 30.",
            "default": 1
          },
          "fromDate": {
            "title": "From date",
            "type": "string",
            "description": "First publication day (YYYY-MM-DD). Overrides days back."
          },
          "toDate": {
            "title": "To date",
            "type": "string",
            "description": "Last publication day (YYYY-MM-DD). Clamped to yesterday."
          },
          "noticeTypes": {
            "title": "Notice types",
            "type": "array",
            "description": "Award notice types. Default is can-standard and can-social. Contract modifications and voluntary ex-ante notices are off unless you add them.",
            "items": {
              "type": "string",
              "enum": [
                "can-standard",
                "can-social",
                "can-modif",
                "veat"
              ],
              "enumTitles": [
                "Contract award (can-standard)",
                "Social contract award (can-social)",
                "Contract modification (can-modif)",
                "Voluntary ex-ante transparency (veat)"
              ]
            },
            "default": [
              "can-standard",
              "can-social"
            ]
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Case-insensitive match against the title, lot title or description. Any keyword is enough (OR).",
            "items": {
              "type": "string"
            }
          },
          "cpvCodes": {
            "title": "CPV prefixes",
            "type": "array",
            "description": "CPV prefixes such as 45 (construction) or 90910000. A lot uses its own CPV codes when it has them.",
            "items": {
              "type": "string"
            }
          },
          "bundeslaender": {
            "title": "Bundesländer",
            "type": "array",
            "description": "Land names or abbreviations (Bayern, NRW, BW). Matched against the buyer NUTS code or the place of performance.",
            "items": {
              "type": "string"
            }
          },
          "nutsCodes": {
            "title": "NUTS prefixes",
            "type": "array",
            "description": "NUTS prefixes such as DE2 (Bayern) or DE212. Combined with Bundesländer (OR).",
            "items": {
              "type": "string"
            }
          },
          "winnerName": {
            "title": "Winner name contains",
            "type": "string",
            "description": "Case-insensitive substring. Matches only winners whose name is published. Withheld names never match."
          },
          "winnerSize": {
            "title": "Winner size",
            "type": "array",
            "description": "eForms economic-operator size. Leave empty for every size.",
            "items": {
              "type": "string",
              "enum": [
                "micro",
                "small",
                "medium",
                "large"
              ],
              "enumTitles": [
                "Micro",
                "Small",
                "Medium",
                "Large"
              ]
            }
          },
          "minAwardValue": {
            "title": "Minimum award value (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep rows whose award value reaches this amount. Rows without a value are dropped when this is set."
          },
          "outputMode": {
            "title": "Output mode",
            "enum": [
              "award",
              "notice"
            ],
            "type": "string",
            "description": "award: one dataset item per lot and winner (default). notice: one item per notice with a winners array. Pricing is per output item, so notice mode costs less when a notice has several winners.",
            "default": "award"
          },
          "maxItems": {
            "title": "Maximum items",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Stop after this many output items (award rows, or notices in notice mode). Default 1000.",
            "default": 1000
          },
          "onlyNew": {
            "title": "Only new awards",
            "type": "boolean",
            "description": "Remember each award id (notice, version, lot, winner index) in the key-value store german-contract-awards-state. Skipped rows are not charged. Use this for a daily schedule.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}