wb_project: World Bank project data

View source: R/projects.R

wb_projectR Documentation

World Bank project data

Description

Query World Bank project data from the Projects API.

Usage

wb_project(
  id = NULL,
  country = NULL,
  status = NULL,
  region = NULL,
  search = NULL,
  start_date = NULL,
  end_date = NULL
)

Arguments

id

(NULL | character(1))
Project ID to query, e.g. "P163868". Default NULL. If provided, other filters are ignored.

country

(NULL | character())
ISO country code(s) to filter by, e.g. "BR" or c("BR", "IN"). Default NULL.

status

(NULL | character(1))
Project status to filter by. One of "Active", "Closed", "Dropped", or "Pipeline". Default NULL.

region

(NULL | character(1))
Region name to filter by, e.g. "South Asia". Default NULL.

search

(NULL | character(1))
Free-text search term. Default NULL.

start_date

(NULL | character(1))
Board approval start date in "YYYY-MM-DD" format. Default NULL.

end_date

(NULL | character(1))
Board approval end date in "YYYY-MM-DD" format. Default NULL.

Value

A data.frame() with World Bank project data. The columns are:

  • id: The project ID.

  • project_name: The project name.

  • status: The project status.

  • approval_date: The board approval date.

  • closing_date: The closing date.

  • country_code: The ISO country code.

  • country: The country name.

  • region: The region name.

  • total_commitment: The total commitment amount in millions USD.

  • ibrd_commitment: The IBRD commitment amount in millions USD.

  • ida_commitment: The IDA commitment amount in millions USD.

  • lending_instrument: The lending instrument type.

  • borrower: The borrower name.

  • implementing_agency: The implementing agency name.

  • url: The project URL.

Source

https://search.worldbank.org/api/v2/projects

Examples



# active projects in Brazil related to education
wb_project(country = "BR", status = "Active", search = "education")

# look up a specific project
wb_project(id = "P163868")



worldbank documentation built on March 15, 2026, 5:07 p.m.