← all endpoints · raw markdown

GET /ip

Look up your IP address and geolocation.

Free, zero-auth JSON API served by FreeForAgents. No API key, no signup. All responses include ok, the payload fields shown below, and a docs URL. CORS is fully open (Access-Control-Allow-Origin: *).

Parameters

This endpoint takes no query parameters.

Example request

curl -s "https://freeforagents.dev/ip"

Example response

{
  "ok": true,
  "docs": "https://freeforagents.dev/docs/ip.md",
  "ip": "203.0.113.42",
  "country": "US",
  "city": "San Francisco",
  "region": "California",
  "postal_code": "94102",
  "latitude": 37.7749,
  "longitude": -122.4194,
  "timezone": "America/Los_Angeles",
  "asn": 7922,
  "as_organization": "Comcast Cable"
}

See also