← Landfræði og veður

IP staðsetning (tiltekin)

GET /geo/ip/:ip

Geolocate hvaða ... sem er specific IPv4 or IPv6 address. Skilar approximate breiddar-/lengdargráðu, city, region, country, tímabelti, and ISP information fyrir given IP. Gagnlegt fyrir looking up the location of server IPs, investigating suspicious login attempts, enriching log data with geographic context, and building IP-based access control kerfi.

Breytur

ip nauðsynlegt

IP address

Dæmi um fyrirspurnir

Grunnnotkun
curl https://nordapi.ee/api/v1/geo/ip/8.8.8.8
Google DNS server location
curl https://nordapi.ee/api/v1/geo/ip/8.8.8.8
Cloudflare DNS server location
curl https://nordapi.ee/api/v1/geo/ip/1.1.1.1
Locate a specific IP
curl https://nordapi.ee/api/v1/geo/ip/93.184.216.34

Lifandi svar

{
  "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
}