{
  "openapi": "3.0.1",
  "info": {
    "title": "Public Tenders Scraper - EU, UK, Ukraine, Brazil & World Bank",
    "description": "Public tenders and government contracts from official open APIs in one search: EU TED (all EU), UK Find a Tender, Ukraine Prozorro, Brazil PNCP, AusTender awards, World Bank. Keywords in any language, CPV, country, deadline, value. One row format. Daily new-notices monitor.",
    "version": "0.1",
    "x-build-id": "0uSH4cg7NuGVHJA4I"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/alom~public-tenders-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-alom-public-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/alom~public-tenders-scraper/runs": {
      "post": {
        "operationId": "runs-sync-alom-public-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/alom~public-tenders-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-alom-public-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": {
          "sources": {
            "title": "Sources",
            "type": "array",
            "description": "Official procurement sources to search. Empty = all six. EU TED covers the 27 EU countries plus EEA, Switzerland and others that publish there.",
            "items": {
              "type": "string",
              "enum": [
                "ted",
                "uk",
                "prozorro",
                "austender",
                "pncp",
                "worldbank"
              ],
              "enumTitles": [
                "EU TED (all EU + EEA)",
                "UK Find a Tender",
                "Ukraine Prozorro",
                "Australia AusTender (awards only)",
                "Brazil PNCP",
                "World Bank (financed projects, ~140 countries)"
              ]
            },
            "default": [
              "ted",
              "uk",
              "prozorro",
              "austender",
              "pncp",
              "worldbank"
            ]
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Any language. A notice matches if ANY keyword appears in its title or description (TED: anywhere in the notice). Case and accents are ignored; a keyword matches at the start of a word, so \"solar\" also finds \"Solaranlage\". Empty = all notices.",
            "items": {
              "type": "string"
            }
          },
          "cpvCodes": {
            "title": "CPV codes",
            "type": "array",
            "description": "EU Common Procurement Vocabulary codes, e.g. 72000000 (IT services) or 45000000 (construction work). A code also matches every code below it (72000000 includes 72200000). Used by TED, UK and Prozorro; the other sources do not use CPV and are skipped when this is set (unless Category codes is set too).",
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Two-letter codes of the buyer's country (World Bank: the project's country), e.g. DE, FR, GB, UA. Sources that cannot have these countries are skipped. Empty = all.",
            "items": {
              "type": "string"
            }
          },
          "noticeTypes": {
            "title": "Notice types",
            "type": "array",
            "description": "Tender = open calls for bids (contract notices, invitations for bids, requests for expressions of interest). Award = contract awards with the winner. Planning = prior information / pipeline. Other = changes, corrections, cancellations.",
            "items": {
              "type": "string",
              "enum": [
                "tender",
                "award",
                "planning",
                "other"
              ],
              "enumTitles": [
                "Tender (open calls)",
                "Award (winners)",
                "Planning (prior information)",
                "Other (changes, cancellations)"
              ]
            },
            "default": [
              "tender",
              "award"
            ]
          },
          "publishedWithinDays": {
            "title": "Published within the last N days",
            "minimum": 1,
            "maximum": 366,
            "type": "integer",
            "description": "Publication window, counted back from today. Ignored when Published from is set.",
            "default": 7
          },
          "publishedFrom": {
            "title": "Published from",
            "type": "string",
            "description": "Start date (YYYY-MM-DD), or relative like \"-30 days\"."
          },
          "publishedTo": {
            "title": "Published to",
            "type": "string",
            "description": "End date (YYYY-MM-DD). Empty = today."
          },
          "deadlineAfter": {
            "title": "Bid deadline after",
            "type": "string",
            "description": "Only notices whose bid deadline is after this date - e.g. today for tenders still open. Notices without a deadline (awards, most planning notices) are left out when this is set."
          },
          "minValue": {
            "title": "Min value",
            "minimum": 0,
            "type": "integer",
            "description": "Only notices with an estimated (awards: awarded) value of at least this much, in the currency below. Values in other currencies are converted with the ECB's daily rates. Notices that state no value are left out when a value range is set."
          },
          "maxValue": {
            "title": "Max value",
            "minimum": 0,
            "type": "integer",
            "description": "Only notices with a value up to this much (same rules as Min value)."
          },
          "currency": {
            "title": "Currency of the value range",
            "type": "string",
            "description": "Three letters, e.g. EUR, GBP, USD, UAH, AUD, BRL. Rows keep each notice's own currency.",
            "default": "EUR"
          },
          "maxItems": {
            "title": "Max notices per source",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Stop each source after this many notices, newest first. With six sources and 100, a run returns up to 600.",
            "default": 100
          },
          "onlyNewSinceLastRun": {
            "title": "Only new notices since the last run (monitor)",
            "type": "boolean",
            "description": "Remembers the notices delivered under the monitor name below and skips them next time - for daily or hourly schedules. Notices already delivered are not charged again.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "One memory per name (letters, digits, dashes). Use a different name for each search you schedule."
          },
          "categoryCodes": {
            "title": "Category codes (source's own)",
            "type": "array",
            "description": "Codes in the sources' own classification, matched as prefixes: UNSPSC on AusTender (e.g. 43 = IT hardware, 80 = management services), World Bank procurement group (GO goods, CW works, CS consulting, NC non-consulting).",
            "items": {
              "type": "string"
            }
          },
          "pncpModalities": {
            "title": "Brazil PNCP procurement types",
            "type": "array",
            "description": "PNCP asks for one procurement type at a time. Default: 6 (pregão eletrônico) and 4 (concorrência eletrônica). Others: 8 dispensa, 9 inexigibilidade, 12 credenciamento, 1 leilão eletrônico, 5 concorrência presencial, 7 pregão presencial, 2, 3, 10, 11, 13. Each extra type costs extra pages.",
            "items": {
              "type": "string"
            }
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Prozorro tenders read in parallel (the other sources read one page at a time).",
            "default": 4
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Not needed: all sources are official open APIs and are read directly. Set a proxy only if you have a reason to.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}