Skip to content
/ m49-list Public

A browser JavaScript app that scrapes the UN Statistics Division's website to build a JSON dataset of standard country codes (incl. M49 codes) and country names in 6 languages.

Notifications You must be signed in to change notification settings

tmrk/m49-list

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

M49 List of Countries in JSON

A browser app written in vanilla JavaScript that scrapes the United Nations Statistics Division's Standard country or area codes for statistical use (M49) page.

It outputs a JSON object, containing an array of all countries with ISO 3166-1 alpha-2, alpha-3 and M49 numeric country codes, as well the numeric codes for sub-regions, regions and intermediate regions - as specified by the UN.

How to use

  1. Visit the demo server of CORS Αnywhere at: cors-anywhere.herokuapp.com/corsdemo to request temporary access
  2. Open tmrk.github.io/m49-list and wait for the fetch to complete
  3. Copy the contents of the text field

Cached version

You can access the latest (cached) version of the list by calling tmrk.github.io/m49-list/m49-list.json

About

A browser JavaScript app that scrapes the UN Statistics Division's website to build a JSON dataset of standard country codes (incl. M49 codes) and country names in 6 languages.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published