API Documentation

RESTful API for IP Geolocation

Usage

To use the API, send an HTTP request to the specified Query URL with an Accept: application/json or Accept: application/xml/Accept: text/xml Header.

The status field is either success or fail. message will only be set if the status is fail.

JSON Example

Request:

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

Response:

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

Request:

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

Response: