Zum Inhalt springen
GET /v1/lookup

Geolocate any IPv4/IPv6 address

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/ipgeo-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

curl "https://api.oanor.com/ipgeo-api/v1/lookup" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/ipgeo-api/v1/lookup", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/ipgeo-api/v1/lookup");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/ipgeo-api/v1/lookup",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "ip": "8.8.8.8",
        "city": "Mountain View",
        "type": "IPv4",
        "is_eu": false,
        "postal": "94039",
        "region": "California",
        "source": "ipwho.is",
        "country": "United States",
        "currency": null,
        "flag_img": "https://cdn.ipwhois.io/flags/us.svg",
        "latitude": 37.3860517,
        "timezone": "America/Los_Angeles",
        "continent": "North America",
        "longitude": -122.0838511,
        "connection": {
            "asn": 15169,
            "isp": "Google LLC",
            "org": "Google LLC",
            "domain": "google.com"
        },
        "flag_emoji": "🇺🇸",
        "utc_offset": "-07:00",
        "region_code": "CA",
        "calling_code": "+1",
        "country_code": "US",
        "continent_code": "NA"
    },
    "meta": {
        "timestamp": "2026-05-29T21:28:59.364Z",
        "request_id": "dcbcb32d-079d-4b1d-8bb1-bd9ae7e81c30"
    },
    "status": "ok",
    "message": "IP geolocation retrieved successfully",
    "success": true
}