API Commands
[All Commands]

Command: Anycast_Domain_Statistics



command Anycast_Domain_Statistics

Get detailed statistics for a domain.

Input Parameters ($data):

string ssid Token from Login
string zone Zone name (domain)
string from Start date (YYYY-MM-DD) in UTC (optionally)
string to End date (YYYY-MM-DD) in UTC (optionally)

Output Responses:

string status ok | error
array data Details about your request
int total Request count in total
int unique Unique request count in total
array total_daily Request count per day
array unique_daily Unique request count per day
array geoip Requests per country-code
array ip Requests per IP
array ipxx Requests per IP/24 range
array queries Requests by subdomains
array types Requests by DNS type

Sample:


<?php
$client 
= new SoapClient(
        
null
        array(
            
"location" => "https://PRODUCTION/cmd.php",
            
"uri" => "http://PRODUCTION/soap"
            
)
        );

$params = array ( 
    
"data" => array (
        
"login" => "demo",
        
"password" => "password",
    )
);

$response $client->__call("Login",$params);
$token $response["data"]["ssid"];

$params = array (
  
'data' => 
  array (
    
'ssid' => $token,
    
'zone' => 'domain123.com',
    
'from' => '2018-07-01',
    
'to' => '2018-07-31',
  ),
);

$response $client->__call("Anycast_Domain_Statistics",$params);
INPUT: Array ( [data] => Array ( [ssid] => 51aca4e95c12821b56a9045babc943e7 [zone] => domain123.com [from] => 2018-07-01 [to] => 2018-07-31 ) ) OUTPUT: Array ( [status] => ok [data] => Array ( [total] => 35074 [unique] => 2419 [total_daily] => Array ( [2018-07-01] => 3211 [...] => ... [2018-07-31] => 2301 ) [unique_daily] => Array ( [2018-07-01] => 414 [...] => ... [2018-07-31] => 295 ) [geoip] => Array ( [DE] => 15415 [US] => 5507 ) [ip] => Array ( [1.2.3.4] => 11471 [5.6.7.8] => 3153 ) [ipxx] => Array ( [1.2.3.xx] => 3153 [5.6.7.xx] => 813 ) [queries] => Array ( [www.domain123.com] => 12209 ) [types] => Array ( [A] => 11767 [AAAA] => 6551 ) ) )

API Manual - version from 2023-05-12 12:15:50