• Stars
    star
    163
  • Rank 223,633 (Top 5 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 4 years ago
  • Updated 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

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.

More Repositories

1

company-engineering-blogs

A collection of companies' engineering blogs, to help you improve your software engineering skill and learn how their software work. πŸ“–πŸ› 
JavaScript
140
star
2

BlogCafe

A Simple SPA Blog built with Laravel Vue (With Multiple Image Upload)
PHP
67
star
3

laravel-vue-minimal

A basic Vue Setup on Laravel 8. Including Sass, Vue-Router & Vuex.
PHP
31
star
4

vue-webworker-example

An illustration of web worker in Vue.js
JavaScript
19
star
5

vue-base64

Handling base64 Images in Vue
Vue
12
star
6

NudgeApp

Nudge - Entry project for NiajaHacks 2019
PHP
11
star
7

auto-voice

Customize invoices and download or automate them in a click...or two.
JavaScript
10
star
8

what-should-i-design

Open source collection of UI/UX design problem statements for you to try.
Vue
9
star
9

ecommerce-seo-nuxt

Vue
6
star
10

js-webworker-example

A Simple example of using webworkers in Javascript
HTML
6
star
11

vue-pug-starter

Vue Component with Pug Starter Template
Vue
5
star
12

created_at

Check how old a GitHub repository is and when it was created.
Handlebars
4
star
13

vue-harlem-cart

A Marketplace / Carting system to demonstrate Vue + Harlem.
JavaScript
4
star
14

NodeP2PvideoCall

A simple 🍐 to 🍐 video calling service
JavaScript
4
star
15

VueQR

A Web application for generating QR Codes for web links / websites with Vue & Flask
Vue
4
star
16

VueQRScanner

Web application to Decode generated QR Codes into URLs.
SCSS
4
star
17

credpal-transact-simulator

A simulation App of wallet transactions in Vue & Laravel
PHP
3
star
18

vue-parcel

A Demo Vue 2 application with Parcel setup
Vue
2
star
19

1loc-lib

A library of witty Javascript one-liners. The 1loc.dev website has a collection of useful Javascript one-liners, now you get to use them in your Javascript projects πŸš€
TypeScript
2
star
20

quasar-pinia

Vue
2
star
21

vue-yaml-parser

Vue Yaml Parser Example
JavaScript
2
star
22

devjavu-utterances

Devjavu's commenting space built with utterance
2
star
23

chuck-norris

Random Chuck Norris Jokes in JAMSTACK
HTML
2
star
24

countriesNow-Demo-Apps

Example applications using CountriesNow API
JavaScript
2
star
25

vue-ref-example

Accessing Component Data withΒ $ref.
Vue
2
star
26

GoServerless

Serverless boilerplate deployed hosted on AWS πŸš€
JavaScript
2
star
27

js-queue-example

A basic example of Queue Data Structure in Javascript
JavaScript
1
star
28

phunny

Laravel + Vuetify + Axios + Bulma Starter Pack 🎬
PHP
1
star
29

MartinsOnuoha

Dev Profile Readme?
1
star
30

desktop-tasky

JavaScript
1
star
31

flutter_scoped_models

An Implementation of Flutter's Scoped Model πŸ„
Dart
1
star
32

console-guess-game

Guessing Game written in Rust
Rust
1
star
33

FlutterSplash

Flutter Splash Screen
Dart
1
star
34

secret-server

A Node.js + Vue secret server project
JavaScript
1
star
35

cerchy

Landing Page for Cerchy Mobile App.
CSS
1
star
36

hugo-firebase

An Example site built with Hugo and deployed on Firebase.
HTML
1
star
37

mock-node-jwt

Mock server for node-jwt
JavaScript
1
star
38

tailwind-basic

A Basic setup of Tailwind CSS for static HTML & CSS projects
CSS
1
star
39

hellobooks

Library Management System with Node and React
HTML
1
star
40

fab-form-example

Vue
1
star