ip-geolocation-by-ipgeolocation-io
3.5
The IP Geolocation by ipgeolocation.io server provides an advanced and reliable solution for obtaining geolocation information based on IP addresses.
The IP Geolocation by ipgeolocation.io server is essential for developers who need to access precise location data for various applications, including content personalization, geotargeting, geofencing, ad targeting, digital rights management, and form auto-completion. It offers comprehensive geolocation data, freemium and paid plans, and multiple endpoints to cater to different needs. The server supports retrieving client IP addresses, geolocating specific IP addresses, and performing bulk IP geolocations for batch processing.
Features
- Comprehensive Geolocation Data: Retrieve detailed information such as city, state, province, country, continent, latitude, longitude, region, timezone, current time, organization, ISP, local currency, and country flags from a given IP address.
- Freemium and Paid Plans: The server offers a freemium plan allowing up to 15,000 IP lookup calls per month. For higher usage, paid plans are available starting from $15 per month.
- Multiple Endpoints: The server supports various endpoints to cater to different needs, including retrieving the client IP address, geolocating a specific IP address, and performing bulk IP geolocations for batch processing.
MCP Tools
- get_client_ip: This tool retrieves the IP address of the client making the request.
- get_ip_geolocation: Provides geolocation and other valuable data points from an IP address. If an IP address is provided as a query parameter, the server will return geolocation data for that address. If no IP address is specified, the server will return geolocation data for the client IP.
- bulk_ip_geolocation: Enables bulk lookup of up to 50 IP addresses at a time, allowing efficient batch processing.
Usage with Different Platforms
python
python
import requests
# Example of getting geolocation data for a specific IP
response = requests.get('https://api.ipgeolocation.io/ipgeo', params={'apiKey': 'YOUR_API_KEY', 'ip': '8.8.8.8'})
print(response.json())
javascript
javascript
fetch('https://api.ipgeolocation.io/ipgeo?apiKey=YOUR_API_KEY&ip=8.8.8.8')
.then(response => response.json())
.then(data => console.log(data));