Developer API

anketa.getHitlist

Get a list of users who viewed a certain profile.

Access level: 2 - General access + Access to information about those who viewed user's profile

Parameters:
Name Required parameter Description
sid +
period Select a range for display: -1 per day (on default), -7 per week, -30 per month
limit Number of results, returned per one request
offset To display starting with a result
blocks Its functions are the same as of a similar method parameter anketa.getInfo. Blocks are separated with commas: about, location, flags, familiarity, type, favour,other. If this parameter is not specified, blocks info, location and flags are only displayed.
ids_only If the parameter is specified (=1) – method returns profile id only, if not – usual method characteristics are preserved.
Ответ метода:
{
    "status" : int,
    "message" : "str",
    "data": {
    "period" : int,
    "history":
    {
    "periods":
    {
    "key_1": //per day
    {
    "name" : "str", // Name «Per day»
    "count_visitors" : int // Number of visitors
    },
    "key_7": //per week
    {
    "name" : "str",
    "count_visitors" : int
    },
    "key_30": //per month
    {
    "name" : "str",
    "count_visitors" : int
    }
    }
    },
    "visitors": //list of profiles of users, who visited the page
    [
    {
    "info":
    {
    "oid" : int,
    "login" : "str",
    "name" : "str",
    "gender" : "str",
    "anketa_link" : "str",
    "small_photo_url" : "str",
    "medium_photo_url" : "str",
    "age" : int,
    },
    "location":
    {
    "country" : "str",
    "region" : "str",
    "city" : "str",
    "metro" : "str"
    },
    "flags":
    {
    "is_vip" : int,
    "is_real" : int,
    "is_intim" : int,
    "is_leader" : int,
    "maketop" : "str",
    "is_online" : int
    },
    "time_visit" : "str" //time of visit
    }
    ]
    }
    }