Skip to content

AWS lambda API to provide information of the user's IP address

Notifications You must be signed in to change notification settings

g-parki/IP-Locator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IP-Locator

AWS Lambda API to provide information of an IP address. By default, this uses the your own IP address, though it can also accept any valid public IP address. All data comes from IP-API. Check out the demo site.

API Documentation

Base Path

https://rwzr72akp3.execute-api.us-west-2.amazonaws.com/Prod/ip-locator

Query Parameters

Parameter Description Acceptable Values Default
asjson Returns IP info as JSON object if true 0, 1 0
ip Look up info for an IP other than your own Any valid IP address Your IP

Example: https://rwzr72akp3.execute-api.us-west-2.amazonaws.com/Prod/ip-locator?asjson=1&ip=84.17.46.160

Response

{   
    "country": "Netherlands",
    "city": "Amsterdam",
    "zip": "1012",
    "latitude": 52.3759,
    "longitude": 4.8975,
    "region": "NH",
    "regionName": "North Holland",
    "isp": "DataCamp Limited",
    "ip": "84.17.46.160"
}

About

AWS lambda API to provide information of the user's IP address

Topics

Resources

Stars

Watchers

Forks

Languages