All Projects → lorey → list-of-countries

lorey / list-of-countries

Licence: other
List of all countries in different formats (ISO, tld, capital, language, population)

Programming Languages

PHP
23972 projects - #3 most used programming language
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to list-of-countries

Country Ip Blocks
CIDR country-level IP data, straight from the Regional Internet Registries, updated hourly.
Stars: ✭ 100 (+354.55%)
Mutual labels:  countries
Countries
🌎 Public GraphQL API for information about countries
Stars: ✭ 156 (+609.09%)
Mutual labels:  countries
geonames-client
GeoNames API Client
Stars: ✭ 32 (+45.45%)
Mutual labels:  countries
Countries
Collection of Country Information for Elixir.
Stars: ✭ 107 (+386.36%)
Mutual labels:  countries
Circle Flags
A collection of 300+ minimal circular SVG country flags
Stars: ✭ 139 (+531.82%)
Mutual labels:  countries
Mapsicon
A free collection of maps for every country in the world, available in 11 sizes or in SVG.
Stars: ✭ 1,999 (+8986.36%)
Mutual labels:  countries
Phone
Elixir phone number parser for numbers in international standard.
Stars: ✭ 93 (+322.73%)
Mutual labels:  countries
Zip-code-of-all-countries-cities-in-the-world-CSV-TXT-SQL-DATABASE
Zip code of all countries in the world along with cities in CSV, TXT, SQL DATABASE
Stars: ✭ 35 (+59.09%)
Mutual labels:  countries
Translatr
💬 Translate to multiple languages at once
Stars: ✭ 145 (+559.09%)
Mutual labels:  countries
Country Region Data
A source list of countries, regions and shortcodes in JSON and JS format.
Stars: ✭ 222 (+909.09%)
Mutual labels:  countries
Countries
Laravel countries and currencies
Stars: ✭ 1,564 (+7009.09%)
Mutual labels:  countries
Laravel cities
Find any country/city in the world. Get Long/Lat etc. Deploy geonames.org database localy. Optimized DB tree
Stars: ✭ 133 (+504.55%)
Mutual labels:  countries
Countrycode
🎯 Swift country and phone code Picker
Stars: ✭ 175 (+695.45%)
Mutual labels:  countries
Iso 3166 Countries With Regional Codes
ISO 3166-1 country lists merged with their UN Geoscheme regional codes in ready-to-use JSON, XML, CSV data sets
Stars: ✭ 1,372 (+6136.36%)
Mutual labels:  countries
country-flags
A small package to convert a country code to the corresponding country flag emoji
Stars: ✭ 27 (+22.73%)
Mutual labels:  countries
Countries
Rinvex Country is a simple and lightweight package for retrieving country details with flexibility. A whole bunch of data including name, demonym, capital, iso codes, dialling codes, geo data, currencies, flags, emoji, and other attributes for all 250 countries worldwide at your fingertips.
Stars: ✭ 1,365 (+6104.55%)
Mutual labels:  countries
Restcountries
Get information about countries via a RESTful API
Stars: ✭ 2,054 (+9236.36%)
Mutual labels:  countries
hdx-python-country
Utilities to map between country and region codes and names and to match administrative level names from different sources. Also utilities for foreign exchange enabling obtaining current and historic FX rates for different currencies
Stars: ✭ 16 (-27.27%)
Mutual labels:  countries
geonamescache
geonamescache - a Python library for quick access to a subset of GeoNames data.
Stars: ✭ 76 (+245.45%)
Mutual labels:  countries
Awesome Startups
❤️ A curated list of awesome startups
Stars: ✭ 197 (+795.45%)
Mutual labels:  countries

a list of all countries worldwide in json and csv

List of all countries worldwide

This is a repository containing lists of all countries worldwide in several formats. The data is taken from GeoNames and thus under CC BY license. I use it for Programmer Map which lists the best programmers in all countries and many cities worldwide.

Formats

There are currently three file formats: JSON, CSV, and PHP.

JSON

The JSON files are located in json/. There are two versions A readable version with indentation: json/countries-readable.json

[
    {
        "alpha_2": "AD",
        "alpha_3": "AND",
        "area": "468",
        "capital": "Andorra la Vella",
        "continent": "EU",
        "currency_code": "EUR",
        "currency_name": "Euro",
        "eqivalent_fips_code": "",
        "fips": "AN",
        "geoname_id": "3041565",
        "languages": "ca",
        "name": "Andorra",
        "neighbours": "ES,FR",
        "numeric": "020",
        "phone": "376",
        "population": "84000",
        "postal_code_format": "AD###",
        "postal_code_regex": "^(?:AD)*(\\d{3})$",
        "tld": ".ad"
    },
    // ...

And a compact version: json/countries.json

[{"alpha_2": "AD", "alpha_3": "AND", "area": "468", "capital": "Andorra la Vella", "continent": "EU", //...

CSV

The CSV file is located under csv/countries.csv. It uses semicolons as separators as there are commas in the country names. You can open CSV files in almost any spreadsheet software, e.g. Microsoft Excel, Libre Office Calc, etc.

phone;currency_name;geoname_id;alpha_2;currency_code;neighbours;area;numeric;capital;tld;eqivalent_fips_code;languages;postal_code_format;fips;postal_code_regex;alpha_3;continent;name;population
376;Euro;3041565;AD;EUR;ES,FR;468;020;Andorra la Vella;.ad;;ca;AD###;AN;^(?:AD)*(\d{3})$;AND;EU;Andorra;84000
971;Dirham;290557;AE;AED;SA,OM;82880;784;Abu Dhabi;.ae;;ar-AE,fa,en,hi,ur;;AE;;ARE;AS;United Arab Emirates;4975593
93;Afghani;1149361;AF;AFN;TM,CN,IR,TJ,PK,UZ;647500;004;Kabul;.af;;fa-AF,ps,uz-AF,tk;;AF;;AFG;AS;Afghanistan;29121286
...

PHP

The PHP file is located under php/array.php and contains the list of all countries in array notation.

<?php
$countries = [
    [
        "alpha_2" => "AD",
        "alpha_3" => "AND",
        "area" => "468",
        "capital" => "Andorra la Vella",
        "continent" => "EU",
        "currency_code" => "EUR",
        "currency_name" => "Euro",
        "eqivalent_fips_code" => null,
        "fips" => "AN",
        "geoname_id" => "3041565",
        "languages" => "ca",
        "name" => "Andorra",
        "neighbours" => "ES,FR",
        "numeric" => "020",
        "phone" => "376",
        "population" => "84000",
        "postal_code_format" => "AD###",
        "postal_code_regex" => "^(?:AD)*(\d{3})$",
        "tld" => ".ad",
    ],
    // ...

Similar projects

There are several similar projects you should also check out. Feel free to add yours.

  • unicode-cldr/cldr-core: Lots of JSON data but hard to query and without geoname ids
  • mledoze/countries: PHP generator, various formats and a lot of data but no geoname ids and weird ISO 639-3 codes that are hard to resolve (Austria has "bar" as language which is basically a German dialect)
  • umpirsky/country-list: focused on localized versions and ISO only, no generator
  • fayder/restcountries: Country data provided by a restful API (JSON)
  • datasets/country-codes: CSV data with lots of codes for country representations (stuff like FIFA, IOC, etc.)

Misc

Picture licensed under CC0 by Lena Bell.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].