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.
- Visit the demo server of CORS Αnywhere at: cors-anywhere.herokuapp.com/corsdemo to request temporary access
- Open tmrk.github.io/m49-list and wait for the fetch to complete
- Copy the contents of the text field
You can access the latest (cached) version of the list by calling tmrk.github.io/m49-list/m49-list.json