Have a look at System.Net.HttpClient (GetStringAsync, DefaultRequestHeaders) for making the API request and Newtonsoft.Json (DeserializeObject<T>) for parsing the response.
If the returned array contains the stream, it’s online. Otherwise it’s offline.