Statistics of the World

Statistics of the World API

Free REST API for global statistics. 335 indicators across 218 countries and territories from the IMF, World Bank, WHO, UN and more. No authentication…

Finance & banking#finance

Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.

Overview

Free REST API for global statistics. 335 indicators across 218 countries and territories from the IMF, World Bank, WHO, UN and more. No authentication required for basic access.

Endpoints 6

  • GETList all countries/api/v1/countriesReturns all 218 countries and territories, plus the World aggregate, with metadata (name, region, income level, capital city, coordinates).
  • GETGet country details/api/v1/countries/:idReturns a single country with all latest indicator values.
  • GETList all indicators/api/v1/indicatorsReturns all 335 indicators with categories and metadata.
  • GETGet indicator rankings/api/v1/indicators/:idReturns ranked list of all countries for a specific indicator.
  • GETGet historical data/api/v1/history/:indicator/:countryReturns 20+ years of historical data for an indicator-country pair.
  • GETGet indicator rankings/api/v1/rankings/:indicatorRanked list of countries for an indicator. Supports ?limit=N parameter.

API details

Base URL
https://statisticsoftheworld.com
Authentication
An API key in the X-API-Key header
Operations
6 operations on 6 pathsGET 6
Response formats
application/json
Description format
OpenAPI 3.1.0, API version 1.0.0

How to test the Statistics of the World API in Swastik Codes

  1. Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
  2. Fork it into your workspaceChoose a workspace. You get your own copy of the Statistics of the World API collection, without the publisher's secrets.
  3. Add your credentialsThis API uses an API key in the X-API-Key header. Add yours in the collection's variables or an environment; the requests already reference it.
  4. Send a requestPick an endpoint, for example “List all countries” (GET /api/v1/countries), and press Send. Check the response, add tests and run the whole collection with the runner.

Frequently asked questions

What is the Statistics of the World API?

Free REST API for global statistics. 335 indicators across 218 countries and territories from the IMF, World Bank, WHO, UN and more. No authentication… It is listed under Finance & banking and has 6 endpoints.

Who publishes the Statistics of the World API?

It is listed from Statistics of the World's public API description (an OpenAPI document), not published by Statistics of the World on Swastik Codes. Anyone who controls statisticsoftheworld.com can claim the profile by adding a DNS TXT record.

What is the base URL of the Statistics of the World API?

Requests go to https://statisticsoftheworld.com. Endpoint paths are added to this base URL.

How do I authenticate with the Statistics of the World API?

With an API key in the X-API-Key header.

How many endpoints does the Statistics of the World API have?

6 operations on 6 paths (6 GET).

Is forking the Statistics of the World API free?

Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.

Suggest an API

Tell us which public API is missing. We check it, then add it here with its endpoints when it has an OpenAPI (Swagger) description.