Skip to content

IP Information

  • Endpoint Path: /api/fresns/v1/common/ip-info
  • Method: GET
  • Request: Query

Headers Optional Parameter

KeyPublic Mode (Required)Private Mode (Required)
X-Fresns-Aidoptionaloptional
X-Fresns-Aid-Tokenoptionaloptional
X-Fresns-Uidoptionaloptional
X-Fresns-Uid-Tokenoptionaloptional

Query Params

KeyTypeRequiredDescription
ipStringoptionalIf null, the IP information of the current requester will be displayed.

Return

json
{
    "code": 0,
    "message": "ok",
    "data": {
        "networkIpv4": "137.132.250.10",
        "networkIpv6": null,
        "networkPort": "8080",
        "networkTimezone": "Asia/Singapore",
        "networkOffset": 28800,
        "networkIsp": "National University of Singapore",
        "networkOrg": "National University of Singapore",
        "networkAs": "AS7472 NUS Information Technology",
        "networkAsName": "NUS-AS-AP",
        "networkReverse": null,
        "networkMobile": false,
        "networkProxy": false,
        "networkHosting": false,
        "mapId": 2, // Dictionary data: Map service provider number
        "latitude": 1.29758,
        "longitude": 103.773,
        "continent": "Asia",
        "continentCode": "AS",
        "country": "Singapore",
        "countryCode": "SG",
        "region": "Central Singapore",
        "regionCode": "01",
        "city": "Singapore",
        "cityCode": "SG",
        "district": "Queenstown",
        "address": null,
        "zip": "119259"
    }
}

Released under the Apache-2.0 License