{
  "openapi": "3.0.1",
  "info": {
    "title": "Prozorro Tenders Scraper",
    "description": "Ukraine public procurement tenders from the official Prozorro API: filter by date, keywords, CPV codes, region, status and value. Buyer, contacts, deadlines, items, documents. Pay per tender.",
    "version": "0.0",
    "x-build-id": "0nroj18Xrhad1ekHx"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/yurij-data~prozorro-tenders-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-yurij-data-prozorro-tenders-scraper",
        "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/yurij-data~prozorro-tenders-scraper/runs": {
      "post": {
        "operationId": "runs-sync-yurij-data-prozorro-tenders-scraper",
        "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/yurij-data~prozorro-tenders-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-yurij-data-prozorro-tenders-scraper",
        "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": "Modified since",
            "type": "string",
            "description": "Only tenders modified on or after this date (YYYY-MM-DD). Default: 1 day before the run. The Prozorro feed is ordered by modification time, so this is the main way to limit how much is scanned."
          },
          "dateTo": {
            "title": "Modified until",
            "type": "string",
            "description": "Optional upper bound (YYYY-MM-DD, inclusive)."
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Case-insensitive words or phrases. A tender matches if ANY keyword appears in its title or item descriptions. Ukrainian and English both work (titles are usually Ukrainian).",
            "items": {
              "type": "string"
            }
          },
          "cpvPrefixes": {
            "title": "CPV / ДК 021 code prefixes",
            "type": "array",
            "description": "Keep tenders whose items have a classification code starting with any of these prefixes, e.g. \"30\" (computers), \"33\" (medical), \"45\" (construction), \"72\" (IT services).",
            "items": {
              "type": "string"
            }
          },
          "regions": {
            "title": "Buyer regions",
            "type": "array",
            "description": "Substring match on the buyer's address region, e.g. \"Київ\", \"Львівська\". Leave empty for all of Ukraine.",
            "items": {
              "type": "string"
            }
          },
          "statuses": {
            "title": "Tender statuses",
            "type": "array",
            "description": "Prozorro statuses to keep. Common: active.enquiries, active.tendering, active.auction, active.qualification, active.awarded, complete, cancelled, unsuccessful.",
            "items": {
              "type": "string",
              "enum": [
                "active.enquiries",
                "active.tendering",
                "active.pre-qualification",
                "active.auction",
                "active.qualification",
                "active.awarded",
                "complete",
                "cancelled",
                "unsuccessful",
                "draft"
              ],
              "enumTitles": [
                "active.enquiries",
                "active.tendering",
                "active.pre-qualification",
                "active.auction",
                "active.qualification",
                "active.awarded",
                "complete",
                "cancelled",
                "unsuccessful",
                "draft"
              ]
            }
          },
          "procurementMethodTypes": {
            "title": "Procurement method types",
            "type": "array",
            "description": "Optional filter, e.g. aboveThreshold, belowThreshold, reporting, negotiation, priceQuotation. Leave empty for all.",
            "items": {
              "type": "string"
            }
          },
          "minValue": {
            "title": "Minimum expected value (UAH)",
            "minimum": 0,
            "type": "integer",
            "description": "Skip tenders with an expected value below this amount."
          },
          "maxValue": {
            "title": "Maximum expected value (UAH)",
            "minimum": 0,
            "type": "integer",
            "description": "Skip tenders with an expected value above this amount."
          },
          "maxItems": {
            "title": "Max tenders to output",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Stop after this many matching tenders have been saved.",
            "default": 200
          },
          "maxScanned": {
            "title": "Max tenders to scan",
            "minimum": 1,
            "maximum": 500000,
            "type": "integer",
            "description": "Safety limit on how many tender records are fetched from the feed (each one is an API request). Raise it for wide date ranges.",
            "default": 5000
          },
          "includeDocuments": {
            "title": "Include document links",
            "type": "boolean",
            "description": "Add the list of tender documents (title, URL, format) to each record.",
            "default": false
          },
          "concurrency": {
            "title": "Concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Parallel requests to the Prozorro API. 8 is safe; higher values may get rate-limited.",
            "default": 8
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}