[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-7972":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":21,"hasPages":21,"topics":23,"createdAt":10,"pushedAt":10,"updatedAt":35,"readmeContent":36,"aiSummary":37,"trendingCount":16,"starSnapshotCount":16,"syncStatus":38,"lastSyncTime":39,"discoverSource":40},7972,"ISO-3166-Countries-with-Regional-Codes","lukes\u002FISO-3166-Countries-with-Regional-Codes","lukes","ISO 3166-1 country lists merged with their UN Geoscheme regional codes in ready-to-use JSON, XML, CSV data sets","",null,"Ruby",2451,3287,102,7,0,1,8,63.3,"Other",false,"master",[24,25,26,27,28,29,30,31,32,33,34],"countries","csv","data","dataset","iso","iso3166","iso3166-1","iso3166-2","json","region-codes","xml","2026-06-12 04:00:36","\n### ISO-3166 Country and Dependent Territories Lists with UN Regional Codes\n\nThese lists are the result of merging data from two sources, the Wikipedia [ISO 3166-1 article](http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FISO_3166-1#Officially_assigned_code_elements) for alpha and numeric country codes, and the [UN M49 Standard country or area codes for statistical use data](https:\u002F\u002Funstats.un.org\u002Funsd\u002Fmethodology\u002Fm49\u002Foverview) for countries' regional, and sub-regional codes. In addition to countries, it includes dependent territories.\n\nThe [International Organization for Standardization (ISO)](https:\u002F\u002Fwww.iso.org\u002Fiso-3166-country-codes.html) site provides partial data (capitalised and sometimes stripped of non-latin ornamentation), but sells the complete data set as a Microsoft Access 2003 database. Other sites give you the numeric and character codes, but there appeared to be no sites that included the associated UN-maintained regional codes in their data sets. I scraped data from the above two websites that is all publicly available already to produce some ready-to-use complete data sets that will hopefully save someone some time who had similar needs.\n\n### What's available?\n\nThe data is available in\n\n* JSON\n* XML\n* CSV\n\n3 versions exist for each format\n\n* `all.format` - Everything I can find, including regional and sub-regional codes\n* `slim-2.format` - English name, numeric country code and alpha-2 code (e.g., NZ)\n* `slim-3.format` - English name, numeric country code and alpha-3 code (e.g., NZL)\n\n### What does it look like?\n\nTake a peek inside the `all`, `slim-2` and `slim-3` directories for the full lists of JSON, XML and CSV.\n\nUsing JSON as an example:\n\n#### all.json\n\n    [\n      {\n        \"name\":\"Nigeria\",\n        \"alpha-2\":\"NG\",\n        \"alpha-3\":\"NGA\",\n        \"country-code\":\"566\",\n        \"iso_3166-2\":\"ISO 3166-2:NG\",\n        \"region\":\"Africa\",\n        \"sub-region\":\"Sub-Saharan Africa\",\n        \"intermediate-region\":\"Western Africa\",\n        \"region-code\":\"002\",\n        \"sub-region-code\":\"202\",\n        \"intermediate-region-code\":\"011\"\n      },\n      \u002F\u002F ...\n    ]\n\n#### slim-2.json\n\n    [\n      {\n        \"name\":\"New Zealand\",\n        \"alpha-2\":\"NZ\",\n        \"country-code\":\"554\"\n      },\n      \u002F\u002F ...\n    ]\n\n#### slim-3.json\n\n    [\n      {\n        \"name\":\"New Zealand\",\n        \"alpha-3\":\"NZL\",\n        \"country-code\":\"554\"\n      },\n      \u002F\u002F ...\n    ]\n\n### Caveats\n\n1. Please check the data independently for accuracy before using it in any system and for any purpose\n1. Although I've tried to ensure the data is as accurate as possible, the data is not authoritative, and so should not be considered accurate\n\n### scrubber.rb\n\n`scrubber.rb` is a dirty Ruby script I used to generate these files. You can run it yourself if you wish to re-generate the files fresh from the sources.\n\nTo install the gems in the Gemfile:\n\n    bundle\n\nTo run:\n\n    bundle exec ruby scrubber.rb\n\n### Timestamp\n\n* UN Statistical data retrieved 19 June 2024\n* Wikipedia data retrieved 19 June 2024, from a document last revised 6 June 2024\n\n### Revisions\n\n* 30 June 2024 - `tag 10.0`\n* 8 December 2020 - `tag 9.0`\n* 19 March 2019 - `tag 8.0`\n* 25 July 2018 - `tag 7.0`\n* 10 April 2018 - `tag 6.0`\n* 26 August 2016 - `tag 5.0`\n* 28 August 2015 - `tag 4.0`\n* 20 April 2014 - `tag 3.0`\n* 13 June 2012 - `tag 2.0`\n* 18 May 2011 - `tag 1.0`\n","该项目提供了ISO 3166-1国家和地区列表，并结合了联合国地理方案区域代码，以JSON、XML和CSV格式提供。其核心功能包括整合来自维基百科和联合国的数据，生成包含国家名称、ISO代码（alpha-2和alpha-3）、国家代码以及区域和子区域代码的完整数据集。项目支持三种版本的数据文件：完整版、精简版（alpha-2）和精简版（alpha-3），适用于需要标准化国家和地区信息的应用场景，如地理位置服务、数据分析和国际业务处理等。",2,"2026-06-11 03:15:26","top_language"]