IP ip256

A tiny free geolocation API.

Get IP address and approximate location, timezone, ASN, and network information.

$ curl "https://api.ip256.com/" Try me

Example

$ curl "https://api.ip256.com/"
{
  "ip": "203.0.113.10",
  "city": "Austin",
  "region": "Texas",
  "regionCode": "TX",
  "country": "US",
  "continent": "NA",
  "postalCode": "78701",
  "metroCode": "635",
  "latitude": "30.27130",
  "longitude": "-97.74260",
  "timezone": "America/Chicago",
  "asn": 395747,
  "asOrganization": "Google Cloud"
}

Docs

ipClient IP address.
cityCity associated with the incoming request IP, when known.
regionFirst-level region name, when known.
regionCodeFirst-level region code, when known.
countryTwo-letter country code.
continentContinent code.
postalCodePostal code, when known.
metroCodeMetro or DMA code, when known.
latitudeLatitude associated with the incoming request IP, when known.
longitudeLongitude associated with the incoming request IP, when known.
timezoneTimezone associated with the incoming request IP.
asnAutonomous System Number for the incoming request.
asOrganizationOrganization that owns the ASN.
isEUCountryIndicates whether the request country is in the EU.