# World Bank Projects Search - Country, Status & Keyword (`zhucl1006/world-bank-projects-search`) Actor

Search World Bank development projects by keyword, country code and status via the public Projects API. Returns project name, countries, commitments, borrower, implementing agency, sector, theme and detail URL. Ideal for procurement BD, development-finance leads and market research. No API key.

- **URL**: https://apify.com/zhucl1006/world-bank-projects-search.md
- **Developed by:** [leo zhu](https://apify.com/zhucl1006) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 wb project results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## World Bank Projects Search - Country, Status & Keyword

Search **World Bank development projects** via the public [Projects API](https://search.worldbank.org/api/v2/projects) by keyword (`qterm`), ISO2 country code and status. Returns flat, BD-ready rows: project id/name, countries, region, commitments, borrower, implementing agency, sector, theme and official detail URL. **No API key.**

Undercuts generic scrapers with structured filters (country + status + board-approval date range) and a sales-friendly schema for procurement / development-finance lead gen.

### Who uses it

- **Government / IFI business development** teams hunting World Bank-funded opportunities.
- **Consulting & engineering firms** tracking Active / Pipeline projects by country or sector keyword.
- **Market research / OSINT** on development finance flows (IBRD / IDA commitments).
- **Lead-gen agencies** enriching country or sector target lists with official project pages.

### Input

| Field | Description |
|---|---|
| `queries` | Keyword list for `qterm` (e.g. `energy`, `education`, `climate`). |
| `countryCodes` | ISO2 codes (`BR`, `IN`, `NG`…). Each code is queried separately. |
| `status` | `Active` / `Closed` / `Pipeline` / `Dropped` / empty = any. |
| `maxItems` | Cap unique projects saved (default 25). |
| `rowsPerPage` | API page size (default 25). |
| `requestDelayMs` | Delay between pages (default 200). |
| `boardApprovalFrom` / `boardApprovalTo` | Optional YYYY-MM-DD client-side filter on `boardapprovaldate`. |

Default input (Store auto-test) searches `energy` and returns up to 25 projects. Empty input falls back to the same example.

```json
{
  "queries": ["energy"],
  "countryCodes": [],
  "status": "",
  "maxItems": 25,
  "rowsPerPage": 25,
  "requestDelayMs": 200
}
```

Country + status example:

```json
{
  "queries": ["transport"],
  "countryCodes": ["BR", "IN"],
  "status": "Active",
  "maxItems": 50
}
```

### Output (one row per project)

```json
{
  "status": "ok",
  "projectId": "P170850",
  "projectName": "Energy and Mineral Sectors Strengthening Project II",
  "projectStatus": "Active",
  "countries": ["Federative Republic of Brazil"],
  "countryCodes": ["BR"],
  "region": "Latin America and Caribbean",
  "boardApprovalDate": "2020-05-22T00:00:00Z",
  "closingDate": "...",
  "totalAmount": "38,000,000",
  "ibrdCommitment": "38,000,000",
  "idaCommitment": "0",
  "projectCost": "38,000,000",
  "borrower": "Federative Republic of Brazil",
  "implementingAgency": "Ministério de Minas e Energia",
  "lendingInstrument": "Investment Project Financing",
  "sector": "...",
  "theme": "...",
  "url": "https://projects.worldbank.org/en/projects-operations/project-detail/P170850",
  "query": "q=energy,country=BR,status=Active",
  "sourceUrl": "https://search.worldbank.org/api/v2/projects?...",
  "scrapedAt": "2026-11-06T02:00:00Z"
}
```

Duplicates across queries are skipped by `projectId`. `RUN_SUMMARY` in the key-value store shows totals, failed searches and board-date filter counts.

### Pricing (pay per event)

- **$0.002 per project result** (`project-result`) — charged only for unique projects saved to the Dataset.
- Tiny start fee per run (`apify-actor-start`). Failed API calls / error rows are not charged. Set "Maximum cost per run" to cap spend.

### Data source & license

- Data from the **World Bank** public Projects search API (`search.worldbank.org`). See [World Bank Projects & Operations](https://projects.worldbank.org/).
- This Actor is **not affiliated** with the World Bank Group. Output is a technical aid for research and BD — always verify against official World Bank sources before commercial or compliance decisions.

# Actor input Schema

## `queries` (type: `array`):

Free-text keywords against the World Bank Projects API (qterm), one per line. Examples: energy, education, brazil, climate, transport. Combined with country and status filters.

## `countryCodes` (type: `array`):

World Bank / ISO2 country codes, e.g. BR, IN, NG, KE, ID. Each code is queried separately (API accepts one countrycode per request).

## `status` (type: `string`):

Filter by World Bank project status (API param status).

## `maxItems` (type: `integer`):

Stop after this many unique projects across all queries (deduped by projectId).

## `rowsPerPage` (type: `integer`):

Page size for the World Bank API (rows). Keep ≤50 for stability.

## `requestDelayMs` (type: `integer`):

Polite delay between paginated API calls.

## `boardApprovalFrom` (type: `string`):

YYYY-MM-DD. Client-side filter on boardapprovaldate (inclusive). Leave empty for any.

## `boardApprovalTo` (type: `string`):

YYYY-MM-DD. Client-side filter on boardapprovaldate (inclusive). Leave empty for any.

## Actor input object example

```json
{
  "queries": [
    "energy"
  ],
  "countryCodes": [],
  "status": "",
  "maxItems": 25,
  "rowsPerPage": 25,
  "requestDelayMs": 200
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `runSummary` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "queries": [
        "energy"
    ],
    "maxItems": 25,
    "rowsPerPage": 25
};

// Run the Actor and wait for it to finish
const run = await client.actor("zhucl1006/world-bank-projects-search").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "queries": ["energy"],
    "maxItems": 25,
    "rowsPerPage": 25,
}

# Run the Actor and wait for it to finish
run = client.actor("zhucl1006/world-bank-projects-search").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "queries": [
    "energy"
  ],
  "maxItems": 25,
  "rowsPerPage": 25
}' |
apify call zhucl1006/world-bank-projects-search --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,zhucl1006/world-bank-projects-search"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/KYJoit4bWxY9HnmNh/builds/qeCPLnWeSPHwQWexc/openapi.json
