All Projects → MartinsOnuoha → countriesNowAPI

MartinsOnuoha / countriesNowAPI

Licence: MIT License
CountriesNow is an Open source API for retrieving geo-information for countries, including their states, cities, population, etc. 🌎

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to countriesNowAPI

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 (-55.13%)
Mutual labels:  countries, cities-data
Nager.Country
Worldwide Country Informations (ISO-3166-1 Alpha2, ISO-3166-1 Alpha3, ISO 639-1)
Stars: ✭ 68 (-12.82%)
Mutual labels:  countries, country-codes
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 (-79.49%)
Mutual labels:  countries, country-codes
Countrycode
🎯 Swift country and phone code Picker
Stars: ✭ 175 (+124.36%)
Mutual labels:  countries, flags
world
A Laravel package which provides a list of the countries, states, cities, currencies, timezones and languages.
Stars: ✭ 479 (+514.1%)
Mutual labels:  countries, cities
Countries
World countries in JSON, CSV, XML and Yaml. Any help is welcome!
Stars: ✭ 5,379 (+6796.15%)
Mutual labels:  geojson, countries
top-regional-repositories
🌍 The most-relevant repositories for all countries and many cities worldwide.
Stars: ✭ 18 (-76.92%)
Mutual labels:  countries, cities
oracle-geo-data
demo.insum.ca/ords/f?p=131
Stars: ✭ 20 (-74.36%)
Mutual labels:  countries, cities
flagpack
A lightweight flag icon toolkit for the web.
Stars: ✭ 51 (-34.62%)
Mutual labels:  countries, flags
world-cities-mongodb
A free world cities database
Stars: ✭ 29 (-62.82%)
Mutual labels:  countries, cities
Circle Flags
A collection of 300+ minimal circular SVG country flags
Stars: ✭ 139 (+78.21%)
Mutual labels:  countries, flags
china regions
Ruby Library for China Regions
Stars: ✭ 23 (-70.51%)
Mutual labels:  countries, cities
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 (+1650%)
Mutual labels:  countries, flags
country-flags
A small package to convert a country code to the corresponding country flag emoji
Stars: ✭ 27 (-65.38%)
Mutual labels:  countries, flags
World countries
Constantly updated lists of world countries and their associated alpha-2, alpha-3 and numeric country codes as defined by the ISO 3166 standard, available in CSV, JSON , PHP and SQL formats, in multiple languages and with national flags included
Stars: ✭ 598 (+666.67%)
Mutual labels:  countries, flags
django-countries-plus
Django model & fixture representing all top level country data from Geonames.org
Stars: ✭ 40 (-48.72%)
Mutual labels:  countries, country-codes
PhoneCountryCodePicker
An iOS tableview picker for PhoneCountryCode (English & Chinese supported)
Stars: ✭ 31 (-60.26%)
Mutual labels:  country-codes, flags
vue-flagpack
Flagpack contains 260+ easily implementable flag icons to use in your design or code project.
Stars: ✭ 42 (-46.15%)
Mutual labels:  countries, flags
geo-sql-database
Continents, Sub-Continents, Countries, States, Cities, Timezones, Currencies SQL database.
Stars: ✭ 30 (-61.54%)
Mutual labels:  countries, cities
civil-services-geojson-app
Electron App for Loading GeoJSON files with Mapbox
Stars: ✭ 18 (-76.92%)
Mutual labels:  geojson

CountriesNow API

CountriesNow

A curation of Countries data including (dial codes, states, cities, currencies, capitals etc) served over a REST API so you don't have to have them locally in your applications. This means lighter application sizes as you wouldn't have to install another package to use geo data. Please note that this doesn't guarantee complete or correct data, feel free to raise issues where necessary.

CleanShot 2022-03-17 at 9 19 17@2x

USAGE

The API does not require any form of Authentication or token.

const BASE_URL = 'https://countriesnow.space/api/v0.1/countries'

let getCountries = async () => {
  const response = await fetch(`${BASE_URL}`).then(response => response.json())
  const { data } = response

  data.forEach((country) => {
    console.log(country) // {"country": "Afghanistan", "cities": [ "Herat", "Kabul", "Kandahar", "Molah", ...]}
  })
}

The API does not require any form of Authentication or token.


Local Setup

git clone https://github.com/YourName/countriesNowAPI.git

Change directory

cd countriesNowAPI

Install packages

npm i

Start Project

npm start

Run test

npm run integration:test

Contribution

Please read the contribution guide here

Feel free to support and keep the API running

Buy Me A Coffee

All thanks to this gist, datahub, and this repository for the data curated.

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].