Skip to content

Latest commit

 

History

History
46 lines (34 loc) · 1022 Bytes

README.md

File metadata and controls

46 lines (34 loc) · 1022 Bytes

Build Status js-standard-style Greenkeeper badge

micro-geoip-country

Get country from ip

API

GET

curl https://country.geoip.allthethings.win?ip=8.8.8.8

returns

{
  "countryCode": "US",
  "countryCode3": "USA",
  "countryName": "United States",
  "countryEmoji": "🇺🇸"
}

POST

curl -d '{"ip": "8.8.8.8"}' https://country.geoip.allthethings.win
{
  "countryCode": "US",
  "countryCode3": "USA",
  "countryName": "United States",
  "countryEmoji": "🇺🇸"
}

License

MIT

alt text