{
  "openapi": "3.0.1",
  "info": {
    "title": "Polish Public Tenders – BZP & TED + Winners",
    "description": "Polish public tenders from official BZP (e-Zamówienia) and EU TED: open tenders and awards with buyer, CPV, values, deadlines and winners per lot. Filter by CPV, province, keywords; daily monitor returns only new notices; optional KRS/VAT data on winners. $0.002 per notice.",
    "version": "0.1",
    "x-build-id": "uf7cwW248B7msR4lC"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/matikitli~pl-public-tenders/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-matikitli-pl-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/matikitli~pl-public-tenders/runs": {
      "post": {
        "operationId": "runs-sync-matikitli-pl-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/matikitli~pl-public-tenders/run-sync": {
      "post": {
        "operationId": "run-sync-matikitli-pl-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": {
          "noticeKind": {
            "title": "Notice kind",
            "enum": [
              "open",
              "award",
              "both"
            ],
            "type": "string",
            "description": "`open` = open tenders you can still bid in (contract notices). `award` = awarded contracts with winners per lot (result notices). `both` = both kinds. Example: `open`.",
            "default": "open"
          },
          "sources": {
            "title": "Sources",
            "type": "array",
            "description": "BZP = national bulletin (below EU thresholds, most SME opportunities); TED = EU Tenders Electronic Daily (above thresholds). Example: [\"BZP\", \"TED\"].",
            "items": {
              "type": "string",
              "enum": [
                "BZP",
                "TED"
              ],
              "enumTitles": [
                "BZP / e-Zamówienia (national)",
                "TED (EU)"
              ]
            },
            "default": [
              "BZP",
              "TED"
            ]
          },
          "dateFrom": {
            "title": "Published from",
            "type": "string",
            "description": "First publication date (Europe/Warsaw), absolute or relative. Example: `-3 days` or `2026-09-01`. A run covers at most 90 days.",
            "default": "-3 days"
          },
          "dateTo": {
            "title": "Published to",
            "type": "string",
            "description": "Last publication date (inclusive). Empty = today. Example: `2026-09-30`."
          },
          "cpvCodes": {
            "title": "CPV codes",
            "type": "array",
            "description": "What is being bought: CPV prefixes (2–8 digits) or full codes; a notice matches if any of its CPV codes starts with any of these. Example: `33` (medical equipment), `45` (construction works), `48000000-8` (software). Empty = all.",
            "items": {
              "type": "string"
            }
          },
          "provinces": {
            "title": "Provinces (voivodeships)",
            "type": "array",
            "description": "Only notices from these voivodeships: the buyer's province for BZP, the place of performance for TED. Example: [\"malopolskie\"]. Empty = all of Poland.",
            "items": {
              "type": "string",
              "enum": [
                "dolnoslaskie",
                "kujawsko-pomorskie",
                "lubelskie",
                "lubuskie",
                "lodzkie",
                "malopolskie",
                "mazowieckie",
                "opolskie",
                "podkarpackie",
                "podlaskie",
                "pomorskie",
                "slaskie",
                "swietokrzyskie",
                "warminsko-mazurskie",
                "wielkopolskie",
                "zachodniopomorskie"
              ],
              "enumTitles": [
                "dolnośląskie",
                "kujawsko-pomorskie",
                "lubelskie",
                "lubuskie",
                "łódzkie",
                "małopolskie",
                "mazowieckie",
                "opolskie",
                "podkarpackie",
                "podlaskie",
                "pomorskie",
                "śląskie",
                "świętokrzyskie",
                "warmińsko-mazurskie",
                "wielkopolskie",
                "zachodniopomorskie"
              ]
            }
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Only notices whose title contains any of these words (case- and accent-insensitive). Example: `remont`, `analizator`. Empty = no keyword filter.",
            "items": {
              "type": "string"
            }
          },
          "detailed": {
            "title": "Detailed notices",
            "type": "boolean",
            "description": "Add buyer contacts (institutional e-mail, phone, website), award criteria with weights, bid deposit (wadium), contract duration and lowest/highest offers. Charged as `notice-detailed` ($0.01) instead of `notice` ($0.002).",
            "default": false
          },
          "enrichWinners": {
            "title": "Enrich winners with company data",
            "type": "boolean",
            "description": "Awards only. Attach a company profile from official registers (KRS court register, VAT white list) to every winning Polish company: legal form, address, status, VAT status, main PKD activity, risk signals. Charged once per unique company per run ($0.015). Sole traders and foreign winners are never enriched or charged.",
            "default": false
          },
          "monitor": {
            "title": "Monitor mode (only new notices)",
            "type": "boolean",
            "description": "Return only notices not delivered by a previous run with the same filters. Schedule the actor daily and connect it to e-mail, Slack or your CRM. The first run uses the date range above.",
            "default": false
          },
          "resetMonitor": {
            "title": "Reset monitor history",
            "type": "boolean",
            "description": "Forget what monitor mode delivered for these filters and start again from the date range.",
            "default": false
          },
          "maxItems": {
            "title": "Maximum notices",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Stop after this many delivered notices (1–10,000). The run summary says when more results exist. Example: 1000.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}