{
  "openapi": "3.0.1",
  "info": {
    "title": "Global Tenders Scraper - EU TED, UK & World Bank Procurement",
    "description": "Scrape government & public procurement tenders worldwide — EU TED, UK Find a Tender and World Bank in one run. Buyer contacts, contract awards (who won), CPV codes, values, deadlines, B2G/B2B leads, lead scoring & only-new monitoring. Keyless, no browser.",
    "version": "0.1",
    "x-build-id": "aOF1YaJ8n5JRvdvGU"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapesage~global-tenders-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapesage-global-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/scrapesage~global-tenders-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapesage-global-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/scrapesage~global-tenders-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapesage-global-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": {
          "mode": {
            "title": "What to fetch",
            "enum": [
              "tenders",
              "awards",
              "all"
            ],
            "type": "string",
            "description": "'Open tenders' = live opportunities you can still bid on (newest first). 'Contract awards' = who won, for how much (market & competitor intelligence). 'Both' returns tenders and awards together.",
            "default": "tenders"
          },
          "sources": {
            "title": "Procurement sources",
            "type": "array",
            "description": "Which official procurement registries to pull from. TED = the EU 27 + EEA (Tenders Electronic Daily). UK = the UK Find a Tender Service (post-Brexit). World Bank = donor-funded tenders across 100+ developing countries. Combine any/all in one run.",
            "items": {
              "type": "string",
              "enum": [
                "ted",
                "uk",
                "worldbank"
              ],
              "enumTitles": [
                "TED — European Union & EEA",
                "UK Find a Tender",
                "World Bank (100+ countries)"
              ]
            },
            "default": [
              "ted",
              "uk",
              "worldbank"
            ]
          },
          "query": {
            "title": "Keyword / search query",
            "type": "string",
            "description": "Free-text search across title and description (e.g. 'cloud hosting', 'school construction', 'cyber security'). Applied as a full-text query on TED and matched client-side on UK & World Bank. Leave empty to rely on country / CPV filters or to pull everything newest-first."
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Filter by buyer/project country. Accepts ISO codes (DE, FR, GB, KE) or names (Germany, Kenya). TED filters by buyer country; World Bank by project country; UK is included only when GB / United Kingdom is in the list (or the list is empty).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "cpvCodes": {
            "title": "CPV codes (sector)",
            "type": "array",
            "description": "Filter by Common Procurement Vocabulary code. Use a 2-digit division for a whole sector (72 = IT services, 45 = construction, 33 = medical, 79 = business services) or a full 8-digit code. TED filters server-side; UK matches client-side. World Bank has no CPV and is skipped when this filter is set.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "publishedAfter": {
            "title": "Published after (YYYY-MM-DD)",
            "type": "string",
            "description": "Only notices published on/after this date — the key to fresh, high-intent opportunities. Example: 2026-06-01."
          },
          "publishedBefore": {
            "title": "Published before (YYYY-MM-DD)",
            "type": "string",
            "description": "Only notices published on/before this date (TED only)."
          },
          "onlyOpenDeadlines": {
            "title": "Only open deadlines",
            "type": "boolean",
            "description": "Drop tenders whose submission deadline has already passed — keep only opportunities you can still bid on.",
            "default": false
          },
          "minValue": {
            "title": "Minimum contract value",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only tenders/awards whose estimated or awarded value is at least this amount (in the notice's own currency — values are not converted). Notices that don't publish a value are kept.",
            "default": 0
          },
          "extractBuyerLeads": {
            "title": "Extract buyer leads (B2G)",
            "type": "boolean",
            "description": "Also output one deduplicated lead record per contracting authority (buyer) — name, email, phone, website, full address, how many tenders they ran, biggest contract value and a lead score. Ideal for selling INTO the public sector.",
            "default": false
          },
          "extractSupplierLeads": {
            "title": "Extract supplier leads (winners)",
            "type": "boolean",
            "description": "Also output one deduplicated lead record per winning supplier (from contract awards) — company, country, number of awards won, total awarded value and the buyers they won from. Ideal for competitor intel & partner prospecting.",
            "default": false
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Maximum number of tender/award records to emit (split evenly across the selected sources). Buyer/supplier leads are emitted in addition to this limit.",
            "default": 200
          },
          "deduplicateResults": {
            "title": "Deduplicate results",
            "type": "boolean",
            "description": "Emit each notice (by source + notice id) only once per run.",
            "default": true
          },
          "monitorMode": {
            "title": "Monitoring mode — only new notices",
            "type": "boolean",
            "description": "Remember notices returned in previous runs and emit ONLY new ones. Pair with Apify Schedules to capture freshly published tenders and awards automatically (daily/hourly). Works alongside — not instead of — the built-in scheduler.",
            "default": false
          },
          "monitorStoreName": {
            "title": "Monitor store name",
            "type": "string",
            "description": "Named key-value store holding the 'already seen' ids for monitoring mode. Use a different name per tracked scope (e.g. one per country or keyword).",
            "default": "global-tenders-monitor"
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Maximum parallel API requests.",
            "default": 4
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy settings. The TED, UK and World Bank APIs are clean public/government endpoints, so the default Apify proxy is plenty.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}