{
  "openapi": "3.0.1",
  "info": {
    "title": "Construction Tender Radar PL",
    "description": "Find Polish BZP construction tenders by CPV, buyer province and title. Export clean JSON/CSV with official notice links, published deadlines and changes against your previous snapshot. Bounded searches with transparent coverage and continuation cursors.",
    "version": "0.2",
    "x-build-id": "NR0gmnY3eij0KadDj"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/danielmichalek~construction-tender-radar-pl/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-danielmichalek-construction-tender-radar-pl",
        "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-pl/runs": {
      "post": {
        "operationId": "runs-sync-danielmichalek-construction-tender-radar-pl",
        "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-pl/run-sync": {
      "post": {
        "operationId": "run-sync-danielmichalek-construction-tender-radar-pl",
        "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": {
          "dateFrom": {
            "title": "Publication date from",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Optional real YYYY-MM-DD, inclusive UTC day. Leave both dates empty to use the last 7 UTC days ending today. Maximum 31 calendar days including endpoints."
          },
          "dateTo": {
            "title": "Publication date to",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Optional real YYYY-MM-DD, inclusive UTC day; publication date, not offer deadline. Defaults to today (UTC) when omitted."
          },
          "cpvPrefixes": {
            "title": "Construction CPV prefixes",
            "minItems": 1,
            "maxItems": 20,
            "type": "array",
            "description": "Match any 2–8-digit construction prefix beginning 45. The shared prefix is sent as a broad source filter; exact matches are checked locally.",
            "items": {
              "type": "string",
              "pattern": "^45\\d{0,6}$"
            },
            "default": [
              "45"
            ]
          },
          "titleTerms": {
            "title": "Optional title terms (OR)",
            "maxItems": 20,
            "type": "array",
            "description": "Case-insensitive literal substring; searches title only, not attachments.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            },
            "default": []
          },
          "provinceCodes": {
            "title": "Optional buyer province codes",
            "maxItems": 16,
            "type": "array",
            "description": "Exact source organisationProvince, e.g. PL14. Buyer location, not place of works.",
            "items": {
              "type": "string",
              "pattern": "^PL\\d{2}$"
            },
            "default": []
          },
          "previousSnapshots": {
            "title": "Previous SNAPSHOT contents",
            "maxItems": 1000,
            "type": "array",
            "description": "Paste the previous SNAPSHOT array. Changes compare only supplied notices; absence never means removal. Maximum complete input 1 MiB.",
            "default": []
          },
          "maxResults": {
            "title": "Maximum returned notices",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum distinct matching notices returned in this run.",
            "default": 100
          },
          "maxPages": {
            "title": "Maximum source pages",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum source pages requested before reporting partial coverage.",
            "default": 5
          },
          "pageSize": {
            "title": "Source page size",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum records requested per source page (1-100).",
            "default": 50
          },
          "timeoutMs": {
            "title": "Per-attempt timeout (milliseconds)",
            "minimum": 50,
            "maximum": 30000,
            "type": "integer",
            "description": "Maximum time for each source request, including its response body.",
            "default": 15000
          },
          "maxRetries": {
            "title": "Retries after first attempt",
            "minimum": 0,
            "maximum": 3,
            "type": "integer",
            "description": "Maximum retries after an initial transient source request failure.",
            "default": 2
          },
          "searchAfter": {
            "title": "Optional continuation cursor",
            "pattern": "^[0-9a-fA-F]{8}(?:-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$",
            "type": "string",
            "description": "Paste report.nextSearchAfter from a capped result to continue the SAME date/filter scope. Omit to begin at the first source page."
          },
          "maxRunTimeMs": {
            "title": "Total source time allowance (milliseconds)",
            "minimum": 1000,
            "maximum": 600000,
            "type": "integer",
            "description": "Includes polite spacing, source attempts and backoff. The adapter keeps the wall-clock deadline across process restarts.",
            "default": 180000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}