World Bank API
Overview
The World Bank API provides access to thousands of development indicators covering economics, education, health, and infrastructure for over 200 countries spanning decades. It is completely free with no authentication required, making it one of the best APIs for data science, economics research, and visualization projects. You can query individual indicators for specific countries or retrieve bulk data for cross-country comparisons.
Beginner Tip
Start by querying a single well-known indicator like NY.GDP.MKTP.CD for GDP in current USD for a specific country code — the response is straightforward and gives you a feel for the data structure. Use format=json in your URL to avoid getting XML by default.
Available Data
Example Response
{
"status": "success",
"data": {
"result": "Data from World Bank",
"description": "World Data",
"timestamp": "2025-01-15T10:00:00Z"
}
} Field Reference
[0].page Current page number in the paginated response. [0].total Total number of records available across all pages. [1] Array of data point objects containing indicator values by year and country. [1][].country.value Full country name corresponding to the data point. [1][].date Year for which this data point applies as a string. [1][].value The indicator value for this country and year; null if data is unavailable. Implementation Example
const url = "https://datahelpdesk.worldbank.org/knowledgebase/topics/125589";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Matrix Score Breakdown
Fully tested on Apr 5, 2026
Technical Specifications
Related Tags
Similar APIs
View All →arcsecond.io
⭐ Beginner's Pickarcsecond.io is a free astronomy API that aggregates data from multiple space databases, including stars, planets, exoplanets, and observing sites.
arXiv
arXiv provides programmatic access to curated research-sharing platform: physics, mathematics, quantitative finance, and economics via REST API.
GBIF
⭐ Beginner's PickGBIF (Global Biodiversity Information Facility) is a free, open API providing access to hundreds of millions of species occurrence records from around the world.
iDigBio
iDigBio is a free API that gives you access to millions of digitized natural history museum specimens from institutions across the United States and beyond.
inspirehep.net
INSPIRE-HEP is a free REST API for the High Energy Physics literature database, covering papers, authors, institutions, conferences, and experiments in particle physics.