Beginning of work

API queries URL:{module}/{method}/


where {module} is API module and {method} is method in module.


Example request for retrieve information about IP address:

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'X-token: {YOUR_SECRET_KEY}',
    'Content-Type: multipart/form-data'
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
     'ip' => ''

$res = curl_exec($ch);

$res = json_decode($res, true);


All requests to the server can be in JSON or FORM-DATA format

All responses from the server returned in JSON format

All requests must contain your secret key, which can be created in the Account -> API section

Any requests from the server may generate errors. The error is reported via the status variable in the response.


Example error response: 

 {'status': 'key_unknown'}

If the response assumes data content, the data will be passed through the result variable:


 'status': 'ok', 

 'result': [

   'ip': '', 

   'country': 'US',

   'city': 'California',

   'continent': 'South America'







Article Details

Article ID:
Date added:
2022-11-04 16:48:03
Rating (Votes):

Related articles