Get your public IP as plain text or JSON with geolocation. No signup, no API key, no rate limit headaches. Just curl and go.
Three endpoints. No authentication. Works from terminal, browser, or any programming language.
# Get your IP as plain text
curl https://agent-gateway-kappa.vercel.app/ip
# Get your IP with geolocation (JSON)
curl https://agent-gateway-kappa.vercel.app/ip/json
# Look up any IP address
curl https://agent-gateway-kappa.vercel.app/ip/geo/8.8.8.8// Get your IP as text
const ip = await fetch('https://agent-gateway-kappa.vercel.app/ip')
.then(r => r.text());
console.log(ip); // "203.0.113.42"
// Get your IP with geolocation
const data = await fetch('https://agent-gateway-kappa.vercel.app/ip/json')
.then(r => r.json());
console.log(data.country, data.city); // "US" "San Francisco"
// Look up any IP
const geo = await fetch('https://agent-gateway-kappa.vercel.app/ip/geo/8.8.8.8')
.then(r => r.json());import requests
# Get your IP as text
ip = requests.get('https://agent-gateway-kappa.vercel.app/ip').text
print(ip) # "203.0.113.42"
# Get your IP with geolocation
data = requests.get('https://agent-gateway-kappa.vercel.app/ip/json').json()
print(data['country'], data['city']) # "US" "San Francisco"
# Look up any IP
geo = requests.get('https://agent-gateway-kappa.vercel.app/ip/geo/8.8.8.8').json()package main
import (
"fmt"
"io"
"net/http"
)
func main() {
resp, _ := http.Get("https://agent-gateway-kappa.vercel.app/ip")
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body)) // "203.0.113.42"
}| Endpoint | Returns | Auth |
|---|---|---|
GET /ip | Your IP as plain text | None |
GET /ip?format=json | Your IP + geolocation as JSON | None |
GET /ip/json | Your IP + full geolocation as JSON | None |
GET /ip/geo/:address | Geolocation for any IP address | None |
/ip/json{
"ip": "203.0.113.42",
"found": true,
"country": "US",
"region": "CA",
"city": "San Francisco",
"timezone": "America/Los_Angeles",
"latitude": 37.7749,
"longitude": -122.4194,
"eu": false
}Show local content, currency, or language based on visitor location. One API call in your frontend.
Log visitor IPs with geolocation for audit trails, rate limiting, or fraud detection.
Give your AI agent location awareness. Works with LangChain, CrewAI, Claude MCP, and any HTTP-capable agent.
The public /ip endpoints are free forever. For batch lookups, distance calculations, timezone data, and 40+ more APIs, get a free API key.