The Geo IP API from Weatherbit offers a JSON IP / GeoIP API which allow you to obtain a visitor's IP address, or query location data from any IP address. Valid outputs include JSON, JSONP, and plantext. Supports Cross-origin resource sharing (CORS).
allowing to get a visitor IP address and to query location information from any IP address. It outputs JSON-encoded IP geolocation data, and supports both Cross-origin resource sharing (CORS) and JSONP.