Skip to content

ansman58/REST-countries-data

Repository files navigation

REST-countries-data

Welcome to the REST Countries Data repository! This repository contains data about countries all over the world, retrieved from the REST Countries API. The data includes various information about each country, such as its name, capital, population, currencies, languages, and more.

Getting Started

To get started, you can simply clone this repository to your local machine using the following command:

git clone https://github.com/ansman58/REST-countries-data.git

Alternatively, you can download the repository as a ZIP file by clicking on the "Code" button and selecting "Download ZIP".

Data

The data is provided in JSON format and is organized by country. Each country is represented by a separate JSON file, with the file name being the country's alpha-3 code (e.g. "USA.json" for the United States).

Here's an example of the data for the United States (USA.json):

    "name": "United States of America",
    "topLevelDomain": [".us"],
    "alpha2Code": "US",
    "alpha3Code": "USA",
    "callingCodes": ["1"],
    "capital": "Washington, D.C.",
    "altSpellings": ["US", "USA", "United States of America"],
    "region": "Americas",
    "subregion": "Northern America",
    "population": 323947000,
    "latlng": [38.0, -97.0],
    "demonym": "American",
    "area": 9629091.0,
    "gini": 48.0,
    "timezones": ["UTC-12:00", "UTC-11:00", "UTC-10:00", "UTC-09:00", "UTC-08:00", "UTC-07:00", "UTC-06:00", "UTC-05:00", "UTC-04:00", "UTC+10:00", "UTC+12:00"],
    "borders": ["CAN", "MEX"],
    "nativeName": "United States",
    "numericCode": "840",
    "currencies": [{
        "code": "USD",
        "name": "United States dollar",
        "symbol": "$"
    }],
    "languages": [{
        "iso639_1": "en",
        "iso639_2": "eng",
        "name": "English",
        "nativeName": "English"
    }]
}```

Contributing

If you would like to contribute to this repository, please feel free to fork the repository and submit a pull request. Contributions are always welcome and appreciated!

License

This repository is licensed under the MIT License. See the LICENSE file for more information.