APIs / World Bank / List World Bank countries

World Bank: List World Bank countries

Countries in World Bank data with ISO codes, region, income level, lending type, capital city and coordinates, filtered by region or income.

GET /v1/world-bank/countries

Parameters

Send parameters in the query string.

ParameterTypeRequiredAllowed values
regionstringOptionalUp to 3 characters
World Bank region code, such as SSF (Sub-Saharan Africa), EAS, ECS, LCN, MEA, NAC or SAS.
income_levelstringOptionalLIC, LMC, UMC, HIC, INX
Income group: LIC low, LMC lower middle, UMC upper middle, HIC high, INX not classified.
include_aggregatesbooleanOptionalAny
true to include regional and income aggregates such as World (WLD).

Example request

World Bank
GET/v1/world-bank/countries?region=SSF
{
  "success": true,
  "data": {
    "count": 48,
    "items": [
      {
        "code": "AGO",
        "iso2_code": "AO",
        "name": "Angola",
        "aggregate": false,
        "region": {
          "id": "SSF",
          "name": "Sub-Saharan Africa"
        },
        "income_level": {
          "id": "LMC",
          "name": "Lower middle income"
        },
        "lending_type": {
          "id": "IBD",
          "name": "IBRD"
        },
        "capital_city": "Luanda",
        "latitude": -8.81155,
        "longitude": 13.242
      },
      {
        "code": "BDI",
        "iso2_code": "BI",
        "name": "Burundi",
        "aggregate": false,
        "region": {
          "id": "SSF",
          "name": "Sub-Saharan Africa"
        },
        "income_level": {
          "id": "LIC",
          "name": "Low income"
        },
        "lending_type": {
          "id": "IDX",
          "name": "IDA"
        },
        "capital_city": "Bujumbura",
        "latitude": -3.3784,
        "longitude": 29.3639
      },
      {
        "code": "BEN",
        "iso2_code": "BJ",
        "name": "Benin",
        "aggregate": false,
        "region": {
          "id": "SSF",
          "name": "Sub-Saharan Africa"
        },
        "income_level": {
          "id": "LMC",
          "name": "Lower middle income"
        },
        "lending_type": {
          "id": "IDX",
          "name": "IDA"
        },
        "capital_city": "Porto-Novo",
        "latitude": 6.4779,
        "longitude": 2.6323
      }
    ],
    "notice": "The World Bank: World Development Indicators. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Not endorsed by The World Bank."
  },
  "meta": {
    "request_id": "req_422af6bc7a554573a75b847e97d9c09c",
    "credits_charged": 1,
    "credits_remaining": 429
  }
}
200 OKJSONX-Credits-Used: 1
Recorded from our API and shortened.

Run this endpoint in the playground with your own parameters. 1 credit per successful call; failed calls are free.

Response fields

Each item in data.items has these 10 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.

FieldType
codestring
iso2_codestring
namestring
aggregateboolean
regionobject
income_levelobject
lending_typeobject
capital_citystring
latitudenumber
longitudenumber