{
  "openapi": "3.0.1",
  "info": {
    "title": "Ukraine Prozorro Tender Alerts - Public Procurement API",
    "description": "$1.50 per 1,000 tenders. New Ukrainian public tenders (тендери, публічні закупівлі) from the official Prozorro API. Filter by keyword, CPV (DK 021), oblast, value, category, procedure type and buyer EDRPOU; only new tenders are returned.",
    "version": "0.1",
    "x-build-id": "3JLg4EPMMHEl96spc"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/orange_briefcase_hrj~ukraine-prozorro-tender-alerts/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-orange_briefcase_hrj-ukraine-prozorro-tender-alerts",
        "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/orange_briefcase_hrj~ukraine-prozorro-tender-alerts/runs": {
      "post": {
        "operationId": "runs-sync-orange_briefcase_hrj-ukraine-prozorro-tender-alerts",
        "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/orange_briefcase_hrj~ukraine-prozorro-tender-alerts/run-sync": {
      "post": {
        "operationId": "run-sync-orange_briefcase_hrj-ukraine-prozorro-tender-alerts",
        "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": {
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Words or word stems to look for in the tender title, description and item descriptions (case-insensitive; 'ремонт' also matches 'ремонту'). Leave empty for every tender that matches the other filters.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "keywordMatch": {
            "title": "Keyword match",
            "enum": [
              "any",
              "all"
            ],
            "type": "string",
            "description": "Match tenders containing ANY of the keywords, or ALL of them.",
            "default": "any"
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Skip tenders whose text contains any of these words.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "cpvCodes": {
            "title": "CPV / DK 021 codes",
            "type": "array",
            "description": "Ukraine's DK 021:2015 classifier is the EU CPV. Prefix matching on item codes: 45000000 matches all construction works, 72000000 all IT services, 33000000 medical equipment. Leave empty for all.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "regions": {
            "title": "Buyer regions (oblasts)",
            "type": "array",
            "description": "Limit by the buyer's region. English names: Kyiv City, Kyiv Oblast, Vinnytsia, Volyn, Dnipropetrovsk, Donetsk, Zhytomyr, Zakarpattia, Zaporizhzhia, Ivano-Frankivsk, Kirovohrad, Luhansk, Lviv, Mykolaiv, Odesa, Poltava, Rivne, Sumy, Ternopil, Kharkiv, Kherson, Khmelnytskyi, Cherkasy, Chernivtsi, Chernihiv. Ukrainian text also works. Leave empty for all of Ukraine.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Main procurement category. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "goods",
                "services",
                "works"
              ],
              "enumTitles": [
                "Goods",
                "Services",
                "Works"
              ]
            },
            "default": []
          },
          "minValue": {
            "title": "Minimum expected value (UAH)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum expected tender value in hryvnia. Tenders without a value are skipped when set."
          },
          "maxValue": {
            "title": "Maximum expected value (UAH)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum expected tender value in hryvnia."
          },
          "procedureTypes": {
            "title": "Procedure types",
            "enum": [
              "competitive",
              "nonCompetitive",
              "all"
            ],
            "type": "string",
            "description": "Competitive procedures (open tenders, simplified procurements, requests for quotation, competitive dialogue, frameworks) are what suppliers can bid on. Non-competitive = direct contract reports and negotiated procedures.",
            "default": "competitive"
          },
          "status": {
            "title": "Status",
            "enum": [
              "open",
              "any"
            ],
            "type": "string",
            "description": "'Open' keeps tenders still in the enquiry or bidding period. 'Any' also keeps tenders created in the window that have already moved on (e.g. direct contract reports, which complete immediately).",
            "default": "open"
          },
          "buyerContains": {
            "title": "Buyer name contains",
            "type": "array",
            "description": "Only keep tenders whose buyer name contains one of these strings (e.g. 'лікарня', 'Укрзалізниця', 'міська рада').",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "buyerCodes": {
            "title": "Buyer EDRPOU codes",
            "type": "array",
            "description": "Only keep tenders from buyers with these EDRPOU (ЄДРПОУ) identification codes.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "lookbackDays": {
            "title": "Look back (days)",
            "minimum": 1,
            "maximum": 14,
            "type": "integer",
            "description": "How many days of newly created tenders to scan on a normal run, or on the first run in 'only new' mode (1-14). Prozorro records tens of thousands of changes a day, so longer windows take a few minutes per day.",
            "default": 1
          },
          "onlyNew": {
            "title": "Only new since last run",
            "type": "boolean",
            "description": "Remember tenders already delivered (per filter set) and only output new ones. Ideal for a daily schedule. Switch it on for scheduled alerts (off by default so one-off searches always return results).",
            "default": false
          },
          "stateKey": {
            "title": "Alert name (state key)",
            "type": "string",
            "description": "Optional name for this alert's memory. By default it is derived from your filters, so changing filters starts a fresh alert."
          },
          "includeBuyerContacts": {
            "title": "Include buyer contact details",
            "type": "boolean",
            "description": "Add the buyer's published contact person, email and phone. This is personal data: use it only to take part in the procurement, in line with the GDPR / Ukrainian data-protection law.",
            "default": false
          },
          "includeSummary": {
            "title": "Save a summary",
            "type": "boolean",
            "description": "Save a digest (counts, top buyers, largest and closing-soonest tenders) as SUMMARY in the run's key-value store.",
            "default": true
          },
          "maxResults": {
            "title": "Max tenders per run",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Stop after this many tenders. In 'only new' mode anything left over is picked up on the next run.",
            "default": 200
          },
          "maxConcurrency": {
            "title": "Parallel detail requests",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "How many tender records to fetch from Prozorro at the same time (1-8).",
            "default": 6
          },
          "requestIntervalSecs": {
            "title": "Seconds between API requests",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Minimum pause between starting requests to the Prozorro API.",
            "default": 0.05
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}