{
  "openapi": "3.0.1",
  "info": {
    "title": "Construction Tender Radar DE — TED",
    "description": "Monitor single-lot German construction notices on TED. Track source-linked deadline changes, published outcome codes and official notice links. Includes coverage reasons, JSON and CSV; excludes multi-lot notices and does not cover all German tenders.",
    "version": "0.1",
    "x-build-id": "iFIxnjc5OKmh3TGaa"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/danielmichalek~construction-tender-radar-de-ted/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-danielmichalek-construction-tender-radar-de-ted",
        "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/danielmichalek~construction-tender-radar-de-ted/runs": {
      "post": {
        "operationId": "runs-sync-danielmichalek-construction-tender-radar-de-ted",
        "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/danielmichalek~construction-tender-radar-de-ted/run-sync": {
      "post": {
        "operationId": "run-sync-danielmichalek-construction-tender-radar-de-ted",
        "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",
        "required": [
          "dateFrom",
          "dateTo"
        ],
        "properties": {
          "dateFrom": {
            "title": "Publication date from",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Required real YYYY-MM-DD, inclusive publication date as recorded by TED. The window must be 1–31 calendar days; this is not a bid deadline. Prefill is a historical example; replace both dates for live monitoring."
          },
          "dateTo": {
            "title": "Publication date to",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Required real YYYY-MM-DD, inclusive publication date as recorded by TED. The window must be 1–31 calendar days; this is not a bid deadline. Prefill is a historical example; replace both dates for live monitoring."
          },
          "cpvPrefixes": {
            "title": "Lot main construction CPV prefixes",
            "minItems": 1,
            "maxItems": 20,
            "type": "array",
            "description": "Return a notice only when its single lot main CPV begins with one of these 2–8 digit construction prefixes. Additional CPV codes do not qualify a notice.",
            "items": {
              "type": "string",
              "pattern": "^45\\d{0,6}$"
            },
            "default": [
              "45"
            ]
          },
          "nutsPrefixes": {
            "title": "Optional lot performance NUTS prefixes",
            "maxItems": 20,
            "type": "array",
            "description": "Optional OR filter on the single lot place of performance, e.g. DE2 or DEG0R. Missing or nonmatching lot NUTS is excluded. Buyer location is never substituted.",
            "items": {
              "type": "string",
              "pattern": "^DE[A-Z0-9]{0,3}$"
            },
            "default": []
          },
          "previousSnapshots": {
            "title": "Previous SNAPSHOT contents",
            "maxItems": 1000,
            "type": "array",
            "description": "Paste a prior compact SNAPSHOT array to label source metadata new/unchanged/changed. Absence is never removal. Hashes are comparisons, not authentication. Maximum entire input 1 MiB.",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "recordKey",
                "contentHash"
              ],
              "properties": {
                "recordKey": {
                  "type": "string",
                  "pattern": "^[0-9a-f]{8}(?:-[0-9a-f]{4}){3}-[0-9a-f]{12}-(?:0[1-9]|[1-9]\\d)$",
                  "title": "recordKey",
                  "description": "Exact value from a prior SNAPSHOT record.",
                  "editor": "textfield"
                },
                "contentHash": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$",
                  "title": "contentHash",
                  "description": "Exact value from a prior SNAPSHOT record.",
                  "editor": "textfield"
                }
              }
            },
            "default": []
          },
          "maxResults": {
            "title": "Maximum returned observations",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum distinct qualifying notice versions delivered. Reaching this bound reports partial coverage. Prefill returns at most 3 observations for the historical example.",
            "default": 20
          },
          "maxPages": {
            "title": "Maximum source search pages",
            "minimum": 1,
            "maximum": 2,
            "type": "integer",
            "description": "Maximum stateless page-number search pages. This is bounded observation, not a complete crawl or stable cursor.",
            "default": 2
          },
          "pageSize": {
            "title": "Search page size",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum raw notices requested per search page, before strict single-lot filtering.",
            "default": 10
          },
          "maxParentLookups": {
            "title": "Maximum exact parent lookups",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Look up only the explicitly referenced UUID and version. No recursive ancestry traversal. Unresolved references are reported.",
            "default": 10
          },
          "maxHttpAttempts": {
            "title": "HTTP attempt cap",
            "minimum": 1,
            "maximum": 14,
            "type": "integer",
            "description": "Maximum source attempts including parent reads and retries. An interrupted retrieval fails closed on restart so these counters cannot reset.",
            "default": 14
          },
          "timeoutMs": {
            "title": "Request/body timeout (milliseconds)",
            "minimum": 50,
            "maximum": 30000,
            "type": "integer",
            "description": "Timeout for each HTTP attempt including body streaming, also bounded by the remaining source time allowance.",
            "default": 10000
          },
          "maxRetries": {
            "title": "Transient retries after first attempt",
            "minimum": 0,
            "maximum": 1,
            "type": "integer",
            "description": "Retry only transient transport/timeouts, HTTP 429 and server failures. HTTP 403 is terminal; there is no challenge bypass.",
            "default": 1
          },
          "maxRunTimeMs": {
            "title": "Total source wall-clock allowance (milliseconds)",
            "minimum": 1000,
            "maximum": 60000,
            "type": "integer",
            "description": "Includes request spacing, attempts, parent lookups and backoff. The checkpoint keeps this deadline across restarts. Storage finalization is additional.",
            "default": 60000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}