World Bank Data

Overview


the World Bank is an international bank that provides loans to low and middle income type countries for investment purposes. As such, it collects data on international demographic and economic issues. It makes its data avaiable for free.

(See world bank data and world bank api)

World Bank Api


The world bank makes its data available as


let data = await $url("https://api.worldbank.org/v2/country/all/indicator/SP.POP.TOTL?date=2000");
					
Try it!

World Bank Api Module


The data provided by the World Bank API is returned in XML format. This means that some processing is required in order to turn it into Javascript objects. The world bank api module hosted in the davinci library provides utilities for post processing the data after downloading it.


let dt = await import('/lib/data/world-bank/v1.0.0/world-bank.mjs');
let test = await dt.data('https://api.worldbank.org/v2/country/all/indicator/SP.POP.TOTL?date=2000', $url);
					
Try it!


Contents