World Bank Open Data — Scraping & Data Extraction

Query the World Bank indicators API and extract newest non-null values.

9|Updated Apr 23, 2026
One-click install
npx skills add https://github.com/yangchuansheng/browser-harness-rust --skill world-bank-open-data-scraping-data-extraction
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: World Bank Open Data — Scraping & Data Extraction
Source: https://github.com/yangchuansheng/browser-harness-rust/tree/main/domains/world-bank
Command: npx skills add https://github.com/yangchuansheng/browser-harness-rust --skill world-bank-open-data-scraping-data-extraction

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides guidance to fetch and parse World Bank indicators from the public API, handling the canonical two-element JSON response (metadata and data) and ensuring format=json.

Core Features & Use Cases

  • Understand how to query single-country and multi-country endpoints
  • Handle pagination, date ranges, and non-null value filtering for clean time series
  • Examples of extracting GDP, population, and other indicators for analytics workflows

Quick Start

Fetch GDP data for the United States using format=json and print the most recent value.

Frequently Asked Questions about World Bank Open Data — Scraping & Data Extraction

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I parse the two-element JSON response from the World Bank API?

The World Bank API returns a two-element JSON array containing metadata and data. You parse the second element to extract indicator values, filtering for the newest non-null entries for clean time series.

What's the best way to handle pagination when extracting World Bank data?

To handle World Bank API pagination, you query the endpoints with format=json and iterate through pages, parsing the data array element to aggregate complete results across multiple pages for your analytics pipeline.

How do I fetch GDP or population indicators for multiple countries via the World Bank API?

You fetch GDP and population indicators for multiple countries by querying the multi-country World Bank endpoints with format=json, specifying date ranges, and extracting the newest non-null values from the data element.

Does the World Bank API support filtering out null values for time series data?

The World Bank API response includes null values for missing dates. You must filter these out during parsing by checking for non-null values, ensuring you extract the newest available data point for accurate time series.

Can I extract World Bank indicators for a specific date range?

You can extract World Bank indicators for specific date ranges by passing date parameters to the API endpoint with format=json, then parsing the data element to retrieve the requested time series values.

Why do I need to enforce format=json when querying World Bank indicators?

Enforcing format=json is required because the World Bank API defaults to XML. Appending format=json to your endpoint ensures a parseable JSON response with the metadata and data array structure for extraction.