Country module api, free to use

I made this module which contains info on every country in the world:

Its capital
Its flag (not all done yet!)
Its languages
Its name (Short, native and official)
Its currency

Documentation:
It’s recommended but not required to place this in replicated storage.

to initially setup you have to require it in a script

local countryApi = require(ReplicatedStorage.countryApi)

then to retrieve a country you run

countryApi.getCountry("countrycode")

Example being:

countryApi.getCountry("US") -- gets usa
countryApi.getCountry("CN") -- gets china
countryApi.getCountry("FR") -- gets france

In which it returns a table containing the country data. Examples being:

{
		["Capital"] = "Beijing",
		["Flag"] = "14123590414",
		["Languages"] = {"Mandarin"},
		["Name"] = {
			["Short"] = "China",
			["Native"] = "中国",
			["Official"] = "中华人民共和国"
		},
		["Currency"] = "Renminbi"
}

Please note all country codes must be capitalised.

11 Likes

Thank you. Currently using an API of the wather, and this helps me out so much. Thanks!