{
  "openapi": "3.0.1",
  "info": {
    "title": "World Bank Tenders Scraper: Procurement Notices & EOIs",
    "description": "World Bank tenders API: new World Bank-financed bids, requests for expressions of interest, prequalifications and contract awards in 100+ countries from the official API. Filter by country, region, type, keyword, deadline. Only-new monitoring. JSON, CSV or Excel. No API key.",
    "version": "0.1",
    "x-build-id": "tjTORQGu7FhbId8bT"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sidehustler~worldbank-tenders-feed/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sidehustler-worldbank-tenders-feed",
        "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/sidehustler~worldbank-tenders-feed/runs": {
      "post": {
        "operationId": "runs-sync-sidehustler-worldbank-tenders-feed",
        "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/sidehustler~worldbank-tenders-feed/run-sync": {
      "post": {
        "operationId": "run-sync-sidehustler-worldbank-tenders-feed",
        "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": {
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Project countries as ISO codes (KE, KEN) or World Bank names (Kenya). Leave empty for all countries.",
            "items": {
              "type": "string"
            }
          },
          "regions": {
            "title": "Regions",
            "type": "array",
            "description": "World Bank regions: AFR (Sub-Saharan Africa), EAP, ECA, LAC, MENA, SAR — or region names. Includes multi-country notices in that region.",
            "items": {
              "type": "string"
            }
          },
          "noticeCategory": {
            "title": "Notice category",
            "enum": [
              "opportunities",
              "planning",
              "awards",
              "all"
            ],
            "type": "string",
            "description": "Quick filter by notice purpose. Ignored if specific notice types are selected below.",
            "default": "opportunities"
          },
          "noticeTypes": {
            "title": "Specific notice types (advanced)",
            "type": "array",
            "description": "Exact World Bank notice types. Overrides the category above.",
            "items": {
              "type": "string",
              "enum": [
                "Invitation for Bids",
                "Request for Expression of Interest",
                "Invitation for Prequalification",
                "General Procurement Notice",
                "Contract Award"
              ]
            }
          },
          "procurementGroups": {
            "title": "Procurement type",
            "type": "array",
            "description": "Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "GO",
                "CW",
                "CS",
                "NC"
              ],
              "enumTitles": [
                "Goods",
                "Civil works",
                "Consulting services",
                "Non-consulting services"
              ]
            }
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Match any of these words or phrases in the title, project, agency or full notice text (case- and accent-insensitive, OR). Leave empty for all.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Drop notices whose title or description contains any of these.",
            "items": {
              "type": "string"
            }
          },
          "buyers": {
            "title": "Buyer / implementing agency contains",
            "type": "array",
            "description": "Keep only notices whose implementing agency name contains any of these.",
            "items": {
              "type": "string"
            }
          },
          "languages": {
            "title": "Notice languages",
            "type": "array",
            "description": "e.g. English, French, Spanish, Portuguese. Leave empty for all.",
            "items": {
              "type": "string"
            }
          },
          "lastDays": {
            "title": "Published in the last N days",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "Used only when no publication date range is set below.",
            "default": 7
          },
          "publishedFrom": {
            "title": "Published from (YYYY-MM-DD)",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Optional start of the publication/update date range. Overrides \"last N days\"."
          },
          "publishedTo": {
            "title": "Published to (YYYY-MM-DD)",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Optional end of the date range (inclusive)."
          },
          "onlyOpen": {
            "title": "Only tenders still open",
            "type": "boolean",
            "description": "Keep only notices whose submission deadline is in the future.",
            "default": false
          },
          "deadlineWithinDays": {
            "title": "Deadline within N days",
            "minimum": 0,
            "maximum": 365,
            "type": "integer",
            "description": "Keep only open notices whose deadline falls within the next N days (e.g. 14). Leave empty to ignore."
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of notices to save. Newest first. You pay only for saved results.",
            "default": 50
          },
          "onlyNew": {
            "title": "Only new since last run (monitoring mode)",
            "type": "boolean",
            "description": "Remember what earlier runs delivered and save only notices that are new (or changed, see below). Ideal for daily schedules. State is kept per Monitor ID in a named key-value store in your account.",
            "default": false
          },
          "reportUpdates": {
            "title": "Also report updated notices",
            "type": "boolean",
            "description": "In monitoring mode, re-deliver a notice when its title, status, deadline or value changes (changeType = updated).",
            "default": true
          },
          "monitorId": {
            "title": "Monitor ID",
            "type": "string",
            "description": "Name for this monitoring feed, so different schedules/tasks keep separate memories (e.g. it-london). Letters, digits, dashes."
          },
          "descriptionMaxLength": {
            "title": "Max description length",
            "minimum": 0,
            "type": "integer",
            "description": "Truncate descriptions to this many characters (0 = no limit).",
            "default": 1000
          },
          "includeFullText": {
            "title": "Include full notice text",
            "type": "boolean",
            "description": "Adds noticeText: the full notice as clean plain text (HTML removed).",
            "default": false
          },
          "includeContacts": {
            "title": "Include contact email/phone/address",
            "type": "boolean",
            "description": "Adds the published contact email, phone and address of the implementing agency. Personal names are never output. Only enable if you have a lawful basis (e.g. GDPR) to process them.",
            "default": false
          },
          "maxPages": {
            "title": "Max API pages",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Safety cap on pages (100 notices each) scanned.",
            "default": 100
          },
          "maxRunSeconds": {
            "title": "Max fetch time (seconds)",
            "minimum": 30,
            "maximum": 3600,
            "type": "integer",
            "description": "Stop fetching new pages after this time and save what was found. Prevents runaway runs.",
            "default": 600
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}