{
  "openapi": "3.0.1",
  "info": {
    "title": "World Bank Tenders & Contract Awards Scraper",
    "description": "Get World Bank-financed tenders, consultant calls (EOI) and contract awards from the official open API (CC BY 4.0). Open notices with deadlines, award winners and signed amounts, project details, filters by country, region, keyword, sector and method, a PROCUREMENT_REPORT and a daily monitor.",
    "version": "0.1",
    "x-build-id": "T0Mvn2WRMhPS8DMpF"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/kareninatech~worldbank-tenders-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-kareninatech-worldbank-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/kareninatech~worldbank-tenders-scraper/runs": {
      "post": {
        "operationId": "runs-sync-kareninatech-worldbank-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/kareninatech~worldbank-tenders-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-kareninatech-worldbank-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": {
          "notice_types": {
            "title": "Notice types",
            "type": "array",
            "description": "Which World Bank procurement notices to get. Default: open bidding opportunities (invitations for bids, expressions of interest, prequalification). Add contract_award to get winners and signed amounts.",
            "items": {
              "type": "string",
              "enum": [
                "invitation_for_bids",
                "expression_of_interest",
                "prequalification",
                "general_procurement_notice",
                "contract_award"
              ],
              "enumTitles": [
                "Invitation for Bids (goods, works, services)",
                "Request for Expression of Interest (consultants)",
                "Invitation for Prequalification",
                "General Procurement Notice (plans)",
                "Contract Award (winners and amounts)"
              ]
            },
            "default": [
              "invitation_for_bids",
              "expression_of_interest",
              "prequalification"
            ]
          },
          "only_open": {
            "title": "Only open notices",
            "type": "boolean",
            "description": "Skip notices whose submission deadline has passed. Notices without a deadline (contract awards, general procurement notices) are kept.",
            "default": true
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Search words, e.g. \"software\", \"solar\", \"road construction\", \"consultoría\". Any keyword can match. The World Bank search looks in the full notice text.",
            "items": {
              "type": "string"
            }
          },
          "match_mode": {
            "title": "Keyword match",
            "enum": [
              "phrase",
              "all_words",
              "any_word"
            ],
            "type": "string",
            "description": "How a keyword with several words must match, for example all words or any word.",
            "default": "phrase"
          },
          "keyword_in_title_only": {
            "title": "Keyword must be in the title",
            "type": "boolean",
            "description": "On by default: keep only notices where the keyword is in the title (bid description) or project name. Turn off to also get notices that mention it only deep in the full notice text (more results, more noise).",
            "default": true
          },
          "exclude_words": {
            "title": "Exclude words",
            "type": "array",
            "description": "Drop notices whose title or project name has any of these words.",
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Project countries as the World Bank writes them, e.g. Honduras, Mexico, Brazil, \"Congo, Democratic Republic of\". Common names like Turkey, Vietnam or DRC also work. Multi-country projects use names like \"Western and Central Africa\".",
            "items": {
              "type": "string"
            }
          },
          "regions": {
            "title": "Regions",
            "type": "array",
            "description": "World Bank regions, for example Latin America and Caribbean. Country and region filters add up.",
            "items": {
              "type": "string",
              "enum": [
                "LAC",
                "AFE",
                "AFW",
                "EAP",
                "ECA",
                "MENA",
                "SAR"
              ],
              "enumTitles": [
                "Latin America and Caribbean",
                "Eastern and Southern Africa",
                "Western and Central Africa",
                "East Asia and Pacific",
                "Europe and Central Asia",
                "Middle East and North Africa",
                "South Asia"
              ]
            }
          },
          "procurement_groups": {
            "title": "Procurement group",
            "type": "array",
            "description": "Goods, works, consulting services or non-consulting services.",
            "items": {
              "type": "string",
              "enum": [
                "goods",
                "works",
                "consulting",
                "non_consulting"
              ],
              "enumTitles": [
                "Goods",
                "Works",
                "Consulting services",
                "Non-consulting services"
              ]
            }
          },
          "procurement_methods": {
            "title": "Procurement methods",
            "type": "array",
            "description": "Selection method, e.g. RFB (Request for Bids), RFQ, QCBS, CQS, INDV (individual consultants).",
            "items": {
              "type": "string",
              "enum": [
                "RFB",
                "RFQ",
                "RFP",
                "QCBS",
                "QBS",
                "FBS",
                "LCS",
                "CQS",
                "INDV",
                "CDS",
                "DIR"
              ],
              "enumTitles": [
                "RFB - Request for Bids",
                "RFQ - Request for Quotations",
                "RFP - Request for Proposals",
                "QCBS - Quality and Cost-Based Selection",
                "QBS - Quality Based Selection",
                "FBS - Fixed Budget Selection",
                "LCS - Least Cost Selection",
                "CQS - Consultant Qualification Selection",
                "INDV - Individual Consultant Selection",
                "CDS - Direct Selection (consultants)",
                "DIR - Direct Selection"
              ]
            }
          },
          "languages": {
            "title": "Notice languages",
            "type": "array",
            "description": "Language the notice is written in, for example English or Spanish. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "english",
                "french",
                "spanish",
                "portuguese",
                "arabic",
                "russian"
              ],
              "enumTitles": [
                "English",
                "French",
                "Spanish",
                "Portuguese",
                "Arabic",
                "Russian"
              ]
            }
          },
          "project_ids": {
            "title": "Project IDs",
            "type": "array",
            "description": "Only notices of these World Bank projects, e.g. P176608.",
            "items": {
              "type": "string"
            }
          },
          "published_within_days": {
            "title": "Published in the last (days)",
            "minimum": 0,
            "maximum": 7300,
            "type": "integer",
            "description": "Only notices published in the last N days. 0 = no limit (for open notices we look back 365 days at most).",
            "default": 60
          },
          "deadline_within_days": {
            "title": "Deadline within (days)",
            "minimum": 0,
            "maximum": 730,
            "type": "integer",
            "description": "Only notices whose deadline is in the next N days."
          },
          "min_days_to_deadline": {
            "title": "At least N days to deadline",
            "minimum": 0,
            "maximum": 365,
            "type": "integer",
            "description": "Skip notices that close sooner than N days, so you have time to prepare a bid."
          },
          "include_project_details": {
            "title": "Add project details",
            "type": "boolean",
            "description": "Add the project amount (USD), borrower, implementing agency, sectors, status and dates from the World Bank Projects API.",
            "default": true
          },
          "winner_keywords": {
            "title": "Winner name contains (awards)",
            "type": "array",
            "description": "Contract awards only: keep awards where a winning company name has any of these words.",
            "items": {
              "type": "string"
            }
          },
          "winner_countries": {
            "title": "Winner country (awards)",
            "type": "array",
            "description": "Contract awards only: keep awards where a winner is from these countries, as written in the notice (e.g. Spain, España, France, India).",
            "items": {
              "type": "string"
            }
          },
          "include_losing_bidders": {
            "title": "Include evaluated and rejected bidders (awards)",
            "type": "boolean",
            "description": "Contract awards only: add the other evaluated bidders with their prices, and rejected bidders with the reason. Company names and countries only.",
            "default": false
          },
          "max_items": {
            "title": "Max notices",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Stop after this many notices, for example 20.",
            "default": 100
          },
          "monitor_mode": {
            "title": "Monitor mode (only new notices)",
            "type": "boolean",
            "description": "Remember notices already returned and output only new ones. Schedule it daily for alerts. The first run returns everything that matches.",
            "default": false
          },
          "monitor_key": {
            "title": "Monitor name",
            "type": "string",
            "description": "Use a different name for each saved search you monitor, e.g. \"lac-software\".",
            "default": "default"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}