cURL
curl --request GET \ --url https://{appid}.api-{region}.cometchat.io/v3/stats \ --header 'apikey: <api-key>'
{ "data": { "metrics": { "audio_minutes": 0, "video_minutes": 0, "recorded_minutes": 0, "active_users": 0, "concurrent_users": 0 }, "time_range": { "fromDate": 1630164253000, "toDate": 1632842653000 } } }
Usage metrics of an app.
API Key with fullAccess scope(i.e. Rest API Key from the Dashboard).
Unix timestamp from which usage has to be fetched.
Unix timestamp till which usage has to be fetched.
Was this page helpful?