API-Dokumentation

RESTful API für IP-Geolokalisierung

Verwendung

Um die API zu verwenden, sende eine HTTP-Anfrage an die angegebene Query-URL mit einem Accept: application/json oder Accept: application/xml/Accept: text/xml Header.

Das status Feld ist entweder success oder fail. message wird nur gesetzt wenn der Status fail ist.

JSON Beispiel

Anfrage:

$ curl -L -H "Accept: application/json" https://utrace.me/?query=216.73.216.22

Antwort:

{
    "status": "success",
    "country": "United States",
    "countryCode": "US",
    "region": "OH",
    "regionName": "Ohio",
    "city": "Columbus",
    "zip": "43215",
    "lat": 39.9625,
    "lon": -83.0061,
    "timezone": "America\/New_York",
    "isp": "Amazon.com",
    "org": "Anthropic, PBC",
    "as": "AS16509 Amazon.com, Inc.",
    "reverse": "",
    "query": "216.73.216.22",
    "message": null,
    "continent": "North America",
    "continentCode": "NA",
    "district": "",
    "offset": -14400,
    "currency": "USD",
    "asname": "AMAZON-02",
    "mobile": false,
    "proxy": false,
    "hosting": true,
    "abuse": null
}

XML Beispiel

Anfrage:

$ curl -L -H "Accept: text/xml" https://utrace.me/?query=216.73.216.22

Antwort: