Home / Clayi CodeData / Data / World Countries, Capitals, Currencies & Phone Codes JSON Dataset

World Countries, Capitals, Currencies & Phone Codes JSON Dataset

World Countries, Capitals, Currencies & Phone Codes JSON Dataset
  • Category Data
  • Type JSON
  • Platform Cross-platform
  • Language Other
  • Price Free
  • Views 413
  • Comments 0
View Resource
World Countries, Capitals, Currencies & Phone Codes JSON Dataset

World Countries, Capitals, and Currencies JSON Dataset: A Comprehensive Guide

If you are working on web development, mobile application design, or data science projects, having a reliable and well-structured geographical dataset is crucial. From address forms on e-commerce websites to currency converters in financial applications, basic data about world countries is needed everywhere. Designed precisely to meet this need, the World Countries Capitals Currency Dataset is a lightweight, standard-compliant solution that you can instantly integrate into your projects.

Below is a comprehensive guide on what this dataset does, where it can be used, and how you can seamlessly incorporate it into your applications.

What Does the Countries JSON Dataset Do?

In your software projects, you might want to ask users to select their country, automatically fetch the corresponding phone code (phone_code), or display the correct currency (currency and currency_symbol) based on their location. Compiling this kind of data from scratch manually for every single project is not only a massive waste of time but also increases the risk of errors.

This dataset provides you with a ready-to-use resource by gathering the most fundamental and frequently needed data for every country under a single, highly optimized JSON object. The core information included in the dataset is as follows:

  • Country Name (Country): Standard international English country names.
  • ISO Codes (ISO2 & ISO3): Two-letter (e.g., US) and three-letter (e.g., USA) international country codes. These are absolute lifesavers for API integrations.
  • Capital: The official capital city of the country.
  • Currency & Symbol: The international code of the currency used by the country (e.g., USD, EUR, GBP) and its symbol ($, €, £).
  • Phone Code: The international dialing code (e.g., +1, +44). Ideal for user registration and SMS verification forms.
  • Domain Extension (TLD): The country-specific top-level domain for websites (e.g., .us, .uk).
  • Region: The continent or region where the country is located (e.g., Americas, Europe). A fantastic data point for filtering and sorting operations.

Which Projects Can Benefit from This Dataset?

You can utilize this versatile and highly optimized dataset across a wide variety of software projects:

  1. E-Commerce and Registration Forms: It can be used to dynamically fetch data in forms (like Dropdown/Select menus) where users need to select a country, city, or phone code while entering address information.
  2. Finance and Currency Converter Apps: With currency codes (USD, EUR, GBP, etc.) and symbols ($, €, £) bundled together, you can easily provide currency exchange integrations in financial applications.
  3. Travel and Tourism Portals: By utilizing country and capital information, you can build map-based applications, tourism guides, or location-based search engines.
  4. Data Analysis and Machine Learning: Thanks to the Region and ISO codes, it serves as a perfect reference table for joining data during demographic or economic data analysis.

Copy or Download: Ultimate Ease of Use

One of the biggest expectations of developers is to access the code snippet or data file they need in the fastest way possible. You can use this JSON dataset in your system via two highly flexible methods:

1. Direct Copy & Paste

If you only need to test a few lines of data or want to hardcode the data directly into your source code, you can copy the entire JSON object to your clipboard with a single click from the preview screen on our site. You can then assign the copied data directly to a variable in languages like React, Vue, Python, or Node.js and start using it instantly.

2. Download as a File

If you want to fetch the data to your local server, import it into a database (such as MongoDB or MySQL), or add it to the /assets/data/ folder of your project, you can click the Download button to instantly save the raw .json file to your computer.

Usage Example (jаvascript / Fetch API)

After adding this JSON file to your project directory (or serving it via an API), you can easily parse and use it with modern jаvascript like this:


// Example of reading the JSON file using the jаvascript Fetch API
fetch('world-countries-capitals-currency-dataset.json')
  .then(response => response.json())
  .then(data => {
    // Array containing all countries
    console.log("Total Number of Countries:", data.length);
    
    // Let's find the information for Canada
    const canada = data.find(country => country.iso2 === "CA");
    console.log("Capital of Canada:", canada.capital);
    console.log("Currency Symbol:", canada.currency_symbol);
  })
  .catch(error => console.error('Error fetching data:', error));

In conclusion, the World Countries and Capitals JSON Dataset is an excellent, standardized open-source template made of clean data that accelerates your projects for both frontend and backend development. Whether you quickly copy it to your testing environment or download it to your system to use as your primary database source, it will save you hours of manual work.

Popularity
0%
  • Votes: 3
  • Comments: 0

Help

Can't download assets? How to use Clayi Assets Assets not working? Can't copy? How to use Clayi Code Snippet not working?

Free World Countries, Capitals, Currencies & Phone Codes JSON Dataset JSON Download

[
  {
    "country": "Turkey",
    "iso2": "TR",
    "iso3": "TUR",
    "capital": "Ankara",
    "currency": "TRY",
    "currency_symbol": "₺",
    "phone_code": "+90",
    "tld": ".tr",
    "region": "Asia/Europe"
  },
  {
    "country": "United States",
    "iso2": "US",
    "iso3": "USA",
    "capital": "Washington, D.C.",
    "currency": "USD",
    "currency_symbol": "$",
    "phone_code": "+1",
    "tld": ".us",
    "region": "Americas"
  },
  {
    "country": "United Kingdom",
    "iso2": "GB",
    "iso3": "GBR",
    "capital": "London",
    "currency": "GBP",
    "currency_symbol": "£",
    "phone_code": "+44",
    "tld": ".uk",
    "region": "Europe"
  },
  {
    "country": "Germany",
    "iso2": "DE",
    "iso3": "DEU",
    "capital": "Berlin",
    "currency": "EUR",
    "currency_symbol": "€",
    "phone_code": "+49",
    "tld": ".de",
    "region": "Europe"
  },
  {
    "country": "Japan",
    "iso2": "JP",
    "iso3": "JPN",
    "capital": "Tokyo",
    "currency": "JPY",
    "currency_symbol": "¥",
    "phone_code": "+81",
    "tld": ".jp",
    "region": "Asia"
  },
  {
    "country": "Canada",
    "iso2": "CA",
    "iso3": "CAN",
    "capital": "Ottawa",
    "currency": "CAD",
    "currency_symbol": "$",
    "phone_code": "+1",
    "tld": ".ca",
    "region": "Americas"
  },
  {
    "country": "France",
    "iso2": "FR",
    "iso3": "FRA",
    "capital": "Paris",
    "currency": "EUR",
    "currency_symbol": "€",
    "phone_code": "+33",
    "tld": ".fr",
    "region": "Europe"
  },
  {
    "country": "Australia",
    "iso2": "AU",
    "iso3": "AUS",
    "capital": "Canberra",
    "currency": "AUD",
    "currency_symbol": "$",
    "phone_code": "+61",
    "tld": ".au",
    "region": "Oceania"
  }
]

Download Assets
Wait 10 sec
Free file download — fast & secure!
Download this open-source asset for free on Clayi Assets. Direct CDN link after a short wait — no account required.

New Resources

Popular Resources

There are no comments yet :(

World Countries, Capitals, Currencies & Phone Codes JSON Dataset
Tell us what you think about "World Countries, Capitals, Currencies & Phone Codes JSON Dataset"
Information
Users of Guests are not allowed to comment this publication.