Skip to contents

List all sources supported by the World Bank API.

Usage

wb_source(source = NULL, lang = "en")

Arguments

source

(NULL | character())
Source to query. Default NULL. If NULL, all sources are returned.

lang

(character(1))
Language to query. Default "en".

Value

A data.frame() with the available sources. The columns are:

  • id: The source ID.

  • last_updated: The date the source was last updated.

  • name: The source name.

  • code: The source code.

  • description: The source description.

  • url: The source URL.

  • data_availability: Whether the source has data available.

  • metadata_availability: Whether the source has metadata available.

  • concepts: The concepts associated with the source.

Examples

# \donttest{
src <- wb_source()
head(src)
#>   id last_updated                              name code description  url
#> 1  1   2021-08-18                    Doing Business  DBS        <NA> <NA>
#> 2  2   2026-02-24      World Development Indicators  WDI        <NA> <NA>
#> 3  3   2024-11-05   Worldwide Governance Indicators  WGI        <NA> <NA>
#> 4  5   2016-03-21 Subnational Malnutrition Database  SNM        <NA> <NA>
#> 5  6   2025-12-03     International Debt Statistics  IDS        <NA> <NA>
#> 6 11   2013-02-22     Africa Development Indicators  ADI        <NA> <NA>
#>   data_availability metadata_availability concepts
#> 1              TRUE                  TRUE        3
#> 2              TRUE                  TRUE        3
#> 3              TRUE                  TRUE        3
#> 4              TRUE                  TRUE        3
#> 5              TRUE                  TRUE        4
#> 6              TRUE                  TRUE        3
# }