Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/egbakou/user-location

Get user's country name and country fag based on his ip address
https://github.com/egbakou/user-location

country-flags country-names javascript jquery location tracking

Last synced: 24 days ago
JSON representation

Get user's country name and country fag based on his ip address

Awesome Lists containing this project

README

        

## Get user’s country name and country flag based on his IP address

![](screenshots/location.png)

I have used 3 API to do this project:

1. [api.ipify](https://api.ipify.org/?format=json) to get user’s IP address.
2. [ipapi](https://ipapi.co/) to get the country code based on the IP address return by ipify.
3. [restcountries](https://restcountries.eu) to get country name and flag based on the code.

See the [Demo](http://lioncoding.epizy.com/user-location/)