How can I reach the number of instant viewers?

burak guder

Member
I use the rest api system on flashphoner.

After creating a new stream, I want to get the stream based instant viewer count via rest api.

When I use these "/connection/find" and "/connection/find_all", they return me a lot of data.

Thanks for your help
 

Max

Administrator
Staff member
Good day.
You can use HTTP GET query
Code:
http://wcs:8081/?action=stat&params=streams_viewers&format=json
It will return viewers count per stream, for example
Code:
{"streams_stats":{"streams_viewers":["test/1"]}}
 
Top