Statistics

Return statistics for the given user.

Access

GET https://api.doyoubuzz.com/user/stats?userId=:userId

 

Attributes

 

Name Description Type
offer Number of days covered by the stats integer
last_update Last time the user has been updated timestamp
visits List of the visits grouped per day element
visit Unique visiters element
date Day of the statistic String (dd/mm/yyyy)
value Number of unique visiters for the day integer

 

Examples

GET https://api.doyoubuzz.com/user/stats&userId=2

    {
    "offer": 10,
    "last_update": 1398697182,
    "visits": {
        "visit": [{
            "date": "05\/05\/2014",
            "value": "15"
        }, {
            "date": "04\/05\/2014",
            "value": "29"
        }, {
            "date": "03\/05\/2014",
            "value": "18"
        }, {
            "date": "02\/05\/2014",
            "value": "37"
        }, {
            "date": "01\/05\/2014",
            "value": "22"
        }, {
            "date": "30\/04\/2014",
            "value": "12"
        }, {
            "date": "29\/04\/2014",
            "value": "7"
        }, {
            "date": "28\/04\/2014",
            "value": "48"
        }, {
            "date": "27\/04\/2014",
            "value": "57"
        }, {
            "date": "26\/04\/2014",
            "value": "9"
        }]
    }
}

    
    
        10
        1398697182
        
            
                05/05/2014
                15
            
            
                04/05/2014
                29
            
            
                03/05/2014
                18
            
            
                02/05/2014
                37
            
            
                01/05/2014
                22
            
            
                30/04/2014
                12
            
            
                29/04/2014
                7
            
            
                28/04/2014
                48
            
            
                27/04/2014
                57
            
            
                26/04/2014
                9