world-bank

7 endpoints match this tag.

Compare Countries

GET
/economics/compare/:indicator

Compare a specific economic indicator across multiple countries side by side. Provide the indicator key in the URL and a comma-separated list of country codes as a parameter. Returns the latest value for each country, making it easy to build comparison bar charts, ranking tables, and cross-country economic analysis tools. For example, compare GDP per capita across Norway, USA, Germany, and Estonia.

Finance & Currency

Country Economics

GET
/economics/:country

Get all 15 economic indicators for a specific country in a single request, each with multiple years of historical data. Returns GDP, inflation, unemployment, PPP, trade balance, government debt, population, and more. Ideal for building country economic profile pages, research dashboards, and investment analysis tools. Data from the World Bank, typically covering the most recent 5-10 years of available data.

Finance & Currency

Specific Indicator

GET
/economics/:country/:indicator

Get a single economic indicator for a specific country with multiple years of historical data. Provide the country code and indicator key (e.g., gdp, inflation, gdp_per_capita, unemployment, ppp) in the URL. Returns year-by-year values for trend analysis. More focused than the full country endpoint when you only need one metric, useful for time-series charts and targeted economic comparisons.

Finance & Currency

Available Indicators

GET
/economics/indicators

List all 15 available economic indicators with their keys and World Bank API codes. Indicators include GDP, GDP per capita, inflation (CPI), unemployment rate, purchasing power parity (PPP), trade balance, government debt, population, life expectancy, and more. Use this endpoint to discover which indicators are available before querying country-specific data. Data sourced from the World Bank Open Data platform.

Finance & Currency

Global Rankings

GET
/economics/rankings/:indicator

Rank countries worldwide by any economic indicator, from GDP per capita to inflation rate to unemployment. Returns ranked results with country codes and values, configurable up to 50 results. Perfect for building global leaderboard visualizations, identifying top-performing economies, and creating educational content about where countries stand on key economic metrics.

Finance & Currency

Compare Emissions

GET
/carbon/compare

Compare CO2 emissions per capita across multiple countries side by side. Provide a comma-separated list of country codes to see how they stack up. Returns per-capita and total emission data for each country. Ideal for building comparison charts, climate policy analysis tools, and educational content about global emission disparities between nations.

Science & Space

Country Emissions

GET
/carbon/country/:code

Get CO2 emissions per capita and total emissions for a specific country, with historical data over multiple years. Data sourced from the World Bank. Useful for climate research dashboards, environmental education tools, country comparison features, and ESG (Environmental, Social, Governance) reporting applications that need country-level emission profiles.

Science & Space