Api Function Name

get_ip_information


This api function will allow you to pass an ip address and we will send back a list of data for that ip which can be used for your application.

This function uses theĀ ipinfo.io api to gather its data.

End Point URL

The url end point is: https://api.arcticspascore.com/live/

Parameters

action Type Example Required Description
action varchar get_ip_information yes

The name of the action

ip varchar 0.0.0.0 yes

An ip4 address with 4 octets

Response Codes

Response Code Response Message
3000 lookup failed, ip address not valid
3001 here is the ip information

Example Responses

Response Code Response Format Example
3000 json
{
    "MainResponse": {
        "APIName": "Arctic Spas Core Live API",
        "APIFunctionName": "get_ip_information",
        "HttpResponseCode": 200,
        "RequestID": 127583,
        "QueryDateTimeGMT": "2018-06-06 18:50:09",
        "ResponseTime": 0.115536928177,
        "ResponseCode": 3000,
        "ResponseMessage": "lookup failed, ip address not valid"
    }
}
3001 json
{
    "MainResponse": {
        "APIName": "Arctic Spas Core Live API",
        "APIFunctionName": "get_ip_information",
        "HttpResponseCode": 200,
        "RequestID": 127569,
        "QueryDateTimeGMT": "2018-06-06 18:43:59",
        "ResponseTime": 0.363296985626,
        "ResponseCode": 3001,
        "ResponseMessage": "here is the ip information"
    },
    "IPDetails": {
        "ip": "148.251.176.102",
        "country_code": "DE",
        "country_name": "Germany",
        "city": "Grimma",
        "region": "Sachsen",
        "org": "AS24940 Hetzner Online GmbH",
        "lat": "51.2333",
        "lon": "12.7167"
    }
}