Skip to content
World Factbook Front-end (API and web site) using Cosmos DB / Azure Functions
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


World Factbook Front-end (API and web site) using 1) Azure: Cosmos DB / Azure Functions or 2) AWS: DynamoDB / Lambda Functions

The CIA World Factbook is a valuable online resource that contains a wealth of information about the countries of the world. It is also public domain, meaning you're free to take the data and use it for your own purposes such as analysis or correlation with other data in your possession. Thanks to Ian Coleman, there is a JSON edition of this data, updated weekly.

World Factbook Indexer is an Azure Durable Function that retrieves this data and updates both a Cosmos DB and Azure Blob Storage. It creates a back-end repository from which country data can be queries and displayed.

World Factbook Site (this repository) is a web site and API (via Azure Functions / AWS Lambda Functions) that allows browsing and searching of this data. The site is currently hosted at:

For details, see these blog posts:

Web Site

The web site is simply a handful of files hosted in cloud storage.


The API defines a RESTful front-end for the country lookup, search, and charting capabilities provided by the Azure Functions or Lambda Functions.


The Azure Functions or Lambda Functions power the API. They are written in JavaScript, are entered in the cloud management portal, and connect to the CosmosDB or DynamoDB database.

You can’t perform that action at this time.