GET /geo/ip/:ip
Geolocate valfri specifik IPv4 or IPv6 address. Returnerar approximate latitude/longitude, city, region, land, timezone, and ISP information for the given IP. Användbart för att slå upp the plats of server IPs, investigating suspicious login attempts, enriching log data med geographic context, and att bygga IP-baserad access control system.
ip
obligatorisk
IP address
| Namn | Obligatorisk | Standard | Beskrivning |
|---|---|---|---|
ip |
Ja | - | IP address |
curl https://nordapi.ee/api/v1/geo/ip/8.8.8.8
curl https://nordapi.ee/api/v1/geo/ip/8.8.8.8
curl https://nordapi.ee/api/v1/geo/ip/1.1.1.1
curl https://nordapi.ee/api/v1/geo/ip/93.184.216.34
{
"data": {
"city": "Ashburn",
"country": "United States",
"country_code": "US",
"ip": "8.8.8.8",
"isp": "Google LLC",
"latitude": 39.03,
"longitude": -77.5,
"org": "Google Public DNS",
"region": "Virginia",
"timezone": "America/New_York",
"zip": "20149"
},
"success": true
}