GnistAI GnistAI
Log in

IP Geolocation

IP address geolocation — country, city, coordinates, ISP, and timezone from any IP.

Overview   |   MCP   |   REST API   |   OpenAPI   |   CLI   |   Tutorial   |   Toolkits   |   Home
status: healthy status status healthy healthy tools: 3 tools tools 3 3 type: validation enrichment type type validation enrichment validation enrichment lifecycle: maintained lifecycle lifecycle maintained maintained Utilities

Data source: ip-api.com

REST Bridge Endpoint https://context.gnist.ai/rest/ip-geolocation/
Authentication

All requests require a Gnist-API-Key header (or api_key query parameter).

Free tier: 100 calls/day. Get your API key.

Tools (3)

geolocate_ip

Look up the geographic location of an IP address.

Returns country, region, city, coordinates, timezone, ISP, and organization.

Args:
ip: IPv4 or IPv6 address to look up (e.g. "8.8.8.8", "2001:4860:4860::8888").

ParameterTypeRequiredDescription
ipstringrequired
Request Body
{
  "ip": "example"
}
geolocate_ip_batch

Look up geographic locations for multiple IP addresses at once.

More efficient than individual lookups when you have several IPs.
Maximum 100 IPs per request.

Args:
ips: Comma-separated IP addresses (e.g. "8.8.8.8,1.1.1.1,208.67.222.222").

ParameterTypeRequiredDescription
ipsstringrequired
Request Body
{
  "ips": "example"
}
report_feedback

Report a bug, feature request, or general feedback for this data source.

Use this when something doesn't work as expected, when you'd like
a new feature, or when you have suggestions for improvement.

Args:
feedback: Describe the issue or suggestion.
feedback_type: One of 'bug', 'feature_request', or 'general'.

ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: "general")
Request Body
{
  "feedback": "example"
}

Quick Start

Shell
curl -X POST "https://context.gnist.ai/rest/ip-geolocation/geolocate_ip" \
  -H "Content-Type: application/json" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"ip": "example"}'
Python
import httpx

resp = httpx.post(
    "https://context.gnist.ai/rest/ip-geolocation/geolocate_ip",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    json={
  "ip": "example"
},
)
print(resp.json())

Related Toolkits (Utilities)

Resources