{
  "openapi": "3.0.1",
  "info": {
    "title": "Poland EU Funds Tenders API – Baza Konkurencyjności",
    "description": "Search Polish EU-funded zapytania ofertowe from official Baza Konkurencyjności by date, status, CPV, region and category, with optional full details. Contact persons removed. Export CSV, JSON or Excel.",
    "version": "0.1",
    "x-build-id": "Cn9koFmx3OA7JKd4o"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/enterprising_hamster~polish-eu-funds-tenders-baza-konkurencyjnosci/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-enterprising_hamster-polish-eu-funds-tenders-baza-konkurencyjnosci",
        "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/enterprising_hamster~polish-eu-funds-tenders-baza-konkurencyjnosci/runs": {
      "post": {
        "operationId": "runs-sync-enterprising_hamster-polish-eu-funds-tenders-baza-konkurencyjnosci",
        "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/enterprising_hamster~polish-eu-funds-tenders-baza-konkurencyjnosci/run-sync": {
      "post": {
        "operationId": "run-sync-enterprising_hamster-polish-eu-funds-tenders-baza-konkurencyjnosci",
        "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": {
          "lastDays": {
            "title": "Last N days",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Publication date window ending today (Europe/Warsaw), used when dateFrom and dateTo are empty. 0 means the whole archive (from 2014-01-01).",
            "default": 7
          },
          "dateFrom": {
            "title": "Publication date from",
            "type": "string",
            "description": "Inclusive, YYYY-MM-DD. Overrides lastDays.",
            "default": ""
          },
          "dateTo": {
            "title": "Publication date to",
            "type": "string",
            "description": "Inclusive, YYYY-MM-DD. Empty means today.",
            "default": ""
          },
          "statuses": {
            "title": "Announcement statuses",
            "type": "array",
            "description": "One search per status. PUBLISHED = open or awaiting result; RESOLVED = winner chosen; CANCELLED; CLOSED.",
            "items": {
              "type": "string",
              "enum": [
                "PUBLISHED",
                "RESOLVED",
                "CANCELLED",
                "CLOSED"
              ],
              "enumTitles": [
                "Published (opublikowane)",
                "Resolved (rozstrzygnięte)",
                "Cancelled (anulowane)",
                "Closed (zamknięte)"
              ]
            },
            "default": [
              "PUBLISHED"
            ]
          },
          "query": {
            "title": "Full-text query",
            "type": "string",
            "description": "Words searched by the portal's own search (title and content), e.g. fotowoltaika.",
            "default": ""
          },
          "category": {
            "title": "Category",
            "enum": [
              "ANY",
              "SERVICES",
              "WORKS",
              "SUPPLIES"
            ],
            "type": "string",
            "description": "Order category as defined by the portal.",
            "default": "ANY"
          },
          "subcategory": {
            "title": "Subcategory",
            "enum": [
              "",
              "Usługi szkoleniowe",
              "Usługi hotelarskie",
              "Usługi cateringowe",
              "Usługi badawcze",
              "Usługi IT",
              "Usługi drukarskie",
              "Usługi prawne",
              "Usługi inne",
              "Roboty budowlane",
              "Druk",
              "Meble",
              "Artykuły i sprzęt sportowy",
              "Sprzęt biurowy",
              "Sprzęt IT",
              "Dostawy inne"
            ],
            "type": "string",
            "description": "Optional. Must belong to the selected category.",
            "default": ""
          },
          "cpvCodes": {
            "title": "CPV codes",
            "type": "array",
            "description": "Exact CPV codes with check digit, e.g. 45000000-7. Matches announcements tagged with any of them.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "regions": {
            "title": "Place of fulfilment",
            "type": "array",
            "description": "Voivodeships or Poland-wide/abroad. Matches any of them.",
            "items": {
              "type": "string",
              "enum": [
                "POLAND_WIDE",
                "ABROAD",
                "dolnoslaskie",
                "kujawsko-pomorskie",
                "lubelskie",
                "lubuskie",
                "lodzkie",
                "malopolskie",
                "mazowieckie",
                "opolskie",
                "podkarpackie",
                "podlaskie",
                "pomorskie",
                "slaskie",
                "swietokrzyskie",
                "warminsko-mazurskie",
                "wielkopolskie",
                "zachodniopomorskie"
              ],
              "enumTitles": [
                "Whole Poland (cała Polska)",
                "Abroad (zagranica)",
                "Dolnośląskie",
                "Kujawsko-pomorskie",
                "Lubelskie",
                "Lubuskie",
                "Łódzkie",
                "Małopolskie",
                "Mazowieckie",
                "Opolskie",
                "Podkarpackie",
                "Podlaskie",
                "Pomorskie",
                "Śląskie",
                "Świętokrzyskie",
                "Warmińsko-mazurskie",
                "Wielkopolskie",
                "Zachodniopomorskie"
              ]
            },
            "default": []
          },
          "advertiserName": {
            "title": "Contracting entity name",
            "type": "string",
            "description": "Part of the beneficiary (ogłoszeniodawca) name.",
            "default": ""
          },
          "advertiserNip": {
            "title": "Contracting entity NIP",
            "type": "string",
            "description": "10-digit Polish tax ID of the beneficiary.",
            "default": ""
          },
          "onlyOpen": {
            "title": "Only open for offers",
            "type": "boolean",
            "description": "Only announcements whose submission deadline is today or later.",
            "default": false
          },
          "deadlineFrom": {
            "title": "Submission deadline from",
            "type": "string",
            "description": "Inclusive, YYYY-MM-DD.",
            "default": ""
          },
          "deadlineTo": {
            "title": "Submission deadline to",
            "type": "string",
            "description": "Inclusive, YYYY-MM-DD.",
            "default": ""
          },
          "includeDetails": {
            "title": "Include details",
            "type": "boolean",
            "description": "Fetch each announcement's details (orders, CPV, places, conditions, evaluation criteria, estimated values, projects, attachments). One extra request per item; charged as announcement-with-details.",
            "default": false
          },
          "sortOrder": {
            "title": "Sort order",
            "enum": [
              "newest",
              "deadline"
            ],
            "type": "string",
            "description": "newest = latest publication first; deadline = by submission deadline. Order applies within each publication-date window.",
            "default": "newest"
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Hard cap of dataset items (and charged events).",
            "default": 100
          },
          "onlyNew": {
            "title": "Only new since last run",
            "type": "boolean",
            "description": "Skip announcement IDs delivered by earlier runs with the same stateKey (not charged). Use with schedules.",
            "default": false
          },
          "stateKey": {
            "title": "State key",
            "type": "string",
            "description": "Name of the remembered-ID set; use different keys for independent feeds."
          },
          "maxRequestsPerSecond": {
            "title": "Max requests per second",
            "minimum": 0.2,
            "maximum": 2,
            "type": "number",
            "description": "Politeness limit towards the public portal, including retries.",
            "default": 1
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}