{
  "openapi": "3.0.1",
  "info": {
    "title": "Public Tenders Monitor Poland & EU (e-Zamówienia, TED)",
    "description": "Daily monitor of public tenders from Polish e-Zamówienia (BZP) and EU TED in one run. Filter by keywords, CPV codes, voivodeship, contract type, value and deadline. Get buyer, NIP, CPV, value in PLN, deadline, days left and documents link. Only-new mode for alerts.",
    "version": "0.1",
    "x-build-id": "CD2q4p0yTTrNda5Vz"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/donzely~tenders-monitor-poland-eu/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-donzely-tenders-monitor-poland-eu",
        "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/donzely~tenders-monitor-poland-eu/runs": {
      "post": {
        "operationId": "runs-sync-donzely-tenders-monitor-poland-eu",
        "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/donzely~tenders-monitor-poland-eu/run-sync": {
      "post": {
        "operationId": "run-sync-donzely-tenders-monitor-poland-eu",
        "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": {
          "sources": {
            "title": "Sources",
            "type": "array",
            "description": "BZP = Polish e-Zamówienia national notices (below EU thresholds). TED = EU Official Journal notices (above EU thresholds, all EU countries).",
            "items": {
              "type": "string",
              "enum": [
                "BZP",
                "TED"
              ],
              "enumTitles": [
                "e-Zamówienia BZP (Poland)",
                "TED (European Union)"
              ]
            },
            "default": [
              "BZP",
              "TED"
            ]
          },
          "lastDays": {
            "title": "Published in the last N days",
            "minimum": 1,
            "maximum": 60,
            "type": "integer",
            "description": "Tenders published today and in the previous N-1 days. Use 1 for a daily scheduled run.",
            "default": 3
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Return tenders whose title contains any of these phrases (case and Polish diacritics are ignored), e.g. \"remont\", \"oprogramowanie\", \"dostawa leków\". Empty = all tenders.",
            "items": {
              "type": "string"
            }
          },
          "searchInDescription": {
            "title": "Search keywords in descriptions too",
            "type": "boolean",
            "description": "Also match keywords in the short description. Slower for BZP because all notices of the period must be downloaded.",
            "default": false
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Skip tenders containing any of these phrases.",
            "items": {
              "type": "string"
            }
          },
          "cpvPrefixes": {
            "title": "CPV code prefixes",
            "type": "array",
            "description": "CPV code prefixes, e.g. \"45\" (construction works), \"72\" (IT services), \"33\" (medical equipment), \"48\" (software). Empty = all.",
            "items": {
              "type": "string"
            }
          },
          "voivodeships": {
            "title": "Voivodeships (Poland)",
            "type": "array",
            "description": "Limit Polish tenders to these regions. Empty = whole country.",
            "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"
              ]
            }
          },
          "orderTypes": {
            "title": "Contract type",
            "type": "array",
            "description": "Supplies, services or construction works. Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "Delivery",
                "Services",
                "Works"
              ],
              "enumTitles": [
                "Supplies / Dostawy",
                "Services / Usługi",
                "Works / Roboty budowlane"
              ]
            }
          },
          "tedCountries": {
            "title": "TED buyer countries",
            "type": "array",
            "description": "Countries for TED notices. Empty = all of Europe.",
            "items": {
              "type": "string",
              "enum": [
                "AUT",
                "BEL",
                "BGR",
                "HRV",
                "CYP",
                "CZE",
                "DNK",
                "EST",
                "FIN",
                "FRA",
                "DEU",
                "GRC",
                "HUN",
                "IRL",
                "ITA",
                "LVA",
                "LTU",
                "LUX",
                "MLT",
                "NLD",
                "POL",
                "PRT",
                "ROU",
                "SVK",
                "SVN",
                "ESP",
                "SWE",
                "NOR",
                "CHE",
                "ISL",
                "LIE"
              ]
            },
            "default": [
              "POL"
            ]
          },
          "minValuePln": {
            "title": "Min estimated value (PLN)",
            "type": "integer",
            "description": "Values in other currencies are converted with the NBP daily rate."
          },
          "maxValuePln": {
            "title": "Max estimated value (PLN)",
            "type": "integer",
            "description": "Upper limit of the estimated contract value."
          },
          "includeWithoutValue": {
            "title": "Include tenders without published value",
            "type": "boolean",
            "description": "Many notices do not publish an estimated value. Keep them when a value filter is set.",
            "default": true
          },
          "minDaysToDeadline": {
            "title": "Min days left to submit",
            "minimum": 0,
            "type": "integer",
            "description": "Skip tenders whose offer deadline is sooner than this many days. 0 = skip only expired ones.",
            "default": 0
          },
          "onlyNewSinceLastRun": {
            "title": "Only new since last run",
            "type": "boolean",
            "description": "Remember returned tenders and skip them next time. Ideal with a daily schedule.",
            "default": false
          },
          "maxItems": {
            "title": "Max tenders",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum number of tenders to return (split between sources when both are selected).",
            "default": 100
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Used automatically only if e-Zamówienia rate-limits the requests.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}