Skip to content

API service which return country name by IP address

Notifications You must be signed in to change notification settings

arturtr/country_by_ip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Country by IP

Requirements

  • PostgreSQL database

API methods

GET response to path

/api/country_by_ip?ip=123.123.123.123

will return country name in JSON format

{
  country: "China",
  ip: "123.123.123.123"
}

CRON

For add monthly IP database update to CRON run

whenever -w

For remove this task from CRON run

whenever -c

About

API service which return country name by IP address

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published