get_client_ips_geo_data – display data about IP addresses of clients who accessed the resource over a time period and their geo-properties
April 17, 2024
ID 249390
get_client_ips_geo_data(Auth, client_id, locale_id, resource_id, start_ts, end_ts)
Description: the method displays data about addresses of clients who accessed the resource over a time period (not more than 1 hour) and their geo-properties.
Input parameters:
client_id (int) – customer ID (integer from 1 to 4 294 967 295).
locale_id (int) – locale ID (10 for English, 77 for Russian).
resource_id (int) – resource ID (integer from 1 to 4 294 967 295).
start_ts (str) – start of the period of time for which to display data (’YYYY-MM-DD hh:mm:ss’).
end_time (str,nil) – end of the interval for data output ('YYYY-MM-DD hh:mm:ss', the interval end must not be earlier than the interval start). This can be nil
, in which case the current time is used.
Note:
The maximum time interval is 1 hour.
Not more than 100 000 entries are displayed.
Result:
A JSON notation string of the following structure:
[ { client_ip (str) – client IP address in text format (from 0.0.0.1 to 255.255.255.255) geo_country (str,null) – country name geo_city (str,null) – city name geo_asn (int,null) – AS number geo_isp (str,null) – ISP name geo_org (str,null) – organization name }, ... ]
|