{"openapi":"3.0.0","info":{"title":"nanoStream Analytics API v2","version":"2.36.5","description":"# Base URL\n```\nhttps://metrics-api.nanostream.cloud\n```\n\n> ⚠️ **Breaking change — v2.34.2:** The **domain** has changed and endpoint paths no longer include the `/api` prefix.\n>\n> **Before:** `https://metrics.nanocosmos.de/api/v2/...`\n>\n> **Now:** `https://metrics-api.nanostream.cloud/v2/...`\n\n# Info\n© 2026 nanocosmos GmbH. All Rights Reserved.<br><br>\nnanoStream Cloud Analytics offers a great way to monitor and analyze the\nperformance and quality of service of your live streams.<br>This is the\ndocumentation for the direct access of the API.<br><br> You can access the\nUI [here](https://metrics.nanostream.cloud)<br>General documentation can be\nfound on\n[https://docs.nanocosmos.net/docs/cloud/analytics](https://docs.nanocosmos.net/docs/cloud/analytics)\n  \n  \n  ## How to authenticate on this page to test the API routes?\n\n  First use the authentication route to get a\n  token which you must paste after clicking on \"Authorize\" on the top of this page.  \n  You can only use the metric routes after successful authentication!\n\n  ## Access token lifetime\n\n  The `/authenticate` route returns a token that expires after 24 hours. You can't change this lifetime.\n\n  If a script or service needs a token that lasts longer, you can create one with the\n  [Cloud Token Service](https://api.nanostream.cloud/docs/token/#operation/Create%20a%20token%20for%20the%20bintu%20services).\n  Put `metrics` in the `aud` array and set `exp` to the expiry time in Unix seconds, up to 365 days ahead.\n  If you leave out `exp`, the token expires after 24 hours. Send the token in the `X-ACCESS-TOKEN` header,\n  the same way as a token from `/authenticate`.\n\n  > **Note:** Shorter token lifetimes are more secure, because a leaked token keeps working until it expires.\n  > That's why long-lived tokens are generally not recommended. Choose the shortest lifetime that works for you,\n  > and put only the audiences you need in `aud`.\n\n  ```\n  curl -X POST 'https://token.nanostream.cloud/bintu/token' \\\n    -H 'X-BINTU-APIKEY: <your bintu API key>' \\\n    -H 'Content-Type: application/json' \\\n    -d '{\"exp\":<expiry in Unix seconds>,\"aud\":[\"metrics\"]}'\n  ```\n\n  ### One token for bintu and Analytics\n\n  Use `\"aud\":[\"bintu\",\"metrics\"]`. Send the token in the `X-BINTU-TOKEN` header to the bintu API and in\n  the `X-ACCESS-TOKEN` header to the Analytics API.\n\n  ## API status codes\n\n  The API responses always contain one of these general status codes to provide additional information about the requested data:\n\n  | Status Code | Label | Description |\n  | ----------- | ----- | ----------- |\n  | 1000 | OK | Success, related data was found. |\n  | 2000 | NO DATA | Request was successful, but no related data was found. |\n  | 2001 | NO ALERTS | Request was successful, but no alerts were found. This is used for requests regarding alert information retrieval. |\n\n  Refer to the [documentation](https://docs.nanocosmos.net/docs/analytics/api-docs#api-status-codes) for more details.\n  \n  ## API request limiting\n  \n  This API limits requests to 1 per second but allows short bursts of up to 30 additional requests to be processed immediately without delay. If the rate limit is exceeded, you will receive a 502 (Bad Gateway) or 504 (Gateway Timeout) HTTP error code from Nginx."},"servers":[{"url":"https://metrics-api.nanostream.cloud","description":"Main server"}],"security":[{"X-ACCESS-TOKEN":[]}],"components":{"securitySchemes":{"X-ACCESS-TOKEN":{"description":"First use the \"/authenticate\" route and then paste the token from\nthe response body (property \"token\")<br>Example token:\n```\neyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJvcmdhbml6YXRpb24iOnsibmFtZSI6ImZvbyIsImhhc2giOiJiYXIiLCJsZXZlbCI6eyJOYW1lIjoiZm9vIiwiTnVtYmVyIjowfX0sImlhdCI6MTYyODE3ODI3NywiZXhwIjoxNjI4MTc4MzM3fQ.9c4ZNOkpPlq-bLv7y_nsYLcIn2k34uMPT8MgXPXcQ84\n```","type":"apiKey","in":"header","name":"X-ACCESS-TOKEN"}},"parameters":{"from":{"name":"from","in":"query","explode":true,"required":true,"description":"Date in ISO-8601 format or unix timestamp in seconds (timezone: UTC). Since the highest temporal resolution is one minute the given date is rounded down to the last full minute (e.g. 2026-03-14T15:44:46 to 2026-03-14T15:44:00).","schema":{"type":"string","example":"2026-03-14T15:44"}},"to":{"name":"to","in":"query","explode":true,"required":true,"description":"Date in ISO-8601 format or unix timestamp in seconds (timezone: UTC). Since the highest temporal resolution is one minute the given date is rounded up to the next full minute (e.g. 2026-03-14T15:53:16 to 2026-03-14T15:54:00).","schema":{"type":"string","example":"2026-03-14T15:54"}},"interval":{"name":"interval","in":"query","explode":true,"required":true,"description":"Temporal resolution","schema":{"type":"string","enum":["minute","hour","day","week","month","year"]}},"countries_five_restricted":{"name":"countries","in":"query","explode":true,"required":true,"description":"This route is restricted to 5 countries per request.","schema":{"type":"array","items":{"type":"string","example":"DE"}}},"streamsDefault":{"name":"streams","in":"query","explode":true,"description":"You can enter multiple stream names (works like OR filter). Sending requests with no stream\nname parameters aggregates all your accessible stream data.\nA value may contain `*` as a wildcard, as long as it keeps the five character organization prefix and the hyphen, for example `FoBar-*` for every stream of that organization.","schema":{"type":"array","items":{"type":"string","example":"FoBar-SzB0r"}}},"streamOneRestricted":{"name":"streams","in":"query","explode":true,"required":true,"description":"This route is restricted to one stream per request.\nA value may contain `*` as a wildcard, as long as it keeps the five character organization prefix and the hyphen, for example `FoBar-*` for every stream of that organization.","schema":{"type":"array","items":{"type":"string","example":"FoBar-SzB0r"}}},"streamFiveRestricted":{"name":"streams","in":"query","explode":true,"required":true,"description":"This route is restricted to 5 streams per request.\nA value may contain `*` as a wildcard, as long as it keeps the five character organization prefix and the hyphen, for example `FoBar-*` for every stream of that organization.","schema":{"type":"array","items":{"type":"string","example":"FoBar-SzB0r"}}},"streamTenRestricted":{"name":"streams","in":"query","explode":true,"required":true,"description":"This route is restricted to 10 streams per request.\nA value may contain `*` as a wildcard, as long as it keeps the five character organization prefix and the hyphen, for example `FoBar-*` for every stream of that organization.","schema":{"type":"array","items":{"type":"string","example":"FoBar-SzB0r"}}},"streams50Restricted":{"name":"streams","in":"query","explode":true,"required":true,"description":"This route is restricted to 50 stream names per request.\nA value may contain `*` as a wildcard, as long as it keeps the five character organization prefix and the hyphen, for example `FoBar-*` for every stream of that organization.","schema":{"type":"array","items":{"type":"string","example":"FoBar-SzB0r"}}},"tagsThreeRestricted":{"name":"tags","in":"query","explode":true,"required":true,"description":"This route is restricted to 3 tags per request.","schema":{"type":"array","items":{"type":"string","example":"FoBarTag"}}},"stsTags":{"name":"stsTags","in":"query","explode":true,"description":"You can enter multiple STS tags (works like OR filter). The STS tag must be \nprovided during the creation of a STS token. The response will only comprise\nplaybacks that are tagged with the given tags (other playbacks from\nthe same IP won't be part of the response statistics). Sending\nrequests with no STS tag parameters aggregates all your accessible\nstream data.","schema":{"type":"array","items":{"type":"string","example":"FooBar"}}},"groupBy":{"name":"groupBy","description":"breakdown term","in":"path","required":true,"schema":{"type":"string","enum":["ip","stream","country","city","referrer"]}},"streamStartSuccessBreakdown":{"name":"breakdownTerm","description":"breakdown term","in":"path","required":true,"schema":{"type":"string","enum":["country","city","ip","browser","browserVersion","os","osVersion","referrer","playerVersion","initialAbrProfile","mediaPlaybackApi","faststart"]}},"countryStartSuccessBreakdown":{"name":"breakdownTerm","description":"breakdown term","in":"path","required":true,"schema":{"type":"string","enum":["stream","city","ip","browser","browserVersion","os","osVersion","referrer","playerVersion","initialAbrProfile","mediaPlaybackApi","faststart"]}},"allStartSuccessBreakdown":{"name":"breakdownTerm","description":"Availability of the breakdown terms 'stream' and 'country' depends on the applied filtering","in":"path","required":true,"schema":{"type":"string","enum":["stream","country","city","ip","browser","browserVersion","os","osVersion","referrer","playerVersion","initialAbrProfile","mediaPlaybackApi","faststart"]}},"countries":{"name":"countries","in":"query","explode":true,"required":false,"description":"You can enter multiple countries (works like OR filter). Get available countries via API route 'Available countries' located in the folder 'Filtering'.","schema":{"type":"array","items":{"type":"string","example":"DE"}}},"tags":{"name":"tags","in":"query","explode":true,"required":false,"description":"You can enter multiple stream tags (works like AND filter, that means you will get an intersection of multiple sets of streams, which are tagged with the respective tag). If you also use a stream name filtering simultaneously, the streams are also AND filtered with the resulting streams of the tags intersection. Find available tags [here](https://api.nanostream.cloud/docs/bintu/#tag/Tag).","schema":{"type":"array","items":{"type":"string","example":"fooTag"}}},"events":{"name":"events","in":"query","explode":true,"required":false,"description":"You can enter multiple H5Live events (works like OR filter). Get available events via API route 'Available events' located in the folder 'Filtering'.\nA value may contain `*` as a wildcard, for example `Foo*`. A single `*` selects every document that carries an event at all.","schema":{"type":"array","items":{"type":"string","example":"FooEvent"}}},"format":{"name":"format","in":"query","explode":true,"required":false,"description":"If an export of the data in CSV format instead of the default JSON format is desired, it is necessary to include this parameter.","schema":{"type":"string","enum":["csv"]}},"hourlyFrom":{"name":"from","in":"query","explode":true,"required":true,"description":"Date in ISO-8601 format or unix timestamp in seconds that points to the start of an hour (timezone: UTC)","schema":{"type":"string","example":"2026-01-14T15:00"}},"hourlyTo":{"name":"to","in":"query","explode":true,"required":true,"description":"Date in ISO-8601 format or unix timestamp in seconds that points to the start of an hour (timezone: UTC)","schema":{"type":"string","example":"2026-01-14T16:00"}},"filterFrom":{"name":"from","in":"query","explode":true,"required":false,"description":"Date in ISO-8601 format or unix timestamp in seconds (timezone: UTC). Since the highest temporal resolution is one minute the given date is rounded down to the last full minute (e.g. 2026-03-14T15:44:46 to 2026-03-14T15:44:00).\n\nMust be provided together with `to`. If both are omitted, the complete list of known values is returned instead of only those that actually occur in your data.","schema":{"type":"string","example":"2026-03-14T15:44"}},"filterTo":{"name":"to","in":"query","explode":true,"required":false,"description":"Date in ISO-8601 format or unix timestamp in seconds (timezone: UTC). Since the highest temporal resolution is one minute the given date is rounded up to the next full minute (e.g. 2026-03-14T15:53:16 to 2026-03-14T15:54:00).\n\nMust be provided together with `from`. If both are omitted, the complete list of known values is returned instead of only those that actually occur in your data.","schema":{"type":"string","example":"2026-03-14T15:54"}},"sortByCount":{"name":"sortByCount","in":"query","explode":true,"required":false,"description":"Return the results ordered by the number of matching data points (most frequent first) instead of the default alphabetical order. Only has an effect in combination with `from` and `to`.","schema":{"type":"boolean","example":true}},"storage":{"name":"storage","in":"query","explode":true,"required":false,"description":"Select the data storage that is queried. By default the available values are resolved from the standard metrics data. Use `longterm` to resolve them from the long term (hourly) metrics instead, which is relevant for time ranges that reach further back than the standard data retention. Only has an effect in combination with `from` and `to`.","schema":{"type":"string","enum":["longterm"],"example":"longterm"}},"worldBdTermAccountingIdx":{"name":"breakdownTerm","description":"The breakdown term","in":"path","required":true,"schema":{"type":"string","enum":["stream","referrer","city","ip"]}},"worldBdTermPlayerMetricsIdx":{"name":"breakdownTerm","description":"The breakdown term","in":"path","required":true,"schema":{"type":"string","enum":["stream","city","ip","browser","os","referrer","playerversion"]}},"worldBdTermQoeMetricsIdx":{"name":"breakdownTerm","description":"The breakdown term","in":"path","required":true,"schema":{"type":"string","enum":["stream"]}}},"responses":{"BadRequest":{"description":"Bad request."},"NginxRateLimiting":{"description":"Nginx, rate limit exceeded. Please wait for 30 seconds before sending another request."},"TokenInvalid":{"description":"Unauthorized, JWT token is invalid."},"AccessDenied":{"description":"Access denied, no permission."},"StreamNotFound":{"description":"Given stream name has not been found."}}},"tags":[{"name":"Access token","description":"Login with your email and password to get access token"},{"name":"Usage metrics","description":"Access your usage metric data"},{"name":"H5Live metrics","description":"Access your H5Live metric data"},{"name":"MoQ metrics","description":"Access your MoQ (Media over QUIC) playback metric data"},{"name":"Webcaster metrics","description":"Access your Webcaster metric data"},{"name":"Viewer metrics","description":"Access your viewer metric data"},{"name":"Monitoring","description":"Live metrics for monitoring"},{"name":"Alerting","description":"Alerts and advice for live ingest streams"},{"name":"Playback start success","description":"Success ratio for playback starts"},{"name":"Playback start errors","description":"Errors for playback starts"},{"name":"World map metrics","description":"Various metrics aggregating data for each country of the world"},{"name":"Filtering","description":"Get lists of available filterings"},{"name":"Alert Notification Configuration","description":"Configuration for alert notifications via e.g. email"},{"name":"Live Captions metrics","description":"Access your Live Captions usage metric data"}],"paths":{"/authenticate":{"post":{"summary":"Authentication","description":"```\nhttps://metrics-api.nanostream.cloud/authenticate\n```\n\nAuthentication with user credentials to get access token\n\nThe token expires after 24 hours. For a longer lifetime, see [Access token lifetime](#section/Info/Access-token-lifetime).","tags":["Access token"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["email","password"],"properties":{"email":{"type":"string","example":"foo@bar.foo"},"password":{"type":"string","example":"secretFooBar"}}}}}},"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","description":"Authentication token (JWT) for further requests"},"expires":{"type":"string","description":"Expiration date of authentication token"},"isAdmin":{"type":"boolean"},"organization":{"type":"object","properties":{"name":{"type":"string","description":"Organization name"},"hash":{"type":"string","description":"Organization hash"}}},"accessLevel":{"type":"object","properties":{"name":{"type":"string","description":"Access level name"},"code":{"type":"number","description":"Access level code"}}}}},"example":{"token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJvcmdhbml6YXRpb24iOnsibmFtZSI6ImZvbyIsImhhc2giOiJiYXIiLCJsZXZlbCI6eyJOYW1lIjoiZm9vIiwiTnVtYmVyIjowfX0sImlhdCI6MTYyODE3ODI3NywiZXhwIjoxNjI4MTc4MzM3fQ.9c4ZNOkpPlq-bLv7y_nsYLcIn2k34uMPT8MgXPXcQ84","expires":"2026-01-01T14:14:14.600Z","isAdmin":false,"organization":{"name":"FooBar","hash":"F5OBA"},"accessLevel":{"name":"Full","code":2}}}}},"401":{"description":"Unauthorized, given credentials are invalid."},"403":{"description":"Forbidden, account is disabled or unauthorized."},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request POST \\\n  --url https://metrics-api.nanostream.cloud/authenticate \\\n  --header 'content-type: application/json' \\\n  --data '{\"email\":\"foo@bar.foo\",\"password\":\"secretFooBar\"}'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"strings\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/authenticate\"\n\n\tpayload := strings.NewReader(\"{\\\"email\\\":\\\"foo@bar.foo\\\",\\\"password\\\":\\\"secretFooBar\\\"}\")\n\n\treq, _ := http.NewRequest(\"POST\", url, payload)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.post(\"https://metrics-api.nanostream.cloud/authenticate\")\n  .header(\"content-type\", \"application/json\")\n  .body(\"{\\\"email\\\":\\\"foo@bar.foo\\\",\\\"password\\\":\\\"secretFooBar\\\"}\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = JSON.stringify({\n  \"email\": \"foo@bar.foo\",\n  \"password\": \"secretFooBar\"\n});\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"POST\", \"https://metrics-api.nanostream.cloud/authenticate\");\nxhr.setRequestHeader(\"content-type\", \"application/json\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"POST\", \"https://metrics-api.nanostream.cloud/authenticate\");\n\nreq.headers({\n  \"content-type\": \"application/json\"\n});\n\nreq.type(\"json\");\nreq.send({\n  \"email\": \"foo@bar.foo\",\n  \"password\": \"secretFooBar\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$body = new http\\Message\\Body;\n$body->append('{\"email\":\"foo@bar.foo\",\"password\":\"secretFooBar\"}');\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/authenticate');\n$request->setRequestMethod('POST');\n$request->setBody($body);\n\n$request->setHeaders([\n  'content-type' => 'application/json'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\npayload = \"{\\\"email\\\":\\\"foo@bar.foo\\\",\\\"password\\\":\\\"secretFooBar\\\"}\"\n\nheaders = { 'content-type': \"application/json\" }\n\nconn.request(\"POST\", \"/authenticate\", payload, headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/authenticate\"\n\npayload = {\n    \"email\": \"foo@bar.foo\",\n    \"password\": \"secretFooBar\"\n}\nheaders = {\"content-type\": \"application/json\"}\n\nresponse = requests.request(\"POST\", url, json=payload, headers=headers)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/authenticate\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest.body = \"{\\\"email\\\":\\\"foo@bar.foo\\\",\\\"password\\\":\\\"secretFooBar\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"content-type\": \"application/json\"]\nlet parameters = [\n  \"email\": \"foo@bar.foo\",\n  \"password\": \"secretFooBar\"\n] as [String : Any]\n\nlet postData = JSONSerialization.data(withJSONObject: parameters, options: [])\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/authenticate\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"POST\"\nrequest.allHTTPHeaderFields = headers\nrequest.httpBody = postData as Data\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/authenticate\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"content-type: application/json\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\ncurl_easy_setopt(hnd, CURLOPT_POSTFIELDS, \"{\\\"email\\\":\\\"foo@bar.foo\\\",\\\"password\\\":\\\"secretFooBar\\\"}\");\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/authenticate\");\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddParameter(\"application/json\", \"{\\\"email\\\":\\\"foo@bar.foo\\\",\\\"password\\\":\\\"secretFooBar\\\"}\", ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Post,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/authenticate\"),\n    Content = new StringContent(\"{\\\"email\\\":\\\"foo@bar.foo\\\",\\\"password\\\":\\\"secretFooBar\\\"}\")\n    {\n        Headers =\n        {\n            ContentType = new MediaTypeHeaderValue(\"application/json\")\n        }\n    }\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/h5live/bufferingratio/timeseries":{"get":{"summary":"Buffering play ratio","description":"```\nhttps://metrics-api.nanostream.cloud/v2/h5live/bufferingratio/timeseries\n```\n\nGet a time series of the ratio of buffering time and play time in percent (calculation&#58; Buffering time * 100 / Play time) of all playbacks.  \n  \n**Note**: To obtain data on this route the H5Live player must be configured to send metrics.","tags":["H5Live metrics"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/interval"},{"$ref":"#/components/parameters/streamsDefault"},{"$ref":"#/components/parameters/countries"},{"$ref":"#/components/parameters/tags"},{"$ref":"#/components/parameters/events"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","description":"result set","items":{"type":"object","properties":{"timestamp":{"type":"integer","description":"The unix timestamp of the given time interval."},"timestampAsString":{"type":"string"},"percent":{"type":"number","description":"ratio in percent of buffering time and play time of all\nactive playbacks withing the given time."}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"timestamp":1671840000,"timestampAsString":"2026-01-01T00:00:00Z","percent":0.2}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/h5live/bufferingratio/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/h5live/bufferingratio/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/h5live/bufferingratio/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/h5live/bufferingratio/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/h5live/bufferingratio/timeseries\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"interval\": \"SOME_STRING_VALUE\",\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"tags\": \"SOME_ARRAY_VALUE\",\n  \"events\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/h5live/bufferingratio/timeseries');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'interval' => 'SOME_STRING_VALUE',\n  'streams' => 'SOME_ARRAY_VALUE',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'tags' => 'SOME_ARRAY_VALUE',\n  'events' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/h5live/bufferingratio/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/h5live/bufferingratio/timeseries\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"interval\":\"SOME_STRING_VALUE\",\"streams\":\"SOME_ARRAY_VALUE\",\"countries\":\"SOME_ARRAY_VALUE\",\"tags\":\"SOME_ARRAY_VALUE\",\"events\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/h5live/bufferingratio/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/h5live/bufferingratio/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/h5live/bufferingratio/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/h5live/bufferingratio/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/h5live/bufferingratio/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/h5live/bufferingratio/streams/timeseries":{"get":{"summary":"Buffering play ratio per stream","description":"```\nhttps://metrics-api.nanostream.cloud/v2/h5live/bufferingratio/streams/timeseries\n```\n\nGet a time series of the ratio of buffering time and play time in percent (calculation&#58; Buffering time * 100 / Play time) of all playbacks for each given stream.  \n  \n**Note**: To obtain data on this route the H5Live player must be configured to send metrics.","tags":["H5Live metrics"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/interval"},{"$ref":"#/components/parameters/streamOneRestricted"},{"$ref":"#/components/parameters/countries"},{"$ref":"#/components/parameters/events"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"streamsWithoutData":{"type":"array","items":{"type":"string"}},"data":{"type":"array","description":"result set","items":{"type":"object","properties":{"streamname":{"type":"string"},"values":{"type":"array","description":"time series of the stream","items":{"type":"object","properties":{"timestamp":{"type":"integer"},"timestampAsString":{"type":"string"},"percent":{"type":"number","description":"ratio in percent of buffering time and play time of\nall active playbacks withing the given time."}}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"streamname":"FoBar-SzB0r","values":[{"timestamp":1671840000,"timestampAsString":"2026-01-01T00:00:00Z","percent":0.2}]}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/h5live/bufferingratio/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/h5live/bufferingratio/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/h5live/bufferingratio/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/h5live/bufferingratio/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/h5live/bufferingratio/streams/timeseries\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"interval\": \"SOME_STRING_VALUE\",\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"events\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/h5live/bufferingratio/streams/timeseries');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'interval' => 'SOME_STRING_VALUE',\n  'streams' => 'SOME_ARRAY_VALUE',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'events' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/h5live/bufferingratio/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/h5live/bufferingratio/streams/timeseries\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"interval\":\"SOME_STRING_VALUE\",\"streams\":\"SOME_ARRAY_VALUE\",\"countries\":\"SOME_ARRAY_VALUE\",\"events\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/h5live/bufferingratio/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/h5live/bufferingratio/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/h5live/bufferingratio/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/h5live/bufferingratio/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/h5live/bufferingratio/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/h5live/latency/timeseries":{"get":{"summary":"Latency","description":"```\nhttps://metrics-api.nanostream.cloud/v2/h5live/latency/timeseries\n```\n\nGet the average and median latency in seconds.  \n  \n**Note**: To obtain data on this route the H5Live player must be configured to send metrics.","tags":["H5Live metrics"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/interval"},{"$ref":"#/components/parameters/streamsDefault"},{"$ref":"#/components/parameters/countries"},{"$ref":"#/components/parameters/tags"},{"$ref":"#/components/parameters/events"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","description":"result set","items":{"type":"object","properties":{"timestamp":{"type":"integer"},"timestampAsString":{"type":"string"},"average":{"type":"object","properties":{"seconds":{"type":"integer","description":"The average latency of all playback within the given\ntime range."}}},"median":{"type":"object","properties":{"seconds":{"type":"integer","description":"The mean latency of all playback within the given time range."}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"timestamp":1671840000,"timestampAsString":"2026-01-01T00:00:00Z","average":{"seconds":1.33},"median":{"seconds":1.22}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/h5live/latency/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/h5live/latency/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/h5live/latency/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/h5live/latency/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/h5live/latency/timeseries\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"interval\": \"SOME_STRING_VALUE\",\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"tags\": \"SOME_ARRAY_VALUE\",\n  \"events\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/h5live/latency/timeseries');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'interval' => 'SOME_STRING_VALUE',\n  'streams' => 'SOME_ARRAY_VALUE',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'tags' => 'SOME_ARRAY_VALUE',\n  'events' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/h5live/latency/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/h5live/latency/timeseries\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"interval\":\"SOME_STRING_VALUE\",\"streams\":\"SOME_ARRAY_VALUE\",\"countries\":\"SOME_ARRAY_VALUE\",\"tags\":\"SOME_ARRAY_VALUE\",\"events\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/h5live/latency/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/h5live/latency/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/h5live/latency/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/h5live/latency/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/h5live/latency/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/h5live/latency/streams/timeseries":{"get":{"summary":"Latency per stream","description":"```\nhttps://metrics-api.nanostream.cloud/v2/h5live/latency/streams/timeseries\n```\n\nGet the average and median latency in seconds for each given stream.  \n  \n**Note**: To obtain data on this route the H5Live player must be configured to send metrics.","tags":["H5Live metrics"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/interval"},{"$ref":"#/components/parameters/streamOneRestricted"},{"$ref":"#/components/parameters/countries"},{"$ref":"#/components/parameters/events"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"streamsWithoutData":{"type":"array","items":{"type":"string"}},"data":{"type":"array","description":"result set","items":{"type":"object","properties":{"streamname":{"type":"string"},"values":{"type":"array","description":"time series of the stream","items":{"type":"object","properties":{"timestamp":{"type":"integer"},"timestampAsString":{"type":"string"},"average":{"type":"object","properties":{"seconds":{"type":"number","description":"The average latency within the given time range."}}},"median":{"type":"object","properties":{"seconds":{"type":"number","description":"The median latency within the given time range."}}}}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"streamname":"FoBar-SzB0r","values":[{"timestamp":1671840000,"timestampAsString":"2026-01-01T00:00:00Z","average":{"seconds":1.33},"median":{"seconds":1.22}}]}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/h5live/latency/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/h5live/latency/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/h5live/latency/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/h5live/latency/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/h5live/latency/streams/timeseries\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"interval\": \"SOME_STRING_VALUE\",\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"events\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/h5live/latency/streams/timeseries');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'interval' => 'SOME_STRING_VALUE',\n  'streams' => 'SOME_ARRAY_VALUE',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'events' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/h5live/latency/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/h5live/latency/streams/timeseries\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"interval\":\"SOME_STRING_VALUE\",\"streams\":\"SOME_ARRAY_VALUE\",\"countries\":\"SOME_ARRAY_VALUE\",\"events\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/h5live/latency/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/h5live/latency/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/h5live/latency/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/h5live/latency/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/h5live/latency/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/h5live/playtime/timeseries":{"get":{"summary":"Playtime","description":"```\nhttps://metrics-api.nanostream.cloud/v2/h5live/playtime/timeseries\n```\n\nGet the average and median playtime in seconds.          \n  \n**Note**: To obtain data on this route the H5Live player must be configured to send metrics.","tags":["H5Live metrics"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/interval"},{"$ref":"#/components/parameters/streamsDefault"},{"$ref":"#/components/parameters/countries"},{"$ref":"#/components/parameters/tags"},{"$ref":"#/components/parameters/events"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","description":"result set","items":{"type":"object","properties":{"timestamp":{"type":"integer"},"timestampAsString":{"type":"string"},"average":{"type":"object","properties":{"seconds":{"type":"number","description":"The average playtime of all playbacks within the given\ntime range."}}},"median":{"type":"object","properties":{"seconds":{"type":"number","description":"The median playtime of all playbacks within the given\ntime range."}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"timestamp":1671840000,"timestampAsString":"2026-09-01T00:00:00Z","average":{"seconds":122.3},"median":{"seconds":231.2}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/h5live/playtime/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/h5live/playtime/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/h5live/playtime/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/h5live/playtime/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/h5live/playtime/timeseries\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"interval\": \"SOME_STRING_VALUE\",\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"tags\": \"SOME_ARRAY_VALUE\",\n  \"events\": \"SOME_ARRAY_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/h5live/playtime/timeseries');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'interval' => 'SOME_STRING_VALUE',\n  'streams' => 'SOME_ARRAY_VALUE',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'tags' => 'SOME_ARRAY_VALUE',\n  'events' => 'SOME_ARRAY_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/h5live/playtime/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/h5live/playtime/timeseries\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"interval\":\"SOME_STRING_VALUE\",\"streams\":\"SOME_ARRAY_VALUE\",\"countries\":\"SOME_ARRAY_VALUE\",\"tags\":\"SOME_ARRAY_VALUE\",\"events\":\"SOME_ARRAY_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/h5live/playtime/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/h5live/playtime/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/h5live/playtime/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/h5live/playtime/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/h5live/playtime/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/h5live/playtime/streams/timeseries":{"get":{"summary":"Playtime per stream","description":"```\nhttps://metrics-api.nanostream.cloud/v2/h5live/playtime/streams/timeseries\n```\n\nGet a time series of the average and median playtime in seconds for each given stream.  \n  \n**Note**: To obtain data on this route the H5Live player must be configured to send metrics.","tags":["H5Live metrics"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/interval"},{"$ref":"#/components/parameters/streamOneRestricted"},{"$ref":"#/components/parameters/countries"},{"$ref":"#/components/parameters/events"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"streamsWithoutData":{"type":"array","items":{"type":"string"}},"data":{"type":"array","description":"result set","items":{"type":"object","properties":{"streamname":{"type":"string"},"values":{"type":"array","description":"time series of the stream","items":{"type":"object","properties":{"timestamp":{"type":"integer"},"timestampAsString":{"type":"string"},"average":{"type":"object","properties":{"seconds":{"type":"number","description":"The average playtime within the given time range."}}},"median":{"type":"object","properties":{"seconds":{"type":"number","description":"The median playtime within the given time range."}}}}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"streamname":"FoBar-SzB0r","values":[{"timestamp":1671840000,"timestampAsString":"2026-01-01T00:00:00Z","average":{"seconds":122.3},"median":{"seconds":231.2}}]}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/h5live/playtime/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/h5live/playtime/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/h5live/playtime/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/h5live/playtime/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/h5live/playtime/streams/timeseries\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"interval\": \"SOME_STRING_VALUE\",\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"events\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/h5live/playtime/streams/timeseries');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'interval' => 'SOME_STRING_VALUE',\n  'streams' => 'SOME_ARRAY_VALUE',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'events' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/h5live/playtime/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/h5live/playtime/streams/timeseries\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"interval\":\"SOME_STRING_VALUE\",\"streams\":\"SOME_ARRAY_VALUE\",\"countries\":\"SOME_ARRAY_VALUE\",\"events\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/h5live/playtime/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/h5live/playtime/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/h5live/playtime/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/h5live/playtime/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/h5live/playtime/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/h5live/startuptime/timeseries":{"get":{"summary":"Startup time","description":"```\nhttps://metrics-api.nanostream.cloud/v2/h5live/startuptime/timeseries\n```\n\nGet a time series of the average and median startup time in seconds.  \n  \n**Note**: To obtain data on this route the H5Live player must be configured to send metrics.","tags":["H5Live metrics"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/interval"},{"$ref":"#/components/parameters/streamsDefault"},{"$ref":"#/components/parameters/countries"},{"$ref":"#/components/parameters/tags"},{"$ref":"#/components/parameters/events"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","description":"result set","items":{"type":"object","properties":{"timestamp":{"type":"integer"},"timestampAsString":{"type":"string"},"average":{"type":"object","properties":{"seconds":{"type":"number","description":"The average startup time within the given time range."}}},"median":{"type":"object","properties":{"seconds":{"type":"number","description":"The median startup time within the given time range."}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"timestamp":1671840000,"timestampAsString":"2026-12-01T00:00:00Z","average":{"seconds":5.33},"median":{"seconds":7.22}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/h5live/startuptime/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/h5live/startuptime/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/h5live/startuptime/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/h5live/startuptime/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/h5live/startuptime/timeseries\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"interval\": \"SOME_STRING_VALUE\",\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"tags\": \"SOME_ARRAY_VALUE\",\n  \"events\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/h5live/startuptime/timeseries');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'interval' => 'SOME_STRING_VALUE',\n  'streams' => 'SOME_ARRAY_VALUE',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'tags' => 'SOME_ARRAY_VALUE',\n  'events' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/h5live/startuptime/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/h5live/startuptime/timeseries\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"interval\":\"SOME_STRING_VALUE\",\"streams\":\"SOME_ARRAY_VALUE\",\"countries\":\"SOME_ARRAY_VALUE\",\"tags\":\"SOME_ARRAY_VALUE\",\"events\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/h5live/startuptime/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/h5live/startuptime/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/h5live/startuptime/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/h5live/startuptime/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/h5live/startuptime/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/h5live/startuptime/streams/timeseries":{"get":{"summary":"Startup time per stream","description":"```\nhttps://metrics-api.nanostream.cloud/v2/h5live/startuptime/streams/timeseries\n```\n\nGet a time series of the average and median startup time in seconds for each given stream.  \n  \n**Note**: To obtain data on this route the H5Live player must be configured to send metrics.","tags":["H5Live metrics"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/interval"},{"$ref":"#/components/parameters/streamOneRestricted"},{"$ref":"#/components/parameters/countries"},{"$ref":"#/components/parameters/events"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"streamsWithoutData":{"type":"array","items":{"type":"string"}},"data":{"type":"array","description":"result set","items":{"type":"object","properties":{"streamname":{"type":"string"},"values":{"type":"array","description":"time series of the stream","items":{"type":"object","properties":{"timestamp":{"type":"integer"},"timestampAsString":{"type":"string"},"average":{"type":"object","properties":{"seconds":{"type":"number","description":"The average startup time within the given time\nrange."}}},"median":{"type":"object","properties":{"seconds":{"type":"number","description":"The median startup time within the given time\nrange."}}}}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"streamname":"FoBar-SzB0r","values":[{"timestamp":1671840000,"timestampAsString":"2026-01-01T00:00:00Z","average":{"seconds":5.33},"median":{"seconds":7.22}}]}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/h5live/startuptime/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/h5live/startuptime/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/h5live/startuptime/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/h5live/startuptime/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/h5live/startuptime/streams/timeseries\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"interval\": \"SOME_STRING_VALUE\",\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"events\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/h5live/startuptime/streams/timeseries');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'interval' => 'SOME_STRING_VALUE',\n  'streams' => 'SOME_ARRAY_VALUE',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'events' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/h5live/startuptime/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/h5live/startuptime/streams/timeseries\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"interval\":\"SOME_STRING_VALUE\",\"streams\":\"SOME_ARRAY_VALUE\",\"countries\":\"SOME_ARRAY_VALUE\",\"events\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/h5live/startuptime/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/h5live/startuptime/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/h5live/startuptime/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/h5live/startuptime/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/h5live/startuptime/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/h5live/views/os":{"get":{"summary":"Views per operating system","description":"```\nhttps://metrics-api.nanostream.cloud/v2/h5live/views/os\n```\n\nGet the count of views broken down to operating system.  \n  \n**Note**: To obtain data on this route the H5Live player must be configured to send metrics.","tags":["H5Live metrics"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/streamsDefault"},{"$ref":"#/components/parameters/countries"},{"$ref":"#/components/parameters/tags"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","description":"result set","items":{"type":"object","properties":{"key":{"type":"string","description":"operating system"},"views":{"type":"integer","description":"count of views"}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"key":"Chrome","views":36363}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/h5live/views/os?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/h5live/views/os?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/h5live/views/os?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/h5live/views/os?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/h5live/views/os\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"tags\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/h5live/views/os');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'streams' => 'SOME_ARRAY_VALUE',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'tags' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/h5live/views/os?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/h5live/views/os\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"streams\":\"SOME_ARRAY_VALUE\",\"countries\":\"SOME_ARRAY_VALUE\",\"tags\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/h5live/views/os?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/h5live/views/os?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/h5live/views/os?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/h5live/views/os?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/h5live/views/os?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/h5live/views/browser":{"get":{"summary":"Views per browser","description":"```\nhttps://metrics-api.nanostream.cloud/v2/h5live/views/browser\n```\n\nGet the count of views broken down to browser.  \n  \n**Note**: To obtain data on this route the H5Live player must be configured to send metrics.","tags":["H5Live metrics"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/streamsDefault"},{"$ref":"#/components/parameters/countries"},{"$ref":"#/components/parameters/tags"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","description":"result set","items":{"type":"object","properties":{"key":{"type":"string","description":"browser"},"views":{"type":"integer","description":"count of views"}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"key":"Chrome","views":36363}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/h5live/views/browser?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/h5live/views/browser?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/h5live/views/browser?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/h5live/views/browser?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/h5live/views/browser\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"tags\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/h5live/views/browser');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'streams' => 'SOME_ARRAY_VALUE',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'tags' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/h5live/views/browser?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/h5live/views/browser\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"streams\":\"SOME_ARRAY_VALUE\",\"countries\":\"SOME_ARRAY_VALUE\",\"tags\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/h5live/views/browser?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/h5live/views/browser?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/h5live/views/browser?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/h5live/views/browser?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/h5live/views/browser?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/h5live/playtime/os":{"get":{"summary":"Playtime per operating system","description":"```\nhttps://metrics-api.nanostream.cloud/v2/h5live/playtime/os\n```\n\nGet the total playtime of all playbacks broken down to the used operating system.  \n  \n**Note**: To obtain data on this route the H5Live player must be configured to send metrics.","tags":["H5Live metrics"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/streamsDefault"},{"$ref":"#/components/parameters/countries"},{"$ref":"#/components/parameters/tags"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","description":"result set","items":{"type":"object","properties":{"key":{"type":"string","description":"operating system"},"medianPlaytime":{"type":"object","properties":{"seconds":{"type":"number","description":"The median playtime."}}},"averagePlaytime":{"type":"object","properties":{"seconds":{"type":"number","description":"The average playtime."}}},"totalPlaytime":{"type":"object","properties":{"seconds":{"type":"number","description":"The total playtime."}}},"playtimeProportion":{"type":"object","properties":{"percent":{"type":"number","description":"The proportion of the playtime from this bucket in relation to the sum of the playtime from all buckets in the array, expressed as a percentage."}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"key":"Chrome","medianPlaytime":{"seconds":67.1},"averagePlaytime":{"seconds":223.6},"totalPlaytime":{"seconds":473736574},"playtimeProportion":{"percent":81.9}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/h5live/playtime/os?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/h5live/playtime/os?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/h5live/playtime/os?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/h5live/playtime/os?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/h5live/playtime/os\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"tags\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/h5live/playtime/os');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'streams' => 'SOME_ARRAY_VALUE',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'tags' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/h5live/playtime/os?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/h5live/playtime/os\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"streams\":\"SOME_ARRAY_VALUE\",\"countries\":\"SOME_ARRAY_VALUE\",\"tags\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/h5live/playtime/os?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/h5live/playtime/os?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/h5live/playtime/os?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/h5live/playtime/os?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/h5live/playtime/os?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/h5live/playtime/browser":{"get":{"summary":"Playtime per browser","description":"```\nhttps://metrics-api.nanostream.cloud/v2/h5live/playtime/browser\n```\n\nGet the total playtime of all playbacks broken down to the used browser.  \n  \n**Note**: To obtain data on this route the H5Live player must be configured to send metrics.","tags":["H5Live metrics"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/streamsDefault"},{"$ref":"#/components/parameters/countries"},{"$ref":"#/components/parameters/tags"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","description":"result set","items":{"type":"object","properties":{"key":{"type":"string","description":"browser"},"medianPlaytime":{"type":"object","properties":{"seconds":{"type":"number","description":"The median playtime."}}},"averagePlaytime":{"type":"object","properties":{"seconds":{"type":"number","description":"The average playtime."}}},"totalPlaytime":{"type":"object","properties":{"seconds":{"type":"number","description":"The total playtime."}}},"playtimeProportion":{"type":"object","properties":{"percent":{"type":"number","description":"The proportion of the playtime from this bucket in relation to the sum of the playtime from all buckets in the array, expressed as a percentage."}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"key":"Android","medianPlaytime":{"seconds":66.5},"averagePlaytime":{"seconds":202.9},"totalPlaytime":{"seconds":673662387},"playtimeProportion":{"percent":70.8}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/h5live/playtime/browser?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/h5live/playtime/browser?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/h5live/playtime/browser?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/h5live/playtime/browser?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/h5live/playtime/browser\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"tags\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/h5live/playtime/browser');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'streams' => 'SOME_ARRAY_VALUE',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'tags' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/h5live/playtime/browser?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/h5live/playtime/browser\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"streams\":\"SOME_ARRAY_VALUE\",\"countries\":\"SOME_ARRAY_VALUE\",\"tags\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/h5live/playtime/browser?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/h5live/playtime/browser?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/h5live/playtime/browser?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/h5live/playtime/browser?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/h5live/playtime/browser?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/h5live/stopReasons/timeseries":{"get":{"summary":"Stop Reasons","description":"```\nhttps://metrics-api.nanostream.cloud/v2/h5live/stopReasons/timeseries\n```\n\nReturns a time series of stop reasons observed by the H5Live player. Each\ntime interval contains a list of stop reason entries with counts and a\ncategory (critical, warning, expected, unknown).\n\n**Note**: To obtain data on this route the H5Live player must be configured to send metrics.","tags":["H5Live metrics"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/interval"},{"$ref":"#/components/parameters/streamsDefault"},{"$ref":"#/components/parameters/countries"},{"$ref":"#/components/parameters/tags"},{"$ref":"#/components/parameters/events"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","description":"result set","items":{"type":"object","properties":{"timestamp":{"type":"integer","description":"The unix timestamp of the given time interval."},"timestampAsString":{"type":"string"},"values":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","description":"Stop reason identifier"},"count":{"type":"integer"},"category":{"type":"object","properties":{"key":{"type":"string","description":"one of [critical, warning, expected, unknown]"},"code":{"type":"integer"}}}}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"timestamp":1671840000,"timestampAsString":"2026-01-01T00:00:00Z","values":[{"key":"connectionclose","count":5,"category":{"key":"critical","code":0}},{"key":"buffer","count":2,"category":{"key":"warning","code":1}}]}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/h5live/stopReasons/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/h5live/stopReasons/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/h5live/stopReasons/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/h5live/stopReasons/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/h5live/stopReasons/timeseries\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"interval\": \"SOME_STRING_VALUE\",\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"tags\": \"SOME_ARRAY_VALUE\",\n  \"events\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/h5live/stopReasons/timeseries');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'interval' => 'SOME_STRING_VALUE',\n  'streams' => 'SOME_ARRAY_VALUE',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'tags' => 'SOME_ARRAY_VALUE',\n  'events' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/h5live/stopReasons/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/h5live/stopReasons/timeseries\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"interval\":\"SOME_STRING_VALUE\",\"streams\":\"SOME_ARRAY_VALUE\",\"countries\":\"SOME_ARRAY_VALUE\",\"tags\":\"SOME_ARRAY_VALUE\",\"events\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/h5live/stopReasons/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/h5live/stopReasons/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/h5live/stopReasons/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/h5live/stopReasons/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/h5live/stopReasons/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/h5live/errorcodes/timeseries":{"get":{"summary":"Error Codes","description":"```\nhttps://metrics-api.nanostream.cloud/v2/h5live/errorcodes/timeseries\n```\n\nReturns a time series of player error codes observed by the H5Live player.\nEach time interval contains a list of error code entries with counts and a\ncategory (critical, warning, expected, unknown).\n\nThe API filters for player event `ERROR` and excludes the error codes `0`, `11`, `18`, `22` and `1007`.\n**Note**: To obtain data on this route the H5Live player must be configured to send metrics.","tags":["H5Live metrics"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/interval"},{"$ref":"#/components/parameters/streamsDefault"},{"$ref":"#/components/parameters/countries"},{"$ref":"#/components/parameters/tags"},{"$ref":"#/components/parameters/events"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","description":"result set","items":{"type":"object","properties":{"timestamp":{"type":"integer","description":"The unix timestamp of the given time interval."},"timestampAsString":{"type":"string"},"values":{"type":"array","items":{"type":"object","properties":{"errorCode":{"type":"integer","description":"Numeric error code"},"count":{"type":"integer"},"category":{"type":"object","properties":{"key":{"type":"string"},"code":{"type":"integer"}}}}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"timestamp":1671840000,"timestampAsString":"2026-01-01T00:00:00Z","values":[{"errorCode":1008,"count":3,"category":{"key":"critical","code":0}},{"errorCode":1001,"count":1,"category":{"key":"expected","code":2}}]}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/h5live/errorcodes/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/h5live/errorcodes/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/h5live/errorcodes/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/h5live/errorcodes/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/h5live/errorcodes/timeseries\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"interval\": \"SOME_STRING_VALUE\",\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"tags\": \"SOME_ARRAY_VALUE\",\n  \"events\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/h5live/errorcodes/timeseries');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'interval' => 'SOME_STRING_VALUE',\n  'streams' => 'SOME_ARRAY_VALUE',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'tags' => 'SOME_ARRAY_VALUE',\n  'events' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/h5live/errorcodes/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/h5live/errorcodes/timeseries\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"interval\":\"SOME_STRING_VALUE\",\"streams\":\"SOME_ARRAY_VALUE\",\"countries\":\"SOME_ARRAY_VALUE\",\"tags\":\"SOME_ARRAY_VALUE\",\"events\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/h5live/errorcodes/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/h5live/errorcodes/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/h5live/errorcodes/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/h5live/errorcodes/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/h5live/errorcodes/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/moq/bufferingratio/timeseries":{"get":{"summary":"Buffering play ratio","description":"```\nhttps://metrics-api.nanostream.cloud/v2/moq/bufferingratio/timeseries\n```\n\nGet a time series of the ratio of buffering time and play time in percent (calculation&#58; Buffering time * 100 / Play time) of all MoQ playbacks.\n\n**Note**: To obtain data on this route the H5Live player must be configured to send metrics and play back over MoQ.","tags":["MoQ metrics"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/interval"},{"$ref":"#/components/parameters/streamsDefault"},{"$ref":"#/components/parameters/countries"},{"$ref":"#/components/parameters/tags"},{"$ref":"#/components/parameters/events"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","description":"result set","items":{"type":"object","properties":{"timestamp":{"type":"integer","description":"The unix timestamp of the given time interval."},"timestampAsString":{"type":"string"},"percent":{"type":"number","description":"ratio in percent of buffering time and play time of all\nactive playbacks withing the given time."}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"timestamp":1671840000,"timestampAsString":"2026-01-01T00:00:00Z","percent":0.2}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/moq/bufferingratio/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/moq/bufferingratio/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/moq/bufferingratio/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/moq/bufferingratio/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/moq/bufferingratio/timeseries\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"interval\": \"SOME_STRING_VALUE\",\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"tags\": \"SOME_ARRAY_VALUE\",\n  \"events\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/moq/bufferingratio/timeseries');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'interval' => 'SOME_STRING_VALUE',\n  'streams' => 'SOME_ARRAY_VALUE',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'tags' => 'SOME_ARRAY_VALUE',\n  'events' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/moq/bufferingratio/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/moq/bufferingratio/timeseries\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"interval\":\"SOME_STRING_VALUE\",\"streams\":\"SOME_ARRAY_VALUE\",\"countries\":\"SOME_ARRAY_VALUE\",\"tags\":\"SOME_ARRAY_VALUE\",\"events\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/moq/bufferingratio/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/moq/bufferingratio/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/moq/bufferingratio/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/moq/bufferingratio/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/moq/bufferingratio/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/moq/bufferingratio/streams/timeseries":{"get":{"summary":"Buffering play ratio per stream","description":"```\nhttps://metrics-api.nanostream.cloud/v2/moq/bufferingratio/streams/timeseries\n```\n\nGet a time series of the ratio of buffering time and play time in percent (calculation&#58; Buffering time * 100 / Play time) of all MoQ playbacks for each given stream.\n\n**Note**: To obtain data on this route the H5Live player must be configured to send metrics and play back over MoQ.","tags":["MoQ metrics"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/interval"},{"$ref":"#/components/parameters/streamOneRestricted"},{"$ref":"#/components/parameters/countries"},{"$ref":"#/components/parameters/events"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"streamsWithoutData":{"type":"array","items":{"type":"string"}},"data":{"type":"array","description":"result set","items":{"type":"object","properties":{"streamname":{"type":"string"},"values":{"type":"array","description":"time series of the stream","items":{"type":"object","properties":{"timestamp":{"type":"integer"},"timestampAsString":{"type":"string"},"percent":{"type":"number","description":"ratio in percent of buffering time and play time of\nall active playbacks withing the given time."}}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"streamname":"FoBar-SzB0r","values":[{"timestamp":1671840000,"timestampAsString":"2026-01-01T00:00:00Z","percent":0.2}]}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/moq/bufferingratio/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/moq/bufferingratio/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/moq/bufferingratio/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/moq/bufferingratio/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/moq/bufferingratio/streams/timeseries\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"interval\": \"SOME_STRING_VALUE\",\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"events\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/moq/bufferingratio/streams/timeseries');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'interval' => 'SOME_STRING_VALUE',\n  'streams' => 'SOME_ARRAY_VALUE',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'events' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/moq/bufferingratio/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/moq/bufferingratio/streams/timeseries\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"interval\":\"SOME_STRING_VALUE\",\"streams\":\"SOME_ARRAY_VALUE\",\"countries\":\"SOME_ARRAY_VALUE\",\"events\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/moq/bufferingratio/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/moq/bufferingratio/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/moq/bufferingratio/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/moq/bufferingratio/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/moq/bufferingratio/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/moq/latency/timeseries":{"get":{"summary":"Latency","description":"```\nhttps://metrics-api.nanostream.cloud/v2/moq/latency/timeseries\n```\n\nGet the average and median latency of MoQ playbacks in seconds.\n\n**Note**: To obtain data on this route the H5Live player must be configured to send metrics and play back over MoQ.","tags":["MoQ metrics"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/interval"},{"$ref":"#/components/parameters/streamsDefault"},{"$ref":"#/components/parameters/countries"},{"$ref":"#/components/parameters/tags"},{"$ref":"#/components/parameters/events"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","description":"result set","items":{"type":"object","properties":{"timestamp":{"type":"integer"},"timestampAsString":{"type":"string"},"average":{"type":"object","properties":{"seconds":{"type":"number","description":"The average latency of all playbacks within the given\ntime range."}}},"median":{"type":"object","properties":{"seconds":{"type":"number","description":"The median latency of all playbacks within the given time range."}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"timestamp":1671840000,"timestampAsString":"2026-01-01T00:00:00Z","average":{"seconds":1.33},"median":{"seconds":1.22}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/moq/latency/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/moq/latency/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/moq/latency/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/moq/latency/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/moq/latency/timeseries\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"interval\": \"SOME_STRING_VALUE\",\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"tags\": \"SOME_ARRAY_VALUE\",\n  \"events\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/moq/latency/timeseries');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'interval' => 'SOME_STRING_VALUE',\n  'streams' => 'SOME_ARRAY_VALUE',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'tags' => 'SOME_ARRAY_VALUE',\n  'events' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/moq/latency/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/moq/latency/timeseries\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"interval\":\"SOME_STRING_VALUE\",\"streams\":\"SOME_ARRAY_VALUE\",\"countries\":\"SOME_ARRAY_VALUE\",\"tags\":\"SOME_ARRAY_VALUE\",\"events\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/moq/latency/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/moq/latency/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/moq/latency/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/moq/latency/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/moq/latency/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/moq/latency/streams/timeseries":{"get":{"summary":"Latency per stream","description":"```\nhttps://metrics-api.nanostream.cloud/v2/moq/latency/streams/timeseries\n```\n\nGet the average and median latency of MoQ playbacks in seconds for each given stream.\n\n**Note**: To obtain data on this route the H5Live player must be configured to send metrics and play back over MoQ.","tags":["MoQ metrics"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/interval"},{"$ref":"#/components/parameters/streamOneRestricted"},{"$ref":"#/components/parameters/countries"},{"$ref":"#/components/parameters/events"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"streamsWithoutData":{"type":"array","items":{"type":"string"}},"data":{"type":"array","description":"result set","items":{"type":"object","properties":{"streamname":{"type":"string"},"values":{"type":"array","description":"time series of the stream","items":{"type":"object","properties":{"timestamp":{"type":"integer"},"timestampAsString":{"type":"string"},"average":{"type":"object","properties":{"seconds":{"type":"number","description":"The average latency within the given time range."}}},"median":{"type":"object","properties":{"seconds":{"type":"number","description":"The median latency within the given time range."}}}}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"streamname":"FoBar-SzB0r","values":[{"timestamp":1671840000,"timestampAsString":"2026-01-01T00:00:00Z","average":{"seconds":1.33},"median":{"seconds":1.22}}]}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/moq/latency/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/moq/latency/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/moq/latency/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/moq/latency/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/moq/latency/streams/timeseries\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"interval\": \"SOME_STRING_VALUE\",\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"events\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/moq/latency/streams/timeseries');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'interval' => 'SOME_STRING_VALUE',\n  'streams' => 'SOME_ARRAY_VALUE',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'events' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/moq/latency/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/moq/latency/streams/timeseries\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"interval\":\"SOME_STRING_VALUE\",\"streams\":\"SOME_ARRAY_VALUE\",\"countries\":\"SOME_ARRAY_VALUE\",\"events\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/moq/latency/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/moq/latency/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/moq/latency/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/moq/latency/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/moq/latency/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/moq/playtime/timeseries":{"get":{"summary":"Playtime","description":"```\nhttps://metrics-api.nanostream.cloud/v2/moq/playtime/timeseries\n```\n\nGet the average and median playtime of MoQ playbacks in seconds.\n\n**Note**: To obtain data on this route the H5Live player must be configured to send metrics and play back over MoQ.","tags":["MoQ metrics"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/interval"},{"$ref":"#/components/parameters/streamsDefault"},{"$ref":"#/components/parameters/countries"},{"$ref":"#/components/parameters/tags"},{"$ref":"#/components/parameters/events"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","description":"result set","items":{"type":"object","properties":{"timestamp":{"type":"integer"},"timestampAsString":{"type":"string"},"average":{"type":"object","properties":{"seconds":{"type":"number","description":"The average playtime of all playbacks within the given\ntime range."}}},"median":{"type":"object","properties":{"seconds":{"type":"number","description":"The median playtime of all playbacks within the given\ntime range."}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"timestamp":1671840000,"timestampAsString":"2026-09-01T00:00:00Z","average":{"seconds":122.3},"median":{"seconds":231.2}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/moq/playtime/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/moq/playtime/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/moq/playtime/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/moq/playtime/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/moq/playtime/timeseries\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"interval\": \"SOME_STRING_VALUE\",\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"tags\": \"SOME_ARRAY_VALUE\",\n  \"events\": \"SOME_ARRAY_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/moq/playtime/timeseries');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'interval' => 'SOME_STRING_VALUE',\n  'streams' => 'SOME_ARRAY_VALUE',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'tags' => 'SOME_ARRAY_VALUE',\n  'events' => 'SOME_ARRAY_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/moq/playtime/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/moq/playtime/timeseries\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"interval\":\"SOME_STRING_VALUE\",\"streams\":\"SOME_ARRAY_VALUE\",\"countries\":\"SOME_ARRAY_VALUE\",\"tags\":\"SOME_ARRAY_VALUE\",\"events\":\"SOME_ARRAY_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/moq/playtime/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/moq/playtime/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/moq/playtime/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/moq/playtime/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/moq/playtime/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/moq/playtime/streams/timeseries":{"get":{"summary":"Playtime per stream","description":"```\nhttps://metrics-api.nanostream.cloud/v2/moq/playtime/streams/timeseries\n```\n\nGet a time series of the average and median playtime of MoQ playbacks in seconds for each given stream.\n\n**Note**: To obtain data on this route the H5Live player must be configured to send metrics and play back over MoQ.","tags":["MoQ metrics"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/interval"},{"$ref":"#/components/parameters/streamOneRestricted"},{"$ref":"#/components/parameters/countries"},{"$ref":"#/components/parameters/events"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"streamsWithoutData":{"type":"array","items":{"type":"string"}},"data":{"type":"array","description":"result set","items":{"type":"object","properties":{"streamname":{"type":"string"},"values":{"type":"array","description":"time series of the stream","items":{"type":"object","properties":{"timestamp":{"type":"integer"},"timestampAsString":{"type":"string"},"average":{"type":"object","properties":{"seconds":{"type":"number","description":"The average playtime within the given time range."}}},"median":{"type":"object","properties":{"seconds":{"type":"number","description":"The median playtime within the given time range."}}}}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"streamname":"FoBar-SzB0r","values":[{"timestamp":1671840000,"timestampAsString":"2026-01-01T00:00:00Z","average":{"seconds":122.3},"median":{"seconds":231.2}}]}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/moq/playtime/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/moq/playtime/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/moq/playtime/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/moq/playtime/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/moq/playtime/streams/timeseries\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"interval\": \"SOME_STRING_VALUE\",\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"events\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/moq/playtime/streams/timeseries');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'interval' => 'SOME_STRING_VALUE',\n  'streams' => 'SOME_ARRAY_VALUE',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'events' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/moq/playtime/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/moq/playtime/streams/timeseries\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"interval\":\"SOME_STRING_VALUE\",\"streams\":\"SOME_ARRAY_VALUE\",\"countries\":\"SOME_ARRAY_VALUE\",\"events\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/moq/playtime/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/moq/playtime/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/moq/playtime/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/moq/playtime/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/moq/playtime/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/moq/startuptime/timeseries":{"get":{"summary":"Startup time","description":"```\nhttps://metrics-api.nanostream.cloud/v2/moq/startuptime/timeseries\n```\n\nGet a time series of the average and median startup time of MoQ playbacks in seconds.\n\n**Note**: To obtain data on this route the H5Live player must be configured to send metrics and play back over MoQ.","tags":["MoQ metrics"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/interval"},{"$ref":"#/components/parameters/streamsDefault"},{"$ref":"#/components/parameters/countries"},{"$ref":"#/components/parameters/tags"},{"$ref":"#/components/parameters/events"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","description":"result set","items":{"type":"object","properties":{"timestamp":{"type":"integer"},"timestampAsString":{"type":"string"},"average":{"type":"object","properties":{"seconds":{"type":"number","description":"The average startup time within the given time range."}}},"median":{"type":"object","properties":{"seconds":{"type":"number","description":"The median startup time within the given time range."}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"timestamp":1671840000,"timestampAsString":"2026-12-01T00:00:00Z","average":{"seconds":5.33},"median":{"seconds":7.22}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/moq/startuptime/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/moq/startuptime/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/moq/startuptime/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/moq/startuptime/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/moq/startuptime/timeseries\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"interval\": \"SOME_STRING_VALUE\",\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"tags\": \"SOME_ARRAY_VALUE\",\n  \"events\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/moq/startuptime/timeseries');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'interval' => 'SOME_STRING_VALUE',\n  'streams' => 'SOME_ARRAY_VALUE',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'tags' => 'SOME_ARRAY_VALUE',\n  'events' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/moq/startuptime/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/moq/startuptime/timeseries\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"interval\":\"SOME_STRING_VALUE\",\"streams\":\"SOME_ARRAY_VALUE\",\"countries\":\"SOME_ARRAY_VALUE\",\"tags\":\"SOME_ARRAY_VALUE\",\"events\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/moq/startuptime/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/moq/startuptime/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/moq/startuptime/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/moq/startuptime/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/moq/startuptime/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/moq/startuptime/streams/timeseries":{"get":{"summary":"Startup time per stream","description":"```\nhttps://metrics-api.nanostream.cloud/v2/moq/startuptime/streams/timeseries\n```\n\nGet a time series of the average and median startup time of MoQ playbacks in seconds for each given stream.\n\n**Note**: To obtain data on this route the H5Live player must be configured to send metrics and play back over MoQ.","tags":["MoQ metrics"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/interval"},{"$ref":"#/components/parameters/streamOneRestricted"},{"$ref":"#/components/parameters/countries"},{"$ref":"#/components/parameters/events"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"streamsWithoutData":{"type":"array","items":{"type":"string"}},"data":{"type":"array","description":"result set","items":{"type":"object","properties":{"streamname":{"type":"string"},"values":{"type":"array","description":"time series of the stream","items":{"type":"object","properties":{"timestamp":{"type":"integer"},"timestampAsString":{"type":"string"},"average":{"type":"object","properties":{"seconds":{"type":"number","description":"The average startup time within the given time\nrange."}}},"median":{"type":"object","properties":{"seconds":{"type":"number","description":"The median startup time within the given time\nrange."}}}}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"streamname":"FoBar-SzB0r","values":[{"timestamp":1671840000,"timestampAsString":"2026-01-01T00:00:00Z","average":{"seconds":5.33},"median":{"seconds":7.22}}]}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/moq/startuptime/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/moq/startuptime/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/moq/startuptime/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/moq/startuptime/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/moq/startuptime/streams/timeseries\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"interval\": \"SOME_STRING_VALUE\",\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"events\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/moq/startuptime/streams/timeseries');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'interval' => 'SOME_STRING_VALUE',\n  'streams' => 'SOME_ARRAY_VALUE',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'events' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/moq/startuptime/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/moq/startuptime/streams/timeseries\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"interval\":\"SOME_STRING_VALUE\",\"streams\":\"SOME_ARRAY_VALUE\",\"countries\":\"SOME_ARRAY_VALUE\",\"events\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/moq/startuptime/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/moq/startuptime/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/moq/startuptime/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/moq/startuptime/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/moq/startuptime/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/moq/views/os":{"get":{"summary":"Views per operating system","description":"```\nhttps://metrics-api.nanostream.cloud/v2/moq/views/os\n```\n\nGet the count of MoQ views broken down to operating system.\n\n**Note**: To obtain data on this route the H5Live player must be configured to send metrics and play back over MoQ.","tags":["MoQ metrics"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/streamsDefault"},{"$ref":"#/components/parameters/countries"},{"$ref":"#/components/parameters/tags"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","description":"result set","items":{"type":"object","properties":{"key":{"type":"string","description":"operating system"},"views":{"type":"integer","description":"count of views"}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"key":"Chrome","views":36363}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/moq/views/os?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/moq/views/os?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/moq/views/os?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/moq/views/os?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/moq/views/os\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"tags\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/moq/views/os');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'streams' => 'SOME_ARRAY_VALUE',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'tags' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/moq/views/os?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/moq/views/os\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"streams\":\"SOME_ARRAY_VALUE\",\"countries\":\"SOME_ARRAY_VALUE\",\"tags\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/moq/views/os?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/moq/views/os?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/moq/views/os?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/moq/views/os?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/moq/views/os?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/moq/views/browser":{"get":{"summary":"Views per browser","description":"```\nhttps://metrics-api.nanostream.cloud/v2/moq/views/browser\n```\n\nGet the count of MoQ views broken down to browser.\n\n**Note**: To obtain data on this route the H5Live player must be configured to send metrics and play back over MoQ.","tags":["MoQ metrics"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/streamsDefault"},{"$ref":"#/components/parameters/countries"},{"$ref":"#/components/parameters/tags"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","description":"result set","items":{"type":"object","properties":{"key":{"type":"string","description":"browser"},"views":{"type":"integer","description":"count of views"}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"key":"Chrome","views":36363}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/moq/views/browser?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/moq/views/browser?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/moq/views/browser?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/moq/views/browser?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/moq/views/browser\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"tags\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/moq/views/browser');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'streams' => 'SOME_ARRAY_VALUE',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'tags' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/moq/views/browser?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/moq/views/browser\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"streams\":\"SOME_ARRAY_VALUE\",\"countries\":\"SOME_ARRAY_VALUE\",\"tags\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/moq/views/browser?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/moq/views/browser?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/moq/views/browser?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/moq/views/browser?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/moq/views/browser?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/moq/playtime/os":{"get":{"summary":"Playtime per operating system","description":"```\nhttps://metrics-api.nanostream.cloud/v2/moq/playtime/os\n```\n\nGet the total playtime of all MoQ playbacks broken down to the used operating system.\n\n**Note**: To obtain data on this route the H5Live player must be configured to send metrics and play back over MoQ.","tags":["MoQ metrics"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/streamsDefault"},{"$ref":"#/components/parameters/countries"},{"$ref":"#/components/parameters/tags"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","description":"result set","items":{"type":"object","properties":{"key":{"type":"string","description":"operating system"},"medianPlaytime":{"type":"object","properties":{"seconds":{"type":"number","description":"The median playtime."}}},"averagePlaytime":{"type":"object","properties":{"seconds":{"type":"number","description":"The average playtime."}}},"totalPlaytime":{"type":"object","properties":{"seconds":{"type":"number","description":"The total playtime."}}},"playtimeProportion":{"type":"object","properties":{"percent":{"type":"number","description":"The proportion of the playtime from this bucket in relation to the sum of the playtime from all buckets in the array, expressed as a percentage."}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"key":"Chrome","medianPlaytime":{"seconds":67.1},"averagePlaytime":{"seconds":223.6},"totalPlaytime":{"seconds":473736574},"playtimeProportion":{"percent":81.9}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/moq/playtime/os?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/moq/playtime/os?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/moq/playtime/os?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/moq/playtime/os?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/moq/playtime/os\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"tags\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/moq/playtime/os');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'streams' => 'SOME_ARRAY_VALUE',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'tags' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/moq/playtime/os?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/moq/playtime/os\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"streams\":\"SOME_ARRAY_VALUE\",\"countries\":\"SOME_ARRAY_VALUE\",\"tags\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/moq/playtime/os?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/moq/playtime/os?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/moq/playtime/os?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/moq/playtime/os?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/moq/playtime/os?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/moq/playtime/browser":{"get":{"summary":"Playtime per browser","description":"```\nhttps://metrics-api.nanostream.cloud/v2/moq/playtime/browser\n```\n\nGet the total playtime of all MoQ playbacks broken down to the used browser.\n\n**Note**: To obtain data on this route the H5Live player must be configured to send metrics and play back over MoQ.","tags":["MoQ metrics"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/streamsDefault"},{"$ref":"#/components/parameters/countries"},{"$ref":"#/components/parameters/tags"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","description":"result set","items":{"type":"object","properties":{"key":{"type":"string","description":"browser"},"medianPlaytime":{"type":"object","properties":{"seconds":{"type":"number","description":"The median playtime."}}},"averagePlaytime":{"type":"object","properties":{"seconds":{"type":"number","description":"The average playtime."}}},"totalPlaytime":{"type":"object","properties":{"seconds":{"type":"number","description":"The total playtime."}}},"playtimeProportion":{"type":"object","properties":{"percent":{"type":"number","description":"The proportion of the playtime from this bucket in relation to the sum of the playtime from all buckets in the array, expressed as a percentage."}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"key":"Android","medianPlaytime":{"seconds":66.5},"averagePlaytime":{"seconds":202.9},"totalPlaytime":{"seconds":673662387},"playtimeProportion":{"percent":70.8}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/moq/playtime/browser?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/moq/playtime/browser?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/moq/playtime/browser?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/moq/playtime/browser?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/moq/playtime/browser\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"tags\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/moq/playtime/browser');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'streams' => 'SOME_ARRAY_VALUE',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'tags' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/moq/playtime/browser?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/moq/playtime/browser\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"streams\":\"SOME_ARRAY_VALUE\",\"countries\":\"SOME_ARRAY_VALUE\",\"tags\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/moq/playtime/browser?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/moq/playtime/browser?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/moq/playtime/browser?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/moq/playtime/browser?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/moq/playtime/browser?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/moq/stopReasons/timeseries":{"get":{"summary":"Stop Reasons","description":"```\nhttps://metrics-api.nanostream.cloud/v2/moq/stopReasons/timeseries\n```\n\nReturns a time series of stop reasons observed on MoQ playbacks. Each\ntime interval contains a list of stop reason entries with counts and a\ncategory (critical, warning, expected, unknown).\n\n**Note**: To obtain data on this route the H5Live player must be configured to send metrics and play back over MoQ.","tags":["MoQ metrics"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/interval"},{"$ref":"#/components/parameters/streamsDefault"},{"$ref":"#/components/parameters/countries"},{"$ref":"#/components/parameters/tags"},{"$ref":"#/components/parameters/events"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","description":"result set","items":{"type":"object","properties":{"timestamp":{"type":"integer","description":"The unix timestamp of the given time interval."},"timestampAsString":{"type":"string"},"values":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","description":"Stop reason identifier"},"count":{"type":"integer"},"category":{"type":"object","properties":{"key":{"type":"string","description":"one of [critical, warning, expected, unknown]"},"code":{"type":"integer"}}}}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"timestamp":1671840000,"timestampAsString":"2026-01-01T00:00:00Z","values":[{"key":"connectionclose","count":5,"category":{"key":"critical","code":0}},{"key":"buffer","count":2,"category":{"key":"warning","code":1}}]}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/moq/stopReasons/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/moq/stopReasons/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/moq/stopReasons/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/moq/stopReasons/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/moq/stopReasons/timeseries\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"interval\": \"SOME_STRING_VALUE\",\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"tags\": \"SOME_ARRAY_VALUE\",\n  \"events\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/moq/stopReasons/timeseries');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'interval' => 'SOME_STRING_VALUE',\n  'streams' => 'SOME_ARRAY_VALUE',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'tags' => 'SOME_ARRAY_VALUE',\n  'events' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/moq/stopReasons/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/moq/stopReasons/timeseries\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"interval\":\"SOME_STRING_VALUE\",\"streams\":\"SOME_ARRAY_VALUE\",\"countries\":\"SOME_ARRAY_VALUE\",\"tags\":\"SOME_ARRAY_VALUE\",\"events\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/moq/stopReasons/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/moq/stopReasons/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/moq/stopReasons/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/moq/stopReasons/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/moq/stopReasons/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/moq/errorcodes/timeseries":{"get":{"summary":"Error Codes","description":"```\nhttps://metrics-api.nanostream.cloud/v2/moq/errorcodes/timeseries\n```\n\nReturns a time series of player error codes observed on MoQ playbacks. Each\ntime interval contains a list of error code entries with counts and a\ncategory (critical, warning, expected, unknown).\n\nThe API filters for player event `ERROR` and excludes the error codes `0`, `11`, `18`, `22` and `1007`.\n**Note**: To obtain data on this route the H5Live player must be configured to send metrics and play back over MoQ.","tags":["MoQ metrics"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/interval"},{"$ref":"#/components/parameters/streamsDefault"},{"$ref":"#/components/parameters/countries"},{"$ref":"#/components/parameters/tags"},{"$ref":"#/components/parameters/events"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","description":"result set","items":{"type":"object","properties":{"timestamp":{"type":"integer","description":"The unix timestamp of the given time interval."},"timestampAsString":{"type":"string"},"values":{"type":"array","items":{"type":"object","properties":{"errorCode":{"type":"integer","description":"Numeric error code"},"count":{"type":"integer"},"category":{"type":"object","properties":{"key":{"type":"string","description":"one of [critical, warning, expected, unknown]"},"code":{"type":"integer"}}}}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"timestamp":1671840000,"timestampAsString":"2026-01-01T00:00:00Z","values":[{"errorCode":1008,"count":3,"category":{"key":"critical","code":0}},{"errorCode":1001,"count":1,"category":{"key":"expected","code":2}}]}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/moq/errorcodes/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/moq/errorcodes/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/moq/errorcodes/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/moq/errorcodes/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/moq/errorcodes/timeseries\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"interval\": \"SOME_STRING_VALUE\",\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"tags\": \"SOME_ARRAY_VALUE\",\n  \"events\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/moq/errorcodes/timeseries');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'interval' => 'SOME_STRING_VALUE',\n  'streams' => 'SOME_ARRAY_VALUE',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'tags' => 'SOME_ARRAY_VALUE',\n  'events' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/moq/errorcodes/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/moq/errorcodes/timeseries\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"interval\":\"SOME_STRING_VALUE\",\"streams\":\"SOME_ARRAY_VALUE\",\"countries\":\"SOME_ARRAY_VALUE\",\"tags\":\"SOME_ARRAY_VALUE\",\"events\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/moq/errorcodes/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/moq/errorcodes/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/moq/errorcodes/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/moq/errorcodes/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/moq/errorcodes/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/webrtc/count/browser":{"get":{"summary":"Ingests per browser","description":"```\nhttps://metrics-api.nanostream.cloud/v2/webrtc/count/browser\n```\n\nGet the count of ingests broken down to browser.  \n  \n**Note**: To obtain data on this route the Webcaster client must be configured to send metrics.","tags":["Webcaster metrics"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/streamsDefault"},{"$ref":"#/components/parameters/countries"},{"$ref":"#/components/parameters/tags"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","description":"result set","items":{"type":"object","properties":{"key":{"type":"string","description":"browser"},"count":{"type":"integer","description":"count of ingests"}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"key":"Chrome","count":36363}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/webrtc/count/browser?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/webrtc/count/browser?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/webrtc/count/browser?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/webrtc/count/browser?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/webrtc/count/browser\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"tags\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/webrtc/count/browser');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'streams' => 'SOME_ARRAY_VALUE',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'tags' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/webrtc/count/browser?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/webrtc/count/browser\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"streams\":\"SOME_ARRAY_VALUE\",\"countries\":\"SOME_ARRAY_VALUE\",\"tags\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/webrtc/count/browser?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/webrtc/count/browser?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/webrtc/count/browser?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/webrtc/count/browser?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/webrtc/count/browser?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/webrtc/count/os":{"get":{"summary":"Ingests per OS","description":"```\nhttps://metrics-api.nanostream.cloud/v2/webrtc/count/os\n```\n\nGet the count of ingests broken down to operating system.   \n  \n**Note**: To obtain data on this route the Webcaster client must be configured to send metrics.","tags":["Webcaster metrics"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/streamsDefault"},{"$ref":"#/components/parameters/countries"},{"$ref":"#/components/parameters/tags"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","description":"result set","items":{"type":"object","properties":{"key":{"type":"string","description":"operating system"},"count":{"type":"integer","description":"count of ingests"}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"key":"Windows","count":36363}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/webrtc/count/os?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/webrtc/count/os?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/webrtc/count/os?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/webrtc/count/os?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/webrtc/count/os\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"tags\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/webrtc/count/os');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'streams' => 'SOME_ARRAY_VALUE',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'tags' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/webrtc/count/os?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/webrtc/count/os\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"streams\":\"SOME_ARRAY_VALUE\",\"countries\":\"SOME_ARRAY_VALUE\",\"tags\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/webrtc/count/os?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/webrtc/count/os?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/webrtc/count/os?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/webrtc/count/os?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/webrtc/count/os?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/webrtc/bitrate/video":{"get":{"summary":"Video bitrate","description":"```\nhttps://metrics-api.nanostream.cloud/v2/webrtc/bitrate/video\n```\n\nGet the average, median and 95th percentile video bitrate for the specified time range.  \n  \n**Note**: To obtain data on this route the Webcaster client must be configured to send metrics.","tags":["Webcaster metrics"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/streamsDefault"},{"$ref":"#/components/parameters/countries"},{"$ref":"#/components/parameters/tags"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","description":"result set","items":{"type":"object","properties":{"average":{"type":"object","properties":{"seconds":{"type":"number","description":"The average video bitrate within the given time range."}}},"median":{"type":"object","properties":{"seconds":{"type":"number","description":"The median video bitrate within the given time range."}}},"percentile95":{"type":"object","properties":{"seconds":{"type":"number","description":"The 95th percentile for video bitrate within the given time range."}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"average":{"kbits":2337.37},"median":{"kbits":1748.33},"percentile95":{"kbits":4337.58}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/webrtc/bitrate/video?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/webrtc/bitrate/video?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/webrtc/bitrate/video?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/webrtc/bitrate/video?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/webrtc/bitrate/video\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"tags\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/webrtc/bitrate/video');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'streams' => 'SOME_ARRAY_VALUE',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'tags' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/webrtc/bitrate/video?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/webrtc/bitrate/video\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"streams\":\"SOME_ARRAY_VALUE\",\"countries\":\"SOME_ARRAY_VALUE\",\"tags\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/webrtc/bitrate/video?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/webrtc/bitrate/video?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/webrtc/bitrate/video?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/webrtc/bitrate/video?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/webrtc/bitrate/video?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/usage/bytes/timeseries":{"get":{"summary":"Byte usage","description":"```\nhttps://metrics-api.nanostream.cloud/v2/usage/bytes/timeseries\n```\n\nGet a time series of byte usage for playout and ingest traffic","tags":["Usage metrics"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/interval"},{"$ref":"#/components/parameters/streamsDefault"},{"$ref":"#/components/parameters/countries"},{"$ref":"#/components/parameters/tags"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"timestamp":{"type":"integer","description":"The unix timestamp of the given time interval."},"timestampAsString":{"type":"string"},"playout":{"type":"object","properties":{"bytes":{"type":"integer","description":"Total playout bytes last month."}}},"ingest":{"type":"object","properties":{"bytes":{"type":"integer","description":"Total ingest bytes last month."}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"timestamp":1671840000,"timestampAsString":"2026-12-01 00:00:00","playout":{"bytes":80113969},"ingest":{"bytes":8582815766}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/usage/bytes/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/usage/bytes/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/usage/bytes/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/usage/bytes/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/usage/bytes/timeseries\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"interval\": \"SOME_STRING_VALUE\",\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"tags\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/usage/bytes/timeseries');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'interval' => 'SOME_STRING_VALUE',\n  'streams' => 'SOME_ARRAY_VALUE',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'tags' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/usage/bytes/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/usage/bytes/timeseries\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"interval\":\"SOME_STRING_VALUE\",\"streams\":\"SOME_ARRAY_VALUE\",\"countries\":\"SOME_ARRAY_VALUE\",\"tags\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/usage/bytes/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/usage/bytes/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/usage/bytes/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/usage/bytes/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/usage/bytes/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/usage/hourly/bytes/timeseries":{"get":{"summary":"Hourly byte usage","description":"```\nhttps://metrics-api.nanostream.cloud/v2/usage/hourly/bytes/timeseries\n```\n\nGet a time series of byte usage for playout and ingest traffic with a maximum temporal resolution of an hour. If the asked hour is not yet completed, because the user given end date is in the future, you will receive the usage until the current elapsed time.\n\nConstraint:\n- start and end date have to point to a full hour e.g. 2026-01-14T15:00\n\nSince this API route accesses low resolution data it offers some benefits compared to the high resolution usage API route:\n- historical data (> last 3 months)\n- longer time ranges are requestable\n- response time is low","tags":["Usage metrics"],"parameters":[{"$ref":"#/components/parameters/hourlyFrom"},{"$ref":"#/components/parameters/hourlyTo"},{"name":"interval","in":"query","explode":true,"required":true,"description":"Temporal resolution","schema":{"type":"string","enum":["hour","day","week","month","year"]}},{"$ref":"#/components/parameters/streamsDefault"},{"$ref":"#/components/parameters/countries"},{"$ref":"#/components/parameters/tags"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"timestamp":{"type":"integer","description":"The unix timestamp of the given time interval."},"timestampAsString":{"type":"string"},"playout":{"type":"object","properties":{"bytes":{"type":"integer","description":"Total playout bytes last month."}}},"ingest":{"type":"object","properties":{"bytes":{"type":"integer","description":"Total ingest bytes last month."}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"timestamp":1671840000,"timestampAsString":"2026-12-01 00:00:00","playout":{"bytes":80113969},"ingest":{"bytes":8582815766}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/usage/hourly/bytes/timeseries?from=2026-01-14T15%3A00&to=2026-01-14T16%3A00&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/usage/hourly/bytes/timeseries?from=2026-01-14T15%3A00&to=2026-01-14T16%3A00&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/usage/hourly/bytes/timeseries?from=2026-01-14T15%3A00&to=2026-01-14T16%3A00&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/usage/hourly/bytes/timeseries?from=2026-01-14T15%3A00&to=2026-01-14T16%3A00&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/usage/hourly/bytes/timeseries\");\n\nreq.query({\n  \"from\": \"2026-01-14T15:00\",\n  \"to\": \"2026-01-14T16:00\",\n  \"interval\": \"SOME_STRING_VALUE\",\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"tags\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/usage/hourly/bytes/timeseries');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-01-14T15:00',\n  'to' => '2026-01-14T16:00',\n  'interval' => 'SOME_STRING_VALUE',\n  'streams' => 'SOME_ARRAY_VALUE',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'tags' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/usage/hourly/bytes/timeseries?from=2026-01-14T15%3A00&to=2026-01-14T16%3A00&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/usage/hourly/bytes/timeseries\"\n\nquerystring = {\"from\":\"2026-01-14T15:00\",\"to\":\"2026-01-14T16:00\",\"interval\":\"SOME_STRING_VALUE\",\"streams\":\"SOME_ARRAY_VALUE\",\"countries\":\"SOME_ARRAY_VALUE\",\"tags\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/usage/hourly/bytes/timeseries?from=2026-01-14T15%3A00&to=2026-01-14T16%3A00&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/usage/hourly/bytes/timeseries?from=2026-01-14T15%3A00&to=2026-01-14T16%3A00&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/usage/hourly/bytes/timeseries?from=2026-01-14T15%3A00&to=2026-01-14T16%3A00&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/usage/hourly/bytes/timeseries?from=2026-01-14T15%3A00&to=2026-01-14T16%3A00&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/usage/hourly/bytes/timeseries?from=2026-01-14T15%3A00&to=2026-01-14T16%3A00&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/usage/{groupBy}/ingest/bytes":{"get":{"summary":"Ingest byte usage breakdown","description":"```\nhttps://metrics-api.nanostream.cloud/v2/usage/{groupBy}/ingest/bytes\n```\n\nGet the byte usage for ingest traffic broken down by IP, stream, country, city or referrer sorted in descending order (max. result length: 1000).","tags":["Usage metrics"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/groupBy"},{"$ref":"#/components/parameters/streamsDefault"},{"$ref":"#/components/parameters/countries"},{"$ref":"#/components/parameters/tags"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"{groupBy}":{"type":"string","description":"Breakdown term"},"ingest":{"type":"object","properties":{"bytes":{"type":"integer","description":"Total ingest bytes."}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"stream":"FoBar-SzB0r","ingest":{"bytes":715914415646}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/usage/%7BgroupBy%7D/ingest/bytes?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/usage/%7BgroupBy%7D/ingest/bytes?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/usage/%7BgroupBy%7D/ingest/bytes?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/usage/%7BgroupBy%7D/ingest/bytes?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/usage/%7BgroupBy%7D/ingest/bytes\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"tags\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/usage/%7BgroupBy%7D/ingest/bytes');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'streams' => 'SOME_ARRAY_VALUE',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'tags' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/usage/%7BgroupBy%7D/ingest/bytes?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/usage/%7BgroupBy%7D/ingest/bytes\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"streams\":\"SOME_ARRAY_VALUE\",\"countries\":\"SOME_ARRAY_VALUE\",\"tags\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/usage/%7BgroupBy%7D/ingest/bytes?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/usage/%7BgroupBy%7D/ingest/bytes?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/usage/%7BgroupBy%7D/ingest/bytes?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/usage/%7BgroupBy%7D/ingest/bytes?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/usage/%7BgroupBy%7D/ingest/bytes?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/usage/{groupBy}/playout/bytes":{"get":{"summary":"Playout byte usage breakdown","description":"```\nhttps://metrics-api.nanostream.cloud/v2/usage/{groupBy}/playout/bytes\n```\n\nGet the byte usage for playout traffic broken down by IP, stream, country, city or referrer sorted in descending order (max. result length: 1000).","tags":["Usage metrics"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/groupBy"},{"$ref":"#/components/parameters/streamsDefault"},{"$ref":"#/components/parameters/countries"},{"$ref":"#/components/parameters/tags"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"{groupBy}":{"type":"string","description":"Breakdown term"},"playout":{"type":"object","properties":{"bytes":{"type":"integer","description":"Total playout bytes."}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"stream":"FoBar-SzB0r","playout":{"bytes":715914415646}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/usage/%7BgroupBy%7D/playout/bytes?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/usage/%7BgroupBy%7D/playout/bytes?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/usage/%7BgroupBy%7D/playout/bytes?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/usage/%7BgroupBy%7D/playout/bytes?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/usage/%7BgroupBy%7D/playout/bytes\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"tags\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/usage/%7BgroupBy%7D/playout/bytes');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'streams' => 'SOME_ARRAY_VALUE',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'tags' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/usage/%7BgroupBy%7D/playout/bytes?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/usage/%7BgroupBy%7D/playout/bytes\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"streams\":\"SOME_ARRAY_VALUE\",\"countries\":\"SOME_ARRAY_VALUE\",\"tags\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/usage/%7BgroupBy%7D/playout/bytes?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/usage/%7BgroupBy%7D/playout/bytes?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/usage/%7BgroupBy%7D/playout/bytes?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/usage/%7BgroupBy%7D/playout/bytes?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/usage/%7BgroupBy%7D/playout/bytes?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/usage/lastmonth":{"get":{"summary":"Byte usage last month","description":"```\nhttps://metrics-api.nanostream.cloud/v2/usage/lastmonth\n```\n\nGet a time series of byte usage for playout and ingest traffic of the last month","tags":["Usage metrics"],"parameters":[{"$ref":"#/components/parameters/streamsDefault"},{"$ref":"#/components/parameters/countries"},{"$ref":"#/components/parameters/tags"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"timestamp":{"type":"integer","description":"The unix timestamp of the given time interval."},"timestampAsString":{"type":"string"},"playout":{"type":"object","properties":{"bytes":{"type":"integer","description":"Total playout bytes last month."}}},"ingest":{"type":"object","properties":{"bytes":{"type":"integer","description":"Total ingest bytes last month."}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"timestamp":1671840000,"timestampAsString":"2026-12-01 00:00:00","playout":{"bytes":80113969},"ingest":{"bytes":8582815766}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/usage/lastmonth?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/usage/lastmonth?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/usage/lastmonth?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/usage/lastmonth?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/usage/lastmonth\");\n\nreq.query({\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"tags\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/usage/lastmonth');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'streams' => 'SOME_ARRAY_VALUE',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'tags' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/usage/lastmonth?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/usage/lastmonth\"\n\nquerystring = {\"streams\":\"SOME_ARRAY_VALUE\",\"countries\":\"SOME_ARRAY_VALUE\",\"tags\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/usage/lastmonth?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/usage/lastmonth?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/usage/lastmonth?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/usage/lastmonth?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/usage/lastmonth?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/usage/ip/details":{"post":{"summary":"Conspicuous IPs details","description":"```\nhttps://metrics-api.nanostream.cloud/v2/usage/ip/details\n```\n\n  Get statistics about conspicuous IPs (based on playback duration) ordered descending by the highest total playback duration. Includes detailed metrics for streams, sessions, and network information.\n  Supported filters: Stream, IP, JTI, Referrer, Country, Provider, User, Tag","tags":["Usage metrics"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/streamsDefault"},{"$ref":"#/components/parameters/tags"},{"$ref":"#/components/parameters/countries"},{"$ref":"#/components/parameters/format"},{"name":"concurrency","description":"Set true to enable concurrency metrics calculation (may takes a few more time)","in":"query","required":false,"schema":{"type":"boolean"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"streams":{"type":"array","description":"Filter by stream names (include only these streams)","items":{"type":"string"}},"ips":{"type":"array","description":"Filter by IP addresses (include only these IPs). The match is exact and\ncase-sensitive. A value that contains `*` is a wildcard pattern.","items":{"type":"string"}},"jtis":{"type":"array","description":"Filter by JWT token IDs (jti claim). The match is exact and case-sensitive.\nA value that contains `*` is a wildcard pattern.","items":{"type":"string"}},"referrers":{"type":"array","description":"Filter by referrer URLs. The match ignores the case and permits wildcards,\nfor example `https://*.example.com`.\nFour reserved values select the sessions that carry no usable referrer:\n`__ref_no_http__` matches everything that does not start with `http`,\n`__ref_file__` matches `file://`, `__ref_dash__` matches the exact\nvalue `-`, and `__ref_null__` matches the exact value `null`.","items":{"type":"string"}},"countries":{"type":"array","description":"Filter by country name, for example `Germany`. The match ignores the case\nand permits wildcards, for example `Ger*` or `*land`.\nThe filter also takes an alpha-2 country code, for example `DE`. Two letters\nthat the code list holds are always a code, and never a name.\nThe API answers 400 for a two letter value that is not a known code.","items":{"type":"string"}},"providers":{"type":"array","description":"Filter by internet service provider names. The match ignores the case and\npermits wildcards, for example `Deutsche*`.","items":{"type":"string"}},"users":{"type":"array","description":"Filter by user IDs (user claim from JWT). The match is exact and\ncase-sensitive, because the user claim identifies a viewer.\nA value that contains `*` is a wildcard pattern.","items":{"type":"string"}},"tags":{"type":"array","description":"Filter by tag values (include only sessions/streams with these tags)","items":{"type":"string"}}}}}}},"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","description":"result set of conspicuous IPs","items":{"type":"object","properties":{"ip":{"type":"string","description":"IP address"},"orgaHash":{"type":"string","description":"Organization with the most documents on this IP. One IP can serve several\norganizations, so this is the first entry of topOrgas and not the only one."},"topOrgas":{"type":"array","description":"Organizations that used this IP, ordered by document count. At most 10 entries.","items":{"type":"string"}},"orgaCount":{"type":"integer","description":"Number of organizations that used this IP"},"durationSum":{"type":"number","description":"Total playback duration in seconds related to the IP"},"durationAvg":{"type":"number","description":"Average playback duration in seconds related to the IP"},"sessionCount":{"type":"integer","description":"Total session count related to the IP"},"streamCount":{"type":"integer","description":"Total unique stream count related to the IP"},"tokenCount":{"type":"integer","description":"Total unique playback token count related to the IP"},"topProviders":{"type":"array","description":"Top internet service providers associated with the IP","items":{"type":"string"}},"topCountries":{"type":"array","description":"Top countries where the IP is used from","items":{"type":"string"}},"topReferrers":{"type":"array","description":"Top referrers associated with the IP","items":{"type":"string"}},"topAgents":{"type":"array","description":"Top user agents associated with the IP","items":{"type":"string"}},"topTokens":{"type":"array","description":"Top playback token IDs (jti) used from this IP","items":{"type":"string"}},"streamStart":{"type":"string","description":"Start of the first stream related to the IP (ISO 8601 format)"},"streamEnd":{"type":"string","description":"End of the last stream related to the IP (ISO 8601 format)"},"concurrency":{"type":"number","description":"Peak number of concurrent playbacks of the IP. Estimated per 10\nminute interval (Calculation&#58; sum of playback duration in the\ninterval / time span covered by it); the highest value of all\nintervals is reported. h5live and MoQ playbacks are concurrent\nwith each other, so their peaks are added up. Only returned if the\nquery parameter `concurrency` is set to true."},"topStreams":{"type":"array","description":"Top streams (ordered by sum of playback duration)","items":{"type":"object","properties":{"streamName":{"type":"string","description":"Name of the stream"},"durationSum":{"type":"number","description":"Total playback duration in seconds related to the\nstream"},"durationAvg":{"type":"number","description":"Average playback duration in seconds related to the\nstream"},"sessionCount":{"type":"integer","description":"Total session count related to the stream"},"tokenCount":{"type":"integer","description":"Total unique token count related to the stream. A token that played back\nwith h5live and with MoQ is counted once per protocol here, unlike the\ntokenCount of the whole entry."},"streamStart":{"type":"string","description":"Start of the first stream (ISO 8601 format)"},"streamEnd":{"type":"string","description":"End of the last stream (ISO 8601 format)"}}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"ip":"159.149.17.82","orgaHash":"abc123def456","topOrgas":["abc123def456","789ghi012jkl"],"orgaCount":2,"durationAvg":12847.34,"durationSum":3764271,"sessionCount":372,"streamCount":1,"tokenCount":32,"topProviders":["Foo Bar Telecon"],"topCountries":["Latvia"],"topReferrers":["https://www.example.com"],"topAgents":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36"],"topTokens":["eyJhbGciOiJIUzI1NiJ9.abc123","eyJhbGciOiJIUzI1NiJ9.def456"],"streamStart":"2026-01-11T16:20:00Z","streamEnd":"2026-01-12T07:34:59Z","concurrency":139.1,"topStreams":[{"streamName":"FoBar-SzB0r","durationSum":65400,"durationAvg":3442.11,"sessionCount":19,"tokenCount":3,"streamStart":"2026-01-11T16:20:01Z","streamEnd":"2026-01-12T07:34:09Z"}]}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request POST \\\n  --url 'https://metrics-api.nanostream.cloud/v2/usage/ip/details?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE&concurrency=SOME_BOOLEAN_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE' \\\n  --header 'content-type: application/json' \\\n  --data '{\"streams\":[\"string\"],\"ips\":[\"string\"],\"jtis\":[\"string\"],\"referrers\":[\"string\"],\"countries\":[\"string\"],\"providers\":[\"string\"],\"users\":[\"string\"],\"tags\":[\"string\"]}'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"strings\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/usage/ip/details?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE&concurrency=SOME_BOOLEAN_VALUE\"\n\n\tpayload := strings.NewReader(\"{\\\"streams\\\":[\\\"string\\\"],\\\"ips\\\":[\\\"string\\\"],\\\"jtis\\\":[\\\"string\\\"],\\\"referrers\\\":[\\\"string\\\"],\\\"countries\\\":[\\\"string\\\"],\\\"providers\\\":[\\\"string\\\"],\\\"users\\\":[\\\"string\\\"],\\\"tags\\\":[\\\"string\\\"]}\")\n\n\treq, _ := http.NewRequest(\"POST\", url, payload)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.post(\"https://metrics-api.nanostream.cloud/v2/usage/ip/details?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE&concurrency=SOME_BOOLEAN_VALUE\")\n  .header(\"content-type\", \"application/json\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .body(\"{\\\"streams\\\":[\\\"string\\\"],\\\"ips\\\":[\\\"string\\\"],\\\"jtis\\\":[\\\"string\\\"],\\\"referrers\\\":[\\\"string\\\"],\\\"countries\\\":[\\\"string\\\"],\\\"providers\\\":[\\\"string\\\"],\\\"users\\\":[\\\"string\\\"],\\\"tags\\\":[\\\"string\\\"]}\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = JSON.stringify({\n  \"streams\": [\n    \"string\"\n  ],\n  \"ips\": [\n    \"string\"\n  ],\n  \"jtis\": [\n    \"string\"\n  ],\n  \"referrers\": [\n    \"string\"\n  ],\n  \"countries\": [\n    \"string\"\n  ],\n  \"providers\": [\n    \"string\"\n  ],\n  \"users\": [\n    \"string\"\n  ],\n  \"tags\": [\n    \"string\"\n  ]\n});\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"POST\", \"https://metrics-api.nanostream.cloud/v2/usage/ip/details?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE&concurrency=SOME_BOOLEAN_VALUE\");\nxhr.setRequestHeader(\"content-type\", \"application/json\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"POST\", \"https://metrics-api.nanostream.cloud/v2/usage/ip/details\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"tags\": \"SOME_ARRAY_VALUE\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\",\n  \"concurrency\": \"SOME_BOOLEAN_VALUE\"\n});\n\nreq.headers({\n  \"content-type\": \"application/json\",\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.type(\"json\");\nreq.send({\n  \"streams\": [\n    \"string\"\n  ],\n  \"ips\": [\n    \"string\"\n  ],\n  \"jtis\": [\n    \"string\"\n  ],\n  \"referrers\": [\n    \"string\"\n  ],\n  \"countries\": [\n    \"string\"\n  ],\n  \"providers\": [\n    \"string\"\n  ],\n  \"users\": [\n    \"string\"\n  ],\n  \"tags\": [\n    \"string\"\n  ]\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$body = new http\\Message\\Body;\n$body->append('{\"streams\":[\"string\"],\"ips\":[\"string\"],\"jtis\":[\"string\"],\"referrers\":[\"string\"],\"countries\":[\"string\"],\"providers\":[\"string\"],\"users\":[\"string\"],\"tags\":[\"string\"]}');\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/usage/ip/details');\n$request->setRequestMethod('POST');\n$request->setBody($body);\n\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'streams' => 'SOME_ARRAY_VALUE',\n  'tags' => 'SOME_ARRAY_VALUE',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE',\n  'concurrency' => 'SOME_BOOLEAN_VALUE'\n]));\n\n$request->setHeaders([\n  'content-type' => 'application/json',\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\npayload = \"{\\\"streams\\\":[\\\"string\\\"],\\\"ips\\\":[\\\"string\\\"],\\\"jtis\\\":[\\\"string\\\"],\\\"referrers\\\":[\\\"string\\\"],\\\"countries\\\":[\\\"string\\\"],\\\"providers\\\":[\\\"string\\\"],\\\"users\\\":[\\\"string\\\"],\\\"tags\\\":[\\\"string\\\"]}\"\n\nheaders = {\n    'content-type': \"application/json\",\n    'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\"\n    }\n\nconn.request(\"POST\", \"/v2/usage/ip/details?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE&concurrency=SOME_BOOLEAN_VALUE\", payload, headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/usage/ip/details\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"streams\":\"SOME_ARRAY_VALUE\",\"tags\":\"SOME_ARRAY_VALUE\",\"countries\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\",\"concurrency\":\"SOME_BOOLEAN_VALUE\"}\n\npayload = {\n    \"streams\": [\"string\"],\n    \"ips\": [\"string\"],\n    \"jtis\": [\"string\"],\n    \"referrers\": [\"string\"],\n    \"countries\": [\"string\"],\n    \"providers\": [\"string\"],\n    \"users\": [\"string\"],\n    \"tags\": [\"string\"]\n}\nheaders = {\n    \"content-type\": \"application/json\",\n    \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n}\n\nresponse = requests.request(\"POST\", url, json=payload, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/usage/ip/details?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE&concurrency=SOME_BOOLEAN_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\nrequest.body = \"{\\\"streams\\\":[\\\"string\\\"],\\\"ips\\\":[\\\"string\\\"],\\\"jtis\\\":[\\\"string\\\"],\\\"referrers\\\":[\\\"string\\\"],\\\"countries\\\":[\\\"string\\\"],\\\"providers\\\":[\\\"string\\\"],\\\"users\\\":[\\\"string\\\"],\\\"tags\\\":[\\\"string\\\"]}\"\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\n  \"content-type\": \"application/json\",\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n]\nlet parameters = [\n  \"streams\": [\"string\"],\n  \"ips\": [\"string\"],\n  \"jtis\": [\"string\"],\n  \"referrers\": [\"string\"],\n  \"countries\": [\"string\"],\n  \"providers\": [\"string\"],\n  \"users\": [\"string\"],\n  \"tags\": [\"string\"]\n] as [String : Any]\n\nlet postData = JSONSerialization.data(withJSONObject: parameters, options: [])\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/usage/ip/details?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE&concurrency=SOME_BOOLEAN_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"POST\"\nrequest.allHTTPHeaderFields = headers\nrequest.httpBody = postData as Data\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/usage/ip/details?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE&concurrency=SOME_BOOLEAN_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"content-type: application/json\");\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\ncurl_easy_setopt(hnd, CURLOPT_POSTFIELDS, \"{\\\"streams\\\":[\\\"string\\\"],\\\"ips\\\":[\\\"string\\\"],\\\"jtis\\\":[\\\"string\\\"],\\\"referrers\\\":[\\\"string\\\"],\\\"countries\\\":[\\\"string\\\"],\\\"providers\\\":[\\\"string\\\"],\\\"users\\\":[\\\"string\\\"],\\\"tags\\\":[\\\"string\\\"]}\");\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/usage/ip/details?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE&concurrency=SOME_BOOLEAN_VALUE\");\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nrequest.AddParameter(\"application/json\", \"{\\\"streams\\\":[\\\"string\\\"],\\\"ips\\\":[\\\"string\\\"],\\\"jtis\\\":[\\\"string\\\"],\\\"referrers\\\":[\\\"string\\\"],\\\"countries\\\":[\\\"string\\\"],\\\"providers\\\":[\\\"string\\\"],\\\"users\\\":[\\\"string\\\"],\\\"tags\\\":[\\\"string\\\"]}\", ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Post,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/usage/ip/details?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE&concurrency=SOME_BOOLEAN_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n    Content = new StringContent(\"{\\\"streams\\\":[\\\"string\\\"],\\\"ips\\\":[\\\"string\\\"],\\\"jtis\\\":[\\\"string\\\"],\\\"referrers\\\":[\\\"string\\\"],\\\"countries\\\":[\\\"string\\\"],\\\"providers\\\":[\\\"string\\\"],\\\"users\\\":[\\\"string\\\"],\\\"tags\\\":[\\\"string\\\"]}\")\n    {\n        Headers =\n        {\n            ContentType = new MediaTypeHeaderValue(\"application/json\")\n        }\n    }\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/usage/token/playback/details":{"post":{"summary":"Conspicuous Playback Tokens details","description":"```\nhttps://metrics-api.nanostream.cloud/v2/usage/token/playback/details\n```\n\n  Get statistics about conspicuous Playback Tokens (based on playback duration) ordered descending by the highest total playback duration. Includes detailed Playback token payload information and metrics for streams, sessions, and network information.\n  Supported filters: Stream, IP, JTI, Referrer, Country, Provider, User, Tag","tags":["Usage metrics"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/streamsDefault"},{"$ref":"#/components/parameters/tags"},{"$ref":"#/components/parameters/countries"},{"$ref":"#/components/parameters/format"},{"name":"concurrency","description":"Set true to enable concurrency metrics calculation (may takes a few more time)","in":"query","required":false,"schema":{"type":"boolean"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"streams":{"type":"array","description":"Filter by stream names (include only these streams)","items":{"type":"string"}},"ips":{"type":"array","description":"Filter by IP addresses (include only these IPs). The match is exact and\ncase-sensitive. A value that contains `*` is a wildcard pattern.","items":{"type":"string"}},"jtis":{"type":"array","description":"Filter by JWT token IDs (jti claim). The match is exact and case-sensitive.\nA value that contains `*` is a wildcard pattern.","items":{"type":"string"}},"referrers":{"type":"array","description":"Filter by referrer URLs. The match ignores the case and permits wildcards,\nfor example `https://*.example.com`.\nFour reserved values select the sessions that carry no usable referrer:\n`__ref_no_http__` matches everything that does not start with `http`,\n`__ref_file__` matches `file://`, `__ref_dash__` matches the exact\nvalue `-`, and `__ref_null__` matches the exact value `null`.","items":{"type":"string"}},"countries":{"type":"array","description":"Filter by country name, for example `Germany`. The match ignores the case\nand permits wildcards, for example `Ger*` or `*land`.\nThe filter also takes an alpha-2 country code, for example `DE`. Two letters\nthat the code list holds are always a code, and never a name.\nThe API answers 400 for a two letter value that is not a known code.","items":{"type":"string"}},"providers":{"type":"array","description":"Filter by internet service provider names. The match ignores the case and\npermits wildcards, for example `Deutsche*`.","items":{"type":"string"}},"users":{"type":"array","description":"Filter by user IDs (user claim from JWT). The match is exact and\ncase-sensitive, because the user claim identifies a viewer.\nA value that contains `*` is a wildcard pattern.","items":{"type":"string"}},"tags":{"type":"array","description":"Filter by tag values (include only sessions/streams with these tags)","items":{"type":"string"}}}}}}},"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","description":"result set of conspicuous Playback Tokens","items":{"type":"object","properties":{"playbackToken":{"type":"string","description":"Playback Token value"},"orgaHash":{"type":"string","description":"Organization hash related to the Playback Token"},"tokenPayload":{"type":"object","description":"Decoded Playback Token payload","properties":{"jti":{"type":"string","description":"Token ID - unique identifier for the token"},"sub":{"type":"string","description":"Subject - token subject"},"iat":{"type":"string","description":"Issued at - token issuance time"},"exp":{"type":"string","description":"Expiration time"},"nbf":{"type":"string","description":"Not before - earliest time token is valid"},"aud":{"type":"array","description":"Audience - intended recipients of the token","items":{"type":"string"}},"tag":{"type":"string","description":"Tag associated with the token"},"user":{"type":"string","description":"User ID"},"domain":{"type":"string","description":"Domain associated with the token"},"ip":{"type":"string","description":"IP address restricted to this token"},"streams":{"type":"array","description":"List of allowed stream names","items":{"type":"string"}},"orgahash":{"type":"string","description":"Organization hash in token"},"forceDisconnect":{"type":"boolean","description":"Force disconnect after token expiration"},"revocable":{"type":"boolean","description":"Is token revocable"},"cust":{"type":"object","description":"Custom data field from the token payload (base64-decoded if possible)","properties":{"raw":{"type":"string","description":"Raw value of the custom field"},"decoded":{"type":"string","description":"Base64-decoded value (equals raw if decoding is not applicable)"}}}}},"durationSum":{"type":"number","description":"Total playback duration in seconds related to the Playback Token"},"durationAvg":{"type":"number","description":"Average playback duration in seconds related to the Playback Token"},"sessionCount":{"type":"integer","description":"Total session count related to the Playback Token"},"streamCount":{"type":"integer","description":"Total unique stream count related to the Playback Token"},"ipCount":{"type":"integer","description":"Total unique IP count related to the Playback Token"},"topIPs":{"type":"array","description":"Top IP addresses used with this Playback Token","items":{"type":"string"}},"topProviders":{"type":"array","description":"Top internet service providers associated with the Playback Token","items":{"type":"string"}},"topCountries":{"type":"array","description":"Top countries where the Playback Token is used from","items":{"type":"string"}},"topReferrers":{"type":"array","description":"Top referrers associated with the IP","items":{"type":"string"}},"topAgents":{"type":"array","description":"Top user agents associated with the IP","items":{"type":"string"}},"streamStart":{"type":"string","description":"Start of the first stream related to the Playback Token (ISO 8601 format)"},"streamEnd":{"type":"string","description":"End of the last stream related to the Playback Token (ISO 8601 format)"},"concurrency":{"type":"number","description":"Peak number of concurrent playbacks of the Playback Token. Estimated per 10\nminute interval (Calculation&#58; sum of playback duration in the\ninterval / time span covered by it); the highest value of all\nintervals is reported. h5live and MoQ playbacks are concurrent\nwith each other, so their peaks are added up. Only returned if the\nquery parameter `concurrency` is set to true."},"topStreams":{"type":"array","description":"Top streams (ordered by sum of playback duration)","items":{"type":"object","properties":{"streamName":{"type":"string","description":"Name of the stream"},"durationSum":{"type":"number","description":"Total playback duration in seconds related to the\nstream"},"durationAvg":{"type":"number","description":"Average playback duration in seconds related to the\nstream"},"sessionCount":{"type":"integer","description":"Total session count related to the stream"},"ipCount":{"type":"integer","description":"Total unique IP count related to the stream. An IP that played back\nwith h5live and with MoQ is counted once per protocol here, unlike the\nipCount of the whole entry."},"streamStart":{"type":"string","description":"Start of the first stream (ISO 8601 format)"},"streamEnd":{"type":"string","description":"End of the last stream (ISO 8601 format)"}}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"playbackToken":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c","orgaHash":"abc123def456","tokenPayload":{"jti":"token-id-12345","sub":"user123","iat":"2026-01-11T16:20:00Z","exp":"2026-01-12T16:20:00Z","nbf":"2026-01-11T16:20:00Z","aud":["playback"],"tag":"premium","user":"john_doe","domain":"example.com","ip":"192.168.1.1","streams":["stream1","stream2"],"orgahash":"abc123def456","forceDisconnect":false,"revocable":true,"cust":{"raw":"dXNlcjEyMw==","decoded":"user123"}},"durationSum":2500000,"durationAvg":8456.32,"sessionCount":295,"streamCount":2,"ipCount":15,"topIPs":["192.168.1.1","192.168.1.2"],"topProviders":["Provider Network Inc.","Global ISP Ltd."],"topCountries":["Germany","France"],"topReferrers":["https://www.example.com"],"topAgents":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36"],"streamStart":"2026-01-11T16:20:00Z","streamEnd":"2026-01-12T05:45:30Z","concurrency":95.5,"topStreams":[{"streamName":"main-stream","durationSum":1800000,"durationAvg":9000,"sessionCount":200,"ipCount":10,"streamStart":"2026-01-11T16:20:00Z","streamEnd":"2026-01-12T05:45:30Z"},{"streamName":"backup-stream","durationSum":700000,"durationAvg":7000,"sessionCount":95,"ipCount":8,"streamStart":"2026-01-11T16:30:00Z","streamEnd":"2026-01-12T04:15:00Z"}]}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request POST \\\n  --url 'https://metrics-api.nanostream.cloud/v2/usage/token/playback/details?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE&concurrency=SOME_BOOLEAN_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE' \\\n  --header 'content-type: application/json' \\\n  --data '{\"streams\":[\"string\"],\"ips\":[\"string\"],\"jtis\":[\"string\"],\"referrers\":[\"string\"],\"countries\":[\"string\"],\"providers\":[\"string\"],\"users\":[\"string\"],\"tags\":[\"string\"]}'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"strings\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/usage/token/playback/details?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE&concurrency=SOME_BOOLEAN_VALUE\"\n\n\tpayload := strings.NewReader(\"{\\\"streams\\\":[\\\"string\\\"],\\\"ips\\\":[\\\"string\\\"],\\\"jtis\\\":[\\\"string\\\"],\\\"referrers\\\":[\\\"string\\\"],\\\"countries\\\":[\\\"string\\\"],\\\"providers\\\":[\\\"string\\\"],\\\"users\\\":[\\\"string\\\"],\\\"tags\\\":[\\\"string\\\"]}\")\n\n\treq, _ := http.NewRequest(\"POST\", url, payload)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.post(\"https://metrics-api.nanostream.cloud/v2/usage/token/playback/details?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE&concurrency=SOME_BOOLEAN_VALUE\")\n  .header(\"content-type\", \"application/json\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .body(\"{\\\"streams\\\":[\\\"string\\\"],\\\"ips\\\":[\\\"string\\\"],\\\"jtis\\\":[\\\"string\\\"],\\\"referrers\\\":[\\\"string\\\"],\\\"countries\\\":[\\\"string\\\"],\\\"providers\\\":[\\\"string\\\"],\\\"users\\\":[\\\"string\\\"],\\\"tags\\\":[\\\"string\\\"]}\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = JSON.stringify({\n  \"streams\": [\n    \"string\"\n  ],\n  \"ips\": [\n    \"string\"\n  ],\n  \"jtis\": [\n    \"string\"\n  ],\n  \"referrers\": [\n    \"string\"\n  ],\n  \"countries\": [\n    \"string\"\n  ],\n  \"providers\": [\n    \"string\"\n  ],\n  \"users\": [\n    \"string\"\n  ],\n  \"tags\": [\n    \"string\"\n  ]\n});\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"POST\", \"https://metrics-api.nanostream.cloud/v2/usage/token/playback/details?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE&concurrency=SOME_BOOLEAN_VALUE\");\nxhr.setRequestHeader(\"content-type\", \"application/json\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"POST\", \"https://metrics-api.nanostream.cloud/v2/usage/token/playback/details\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"tags\": \"SOME_ARRAY_VALUE\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\",\n  \"concurrency\": \"SOME_BOOLEAN_VALUE\"\n});\n\nreq.headers({\n  \"content-type\": \"application/json\",\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.type(\"json\");\nreq.send({\n  \"streams\": [\n    \"string\"\n  ],\n  \"ips\": [\n    \"string\"\n  ],\n  \"jtis\": [\n    \"string\"\n  ],\n  \"referrers\": [\n    \"string\"\n  ],\n  \"countries\": [\n    \"string\"\n  ],\n  \"providers\": [\n    \"string\"\n  ],\n  \"users\": [\n    \"string\"\n  ],\n  \"tags\": [\n    \"string\"\n  ]\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$body = new http\\Message\\Body;\n$body->append('{\"streams\":[\"string\"],\"ips\":[\"string\"],\"jtis\":[\"string\"],\"referrers\":[\"string\"],\"countries\":[\"string\"],\"providers\":[\"string\"],\"users\":[\"string\"],\"tags\":[\"string\"]}');\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/usage/token/playback/details');\n$request->setRequestMethod('POST');\n$request->setBody($body);\n\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'streams' => 'SOME_ARRAY_VALUE',\n  'tags' => 'SOME_ARRAY_VALUE',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE',\n  'concurrency' => 'SOME_BOOLEAN_VALUE'\n]));\n\n$request->setHeaders([\n  'content-type' => 'application/json',\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\npayload = \"{\\\"streams\\\":[\\\"string\\\"],\\\"ips\\\":[\\\"string\\\"],\\\"jtis\\\":[\\\"string\\\"],\\\"referrers\\\":[\\\"string\\\"],\\\"countries\\\":[\\\"string\\\"],\\\"providers\\\":[\\\"string\\\"],\\\"users\\\":[\\\"string\\\"],\\\"tags\\\":[\\\"string\\\"]}\"\n\nheaders = {\n    'content-type': \"application/json\",\n    'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\"\n    }\n\nconn.request(\"POST\", \"/v2/usage/token/playback/details?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE&concurrency=SOME_BOOLEAN_VALUE\", payload, headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/usage/token/playback/details\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"streams\":\"SOME_ARRAY_VALUE\",\"tags\":\"SOME_ARRAY_VALUE\",\"countries\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\",\"concurrency\":\"SOME_BOOLEAN_VALUE\"}\n\npayload = {\n    \"streams\": [\"string\"],\n    \"ips\": [\"string\"],\n    \"jtis\": [\"string\"],\n    \"referrers\": [\"string\"],\n    \"countries\": [\"string\"],\n    \"providers\": [\"string\"],\n    \"users\": [\"string\"],\n    \"tags\": [\"string\"]\n}\nheaders = {\n    \"content-type\": \"application/json\",\n    \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n}\n\nresponse = requests.request(\"POST\", url, json=payload, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/usage/token/playback/details?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE&concurrency=SOME_BOOLEAN_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\nrequest.body = \"{\\\"streams\\\":[\\\"string\\\"],\\\"ips\\\":[\\\"string\\\"],\\\"jtis\\\":[\\\"string\\\"],\\\"referrers\\\":[\\\"string\\\"],\\\"countries\\\":[\\\"string\\\"],\\\"providers\\\":[\\\"string\\\"],\\\"users\\\":[\\\"string\\\"],\\\"tags\\\":[\\\"string\\\"]}\"\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\n  \"content-type\": \"application/json\",\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n]\nlet parameters = [\n  \"streams\": [\"string\"],\n  \"ips\": [\"string\"],\n  \"jtis\": [\"string\"],\n  \"referrers\": [\"string\"],\n  \"countries\": [\"string\"],\n  \"providers\": [\"string\"],\n  \"users\": [\"string\"],\n  \"tags\": [\"string\"]\n] as [String : Any]\n\nlet postData = JSONSerialization.data(withJSONObject: parameters, options: [])\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/usage/token/playback/details?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE&concurrency=SOME_BOOLEAN_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"POST\"\nrequest.allHTTPHeaderFields = headers\nrequest.httpBody = postData as Data\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/usage/token/playback/details?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE&concurrency=SOME_BOOLEAN_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"content-type: application/json\");\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\ncurl_easy_setopt(hnd, CURLOPT_POSTFIELDS, \"{\\\"streams\\\":[\\\"string\\\"],\\\"ips\\\":[\\\"string\\\"],\\\"jtis\\\":[\\\"string\\\"],\\\"referrers\\\":[\\\"string\\\"],\\\"countries\\\":[\\\"string\\\"],\\\"providers\\\":[\\\"string\\\"],\\\"users\\\":[\\\"string\\\"],\\\"tags\\\":[\\\"string\\\"]}\");\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/usage/token/playback/details?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE&concurrency=SOME_BOOLEAN_VALUE\");\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nrequest.AddParameter(\"application/json\", \"{\\\"streams\\\":[\\\"string\\\"],\\\"ips\\\":[\\\"string\\\"],\\\"jtis\\\":[\\\"string\\\"],\\\"referrers\\\":[\\\"string\\\"],\\\"countries\\\":[\\\"string\\\"],\\\"providers\\\":[\\\"string\\\"],\\\"users\\\":[\\\"string\\\"],\\\"tags\\\":[\\\"string\\\"]}\", ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Post,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/usage/token/playback/details?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE&concurrency=SOME_BOOLEAN_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n    Content = new StringContent(\"{\\\"streams\\\":[\\\"string\\\"],\\\"ips\\\":[\\\"string\\\"],\\\"jtis\\\":[\\\"string\\\"],\\\"referrers\\\":[\\\"string\\\"],\\\"countries\\\":[\\\"string\\\"],\\\"providers\\\":[\\\"string\\\"],\\\"users\\\":[\\\"string\\\"],\\\"tags\\\":[\\\"string\\\"]}\")\n    {\n        Headers =\n        {\n            ContentType = new MediaTypeHeaderValue(\"application/json\")\n        }\n    }\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/usage/user/details":{"post":{"summary":"Conspicuous Users details","description":"Get statistics about conspicuous users (based on playback duration) ordered descending by the highest total playback duration. Sessions are grouped by the optional <code>user</code> claim of the Playback Token, so one user is reported across all of its Playback Tokens and IP addresses. Sessions without a <code>user</code> claim are not part of the result. Includes metrics for streams, sessions, network information and a breakdown by Playback Token (JTI) and IP address.\nSupported filters: Stream, IP, JTI, Referrer, Country, Provider, User, Tag","tags":["Usage metrics"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/streamsDefault"},{"$ref":"#/components/parameters/tags"},{"$ref":"#/components/parameters/countries"},{"$ref":"#/components/parameters/format"},{"name":"concurrency","description":"Set true to enable concurrency metrics calculation (may takes a few more time)","in":"query","required":false,"schema":{"type":"boolean"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"streams":{"type":"array","description":"Filter by stream names (include only these streams)","items":{"type":"string"}},"ips":{"type":"array","description":"Filter by IP addresses (include only these IPs). The match is exact and\ncase-sensitive. A value that contains `*` is a wildcard pattern.","items":{"type":"string"}},"jtis":{"type":"array","description":"Filter by JWT token IDs (jti claim). The match is exact and case-sensitive.\nA value that contains `*` is a wildcard pattern.","items":{"type":"string"}},"referrers":{"type":"array","description":"Filter by referrer URLs. The match ignores the case and permits wildcards,\nfor example `https://*.example.com`.\nFour reserved values select the sessions that carry no usable referrer:\n`__ref_no_http__` matches everything that does not start with `http`,\n`__ref_file__` matches `file://`, `__ref_dash__` matches the exact\nvalue `-`, and `__ref_null__` matches the exact value `null`.","items":{"type":"string"}},"countries":{"type":"array","description":"Filter by country name, for example `Germany`. The match ignores the case\nand permits wildcards, for example `Ger*` or `*land`.\nThe filter also takes an alpha-2 country code, for example `DE`. Two letters\nthat the code list holds are always a code, and never a name.\nThe API answers 400 for a two letter value that is not a known code.","items":{"type":"string"}},"providers":{"type":"array","description":"Filter by internet service provider names. The match ignores the case and\npermits wildcards, for example `Deutsche*`.","items":{"type":"string"}},"users":{"type":"array","description":"Filter by user IDs (user claim from JWT). The match is exact and\ncase-sensitive, because the user claim identifies a viewer.\nA value that contains `*` is a wildcard pattern.","items":{"type":"string"}},"tags":{"type":"array","description":"Filter by tag values (include only sessions/streams with these tags)","items":{"type":"string"}}}}}}},"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","description":"result set of conspicuous users","items":{"type":"object","properties":{"user":{"type":"string","description":"User ID (user claim of the Playback Token)"},"orgaHash":{"type":"string","description":"Organization hash related to the user"},"durationSum":{"type":"number","description":"Total playback duration in seconds related to the user"},"durationAvg":{"type":"number","description":"Average playback duration in seconds related to the user"},"sessionCount":{"type":"integer","description":"Total session count related to the user"},"streamCount":{"type":"integer","description":"Total unique stream count related to the user"},"tokenCount":{"type":"integer","description":"Total unique Playback Token count (JTI) related to the user"},"ipCount":{"type":"integer","description":"Total unique IP count related to the user"},"topTokens":{"type":"array","description":"Top Playback Token IDs (JTI) used by this user","items":{"type":"string"}},"topIPs":{"type":"array","description":"Top IP addresses used by this user","items":{"type":"string"}},"topProviders":{"type":"array","description":"Top internet service providers associated with the user","items":{"type":"string"}},"topCountries":{"type":"array","description":"Top countries the user played back from","items":{"type":"string"}},"topReferrers":{"type":"array","description":"Top referrers associated with the user","items":{"type":"string"}},"topAgents":{"type":"array","description":"Top user agents associated with the user","items":{"type":"string"}},"streamStart":{"type":"string","description":"Start of the first stream related to the user (ISO 8601 format)"},"streamEnd":{"type":"string","description":"End of the last stream related to the user (ISO 8601 format)"},"concurrency":{"type":"number","description":"Peak number of concurrent playbacks of the user. Estimated per 10\nminute interval (Calculation&#58; sum of playback duration in the\ninterval / time span covered by it); the highest value of all\nintervals is reported. h5live and MoQ playbacks are concurrent\nwith each other, so their peaks are added up. Only returned if the\nquery parameter `concurrency` is set to true."},"topStreams":{"type":"array","description":"Top streams (ordered by sum of playback duration)","items":{"type":"object","properties":{"streamName":{"type":"string","description":"Name of the stream"},"durationSum":{"type":"number","description":"Total playback duration in seconds related to the\nstream"},"durationAvg":{"type":"number","description":"Average playback duration in seconds related to the\nstream"},"sessionCount":{"type":"integer","description":"Total session count related to the stream"},"tokenCount":{"type":"integer","description":"Total unique Playback Token count (JTI) related to the stream.\nUnlike the user level tokenCount this is the sum of both\nprotocols, so a token that played back with h5live and with\nMoQ is counted once per protocol here."},"streamStart":{"type":"string","description":"Start of the first stream (ISO 8601 format)"},"streamEnd":{"type":"string","description":"End of the last stream (ISO 8601 format)"}}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"user":"john_doe","orgaHash":"aBc1D","durationSum":2500000,"durationAvg":8456.32,"sessionCount":295,"streamCount":2,"tokenCount":24,"ipCount":15,"topTokens":["token-id-12345","token-id-12346"],"topIPs":["192.168.1.1","192.168.1.2"],"topProviders":["Provider Network Inc.","Global ISP Ltd."],"topCountries":["Germany","France"],"topReferrers":["https://www.example.com"],"topAgents":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36"],"streamStart":"2023-01-11T16:20:00Z","streamEnd":"2023-01-12T05:45:30Z","concurrency":95.5,"topStreams":[{"streamName":"main-stream","durationSum":1800000,"durationAvg":9000,"sessionCount":200,"tokenCount":18,"streamStart":"2023-01-11T16:20:00Z","streamEnd":"2023-01-12T05:45:30Z"},{"streamName":"backup-stream","durationSum":700000,"durationAvg":7000,"sessionCount":95,"tokenCount":6,"streamStart":"2023-01-11T16:30:00Z","streamEnd":"2023-01-12T04:15:00Z"}]}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request POST \\\n  --url 'https://metrics-api.nanostream.cloud/v2/usage/user/details?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE&concurrency=SOME_BOOLEAN_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE' \\\n  --header 'content-type: application/json' \\\n  --data '{\"streams\":[\"string\"],\"ips\":[\"string\"],\"jtis\":[\"string\"],\"referrers\":[\"string\"],\"countries\":[\"string\"],\"providers\":[\"string\"],\"users\":[\"string\"],\"tags\":[\"string\"]}'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"strings\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/usage/user/details?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE&concurrency=SOME_BOOLEAN_VALUE\"\n\n\tpayload := strings.NewReader(\"{\\\"streams\\\":[\\\"string\\\"],\\\"ips\\\":[\\\"string\\\"],\\\"jtis\\\":[\\\"string\\\"],\\\"referrers\\\":[\\\"string\\\"],\\\"countries\\\":[\\\"string\\\"],\\\"providers\\\":[\\\"string\\\"],\\\"users\\\":[\\\"string\\\"],\\\"tags\\\":[\\\"string\\\"]}\")\n\n\treq, _ := http.NewRequest(\"POST\", url, payload)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.post(\"https://metrics-api.nanostream.cloud/v2/usage/user/details?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE&concurrency=SOME_BOOLEAN_VALUE\")\n  .header(\"content-type\", \"application/json\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .body(\"{\\\"streams\\\":[\\\"string\\\"],\\\"ips\\\":[\\\"string\\\"],\\\"jtis\\\":[\\\"string\\\"],\\\"referrers\\\":[\\\"string\\\"],\\\"countries\\\":[\\\"string\\\"],\\\"providers\\\":[\\\"string\\\"],\\\"users\\\":[\\\"string\\\"],\\\"tags\\\":[\\\"string\\\"]}\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = JSON.stringify({\n  \"streams\": [\n    \"string\"\n  ],\n  \"ips\": [\n    \"string\"\n  ],\n  \"jtis\": [\n    \"string\"\n  ],\n  \"referrers\": [\n    \"string\"\n  ],\n  \"countries\": [\n    \"string\"\n  ],\n  \"providers\": [\n    \"string\"\n  ],\n  \"users\": [\n    \"string\"\n  ],\n  \"tags\": [\n    \"string\"\n  ]\n});\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"POST\", \"https://metrics-api.nanostream.cloud/v2/usage/user/details?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE&concurrency=SOME_BOOLEAN_VALUE\");\nxhr.setRequestHeader(\"content-type\", \"application/json\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"POST\", \"https://metrics-api.nanostream.cloud/v2/usage/user/details\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"tags\": \"SOME_ARRAY_VALUE\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\",\n  \"concurrency\": \"SOME_BOOLEAN_VALUE\"\n});\n\nreq.headers({\n  \"content-type\": \"application/json\",\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.type(\"json\");\nreq.send({\n  \"streams\": [\n    \"string\"\n  ],\n  \"ips\": [\n    \"string\"\n  ],\n  \"jtis\": [\n    \"string\"\n  ],\n  \"referrers\": [\n    \"string\"\n  ],\n  \"countries\": [\n    \"string\"\n  ],\n  \"providers\": [\n    \"string\"\n  ],\n  \"users\": [\n    \"string\"\n  ],\n  \"tags\": [\n    \"string\"\n  ]\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$body = new http\\Message\\Body;\n$body->append('{\"streams\":[\"string\"],\"ips\":[\"string\"],\"jtis\":[\"string\"],\"referrers\":[\"string\"],\"countries\":[\"string\"],\"providers\":[\"string\"],\"users\":[\"string\"],\"tags\":[\"string\"]}');\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/usage/user/details');\n$request->setRequestMethod('POST');\n$request->setBody($body);\n\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'streams' => 'SOME_ARRAY_VALUE',\n  'tags' => 'SOME_ARRAY_VALUE',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE',\n  'concurrency' => 'SOME_BOOLEAN_VALUE'\n]));\n\n$request->setHeaders([\n  'content-type' => 'application/json',\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\npayload = \"{\\\"streams\\\":[\\\"string\\\"],\\\"ips\\\":[\\\"string\\\"],\\\"jtis\\\":[\\\"string\\\"],\\\"referrers\\\":[\\\"string\\\"],\\\"countries\\\":[\\\"string\\\"],\\\"providers\\\":[\\\"string\\\"],\\\"users\\\":[\\\"string\\\"],\\\"tags\\\":[\\\"string\\\"]}\"\n\nheaders = {\n    'content-type': \"application/json\",\n    'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\"\n    }\n\nconn.request(\"POST\", \"/v2/usage/user/details?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE&concurrency=SOME_BOOLEAN_VALUE\", payload, headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/usage/user/details\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"streams\":\"SOME_ARRAY_VALUE\",\"tags\":\"SOME_ARRAY_VALUE\",\"countries\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\",\"concurrency\":\"SOME_BOOLEAN_VALUE\"}\n\npayload = {\n    \"streams\": [\"string\"],\n    \"ips\": [\"string\"],\n    \"jtis\": [\"string\"],\n    \"referrers\": [\"string\"],\n    \"countries\": [\"string\"],\n    \"providers\": [\"string\"],\n    \"users\": [\"string\"],\n    \"tags\": [\"string\"]\n}\nheaders = {\n    \"content-type\": \"application/json\",\n    \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n}\n\nresponse = requests.request(\"POST\", url, json=payload, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/usage/user/details?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE&concurrency=SOME_BOOLEAN_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\nrequest.body = \"{\\\"streams\\\":[\\\"string\\\"],\\\"ips\\\":[\\\"string\\\"],\\\"jtis\\\":[\\\"string\\\"],\\\"referrers\\\":[\\\"string\\\"],\\\"countries\\\":[\\\"string\\\"],\\\"providers\\\":[\\\"string\\\"],\\\"users\\\":[\\\"string\\\"],\\\"tags\\\":[\\\"string\\\"]}\"\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\n  \"content-type\": \"application/json\",\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n]\nlet parameters = [\n  \"streams\": [\"string\"],\n  \"ips\": [\"string\"],\n  \"jtis\": [\"string\"],\n  \"referrers\": [\"string\"],\n  \"countries\": [\"string\"],\n  \"providers\": [\"string\"],\n  \"users\": [\"string\"],\n  \"tags\": [\"string\"]\n] as [String : Any]\n\nlet postData = JSONSerialization.data(withJSONObject: parameters, options: [])\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/usage/user/details?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE&concurrency=SOME_BOOLEAN_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"POST\"\nrequest.allHTTPHeaderFields = headers\nrequest.httpBody = postData as Data\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/usage/user/details?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE&concurrency=SOME_BOOLEAN_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"content-type: application/json\");\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\ncurl_easy_setopt(hnd, CURLOPT_POSTFIELDS, \"{\\\"streams\\\":[\\\"string\\\"],\\\"ips\\\":[\\\"string\\\"],\\\"jtis\\\":[\\\"string\\\"],\\\"referrers\\\":[\\\"string\\\"],\\\"countries\\\":[\\\"string\\\"],\\\"providers\\\":[\\\"string\\\"],\\\"users\\\":[\\\"string\\\"],\\\"tags\\\":[\\\"string\\\"]}\");\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/usage/user/details?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE&concurrency=SOME_BOOLEAN_VALUE\");\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nrequest.AddParameter(\"application/json\", \"{\\\"streams\\\":[\\\"string\\\"],\\\"ips\\\":[\\\"string\\\"],\\\"jtis\\\":[\\\"string\\\"],\\\"referrers\\\":[\\\"string\\\"],\\\"countries\\\":[\\\"string\\\"],\\\"providers\\\":[\\\"string\\\"],\\\"users\\\":[\\\"string\\\"],\\\"tags\\\":[\\\"string\\\"]}\", ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Post,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/usage/user/details?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE&concurrency=SOME_BOOLEAN_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n    Content = new StringContent(\"{\\\"streams\\\":[\\\"string\\\"],\\\"ips\\\":[\\\"string\\\"],\\\"jtis\\\":[\\\"string\\\"],\\\"referrers\\\":[\\\"string\\\"],\\\"countries\\\":[\\\"string\\\"],\\\"providers\\\":[\\\"string\\\"],\\\"users\\\":[\\\"string\\\"],\\\"tags\\\":[\\\"string\\\"]}\")\n    {\n        Headers =\n        {\n            ContentType = new MediaTypeHeaderValue(\"application/json\")\n        }\n    }\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/monitoring/ingest/bitrate/video/timeseries":{"get":{"summary":"Ingest video bitrate","description":"```\nhttps://metrics-api.nanostream.cloud/v2/monitoring/ingest/bitrate/video/timeseries\n```\n\nGet measurements of the video bitrate for the most recent completed\nminute. <br>  \n\nUsually the response includes four measurements. But depending\non the time of the API request it can be possible that fewer\nmeasurements are returned, because not all measurements were available\nat the time of the request.","tags":["Monitoring"],"parameters":[{"$ref":"#/components/parameters/streams50Restricted"},{"$ref":"#/components/parameters/countries"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"streamsWithoutData":{"type":"array","items":{"type":"string"}},"data":{"type":"array","description":"result set","items":{"type":"object","properties":{"streamname":{"type":"string"},"values":{"type":"array","items":{"type":"object","properties":{"timestamp":{"type":"integer","description":"The unix timestamp during the ingest process where\nthe stream had a specific video bitrate."},"timestampAsString":{"type":"string"},"kbits":{"type":"integer","description":"The amount of video data in KBits/s. (0 means\nthere was an active ingest source, but without video\ndata.)"}}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"streamname":"FoBar-SzB0r","values":[{"timestamp":1671840000,"timestampAsString":"2026-12-01T00:00:00Z","kbits":1140.92}]}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/monitoring/ingest/bitrate/video/timeseries?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/bitrate/video/timeseries?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/bitrate/video/timeseries?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/bitrate/video/timeseries?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/bitrate/video/timeseries\");\n\nreq.query({\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/monitoring/ingest/bitrate/video/timeseries');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'streams' => 'SOME_ARRAY_VALUE',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/monitoring/ingest/bitrate/video/timeseries?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/bitrate/video/timeseries\"\n\nquerystring = {\"streams\":\"SOME_ARRAY_VALUE\",\"countries\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/bitrate/video/timeseries?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/bitrate/video/timeseries?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/bitrate/video/timeseries?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/bitrate/video/timeseries?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/bitrate/video/timeseries?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/monitoring/ingest/bitrate/audio/timeseries":{"get":{"summary":"Ingest audio bitrate","description":"```\nhttps://metrics-api.nanostream.cloud/v2/monitoring/ingest/bitrate/audio/timeseries\n```\n\nGet measurements of the audio bitrate for the most recent completed\nminute. <br>  \n\nUsually the response includes four measurements. But depending\non the time of the API request it can be possible that fewer\nmeasurements are returned, because not all measurements were available\nat the time of the request.","tags":["Monitoring"],"parameters":[{"$ref":"#/components/parameters/streams50Restricted"},{"$ref":"#/components/parameters/countries"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"streamsWithoutData":{"type":"array","items":{"type":"string"}},"data":{"type":"array","description":"result set","items":{"type":"object","properties":{"streamname":{"type":"string"},"values":{"type":"array","items":{"type":"object","properties":{"timestamp":{"type":"integer","description":"The unix timestamp during the ingest process where\nthe stream had a specific audio bitrate."},"timestampAsString":{"type":"string"},"kbits":{"type":"integer","description":"The amount of audio data in KBits/s. (0 means\nthere was an active ingest source, but without audio\ndata.)"}}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"streamname":"FoBar-SzB0r","values":[{"timestamp":1671840000,"timestampAsString":"2026-12-01T00:00:00Z","kbits":140.92}]}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/monitoring/ingest/bitrate/audio/timeseries?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/bitrate/audio/timeseries?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/bitrate/audio/timeseries?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/bitrate/audio/timeseries?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/bitrate/audio/timeseries\");\n\nreq.query({\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/monitoring/ingest/bitrate/audio/timeseries');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'streams' => 'SOME_ARRAY_VALUE',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/monitoring/ingest/bitrate/audio/timeseries?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/bitrate/audio/timeseries\"\n\nquerystring = {\"streams\":\"SOME_ARRAY_VALUE\",\"countries\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/bitrate/audio/timeseries?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/bitrate/audio/timeseries?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/bitrate/audio/timeseries?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/bitrate/audio/timeseries?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/bitrate/audio/timeseries?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/monitoring/ingest/bitrate/timeseries":{"get":{"summary":"Ingest audio/video bitrate","description":"```\nhttps://metrics-api.nanostream.cloud/v2/monitoring/ingest/bitrate/timeseries\n```\n\nGet measurements of the audio/video bitrate for the most recent\ncompleted minute. <br>  \n        \nUsually the response includes four measurements. But\ndepending on the time of the API request it can be possible that fewer\nmeasurements are returned, because not all measurements were available\nat the time of the request.","tags":["Monitoring"],"parameters":[{"$ref":"#/components/parameters/streams50Restricted"},{"$ref":"#/components/parameters/countries"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"streamsWithoutData":{"type":"array","items":{"type":"string"}},"data":{"type":"array","description":"result set","items":{"type":"object","properties":{"streamname":{"type":"string"},"values":{"type":"array","items":{"type":"object","properties":{"timestamp":{"type":"integer","description":"The unix timestamp during the ingest process where\nthe stream had a specific audio/video bitrate."},"timestampAsString":{"type":"string"},"audio":{"type":"object","properties":{"kbits":{"type":"integer","description":"The amount of audio data in KBits/s. (0 means\nthere was an active ingest source, but without\naudio data.)"}}},"video":{"type":"object","properties":{"kbits":{"type":"integer","description":"The amount of video data in KBits/s. (0 means\nthere was an active ingest source, but without\nvideo data.)"}}}}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"streamname":"FoBar-SzB0r","values":[{"timestamp":1671840000,"timestampAsString":"2026-12-01T00:00:00Z","audio":{"kbits":140.08},"video":{"kbits":1123.93}}]}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/monitoring/ingest/bitrate/timeseries?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/bitrate/timeseries?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/bitrate/timeseries?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/bitrate/timeseries?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/bitrate/timeseries\");\n\nreq.query({\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/monitoring/ingest/bitrate/timeseries');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'streams' => 'SOME_ARRAY_VALUE',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/monitoring/ingest/bitrate/timeseries?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/bitrate/timeseries\"\n\nquerystring = {\"streams\":\"SOME_ARRAY_VALUE\",\"countries\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/bitrate/timeseries?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/bitrate/timeseries?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/bitrate/timeseries?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/bitrate/timeseries?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/bitrate/timeseries?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/monitoring/ingest/timeRatio/timeseries":{"get":{"summary":"Ingest stream time ratio","description":"```\nhttps://metrics-api.nanostream.cloud/v2/monitoring/ingest/timeRatio/timeseries\n```\n\nGet measurements of the stream time ratio for the most recent completed minute.  \n  \nThe stream time ratio represents the relation between the elapsed real time and the stream time within a window of 15 seconds. A constant ratio value of 1 would be ideal - but a small fluctuation is expected. A big fluctuation or deviation from the value 1 indicates issues on the ingest side, for instance caused by a limited bandwidth or high CPU load. The higher the deviation from the value 1, the higher the probability for an increased latency on the playback/viewer side.                ","tags":["Monitoring"],"parameters":[{"$ref":"#/components/parameters/streams50Restricted"},{"$ref":"#/components/parameters/countries"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"streamsWithoutData":{"type":"array","items":{"type":"string"}},"data":{"type":"array","description":"result set","items":{"type":"object","properties":{"streamname":{"type":"string"},"standardDeviation":{"type":"number"},"values":{"type":"array","items":{"type":"object","properties":{"timestamp":{"type":"integer","description":"The unix timestamp."},"timestampAsString":{"type":"string","description":"The timestamp as string."},"timeRatio":{"type":"number","description":"Stream time ratio."}}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"streamname":"FoBar-SzB0r","standardDeviation":0.1,"values":[{"timestamp":1671840000,"timestampAsString":"2026-12-01T00:00:00Z","timeRatio":0.99}]}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/monitoring/ingest/timeRatio/timeseries?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/timeRatio/timeseries?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/timeRatio/timeseries?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/timeRatio/timeseries?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/timeRatio/timeseries\");\n\nreq.query({\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/monitoring/ingest/timeRatio/timeseries');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'streams' => 'SOME_ARRAY_VALUE',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/monitoring/ingest/timeRatio/timeseries?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/timeRatio/timeseries\"\n\nquerystring = {\"streams\":\"SOME_ARRAY_VALUE\",\"countries\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/timeRatio/timeseries?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/timeRatio/timeseries?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/timeRatio/timeseries?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/timeRatio/timeseries?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/timeRatio/timeseries?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/monitoring/ingest/maxFrameDelay/timeseries":{"get":{"summary":"Ingest max frame delay","description":"```\nhttps://metrics-api.nanostream.cloud/v2/monitoring/ingest/maxFrameDelay/timeseries\n```\n\nGet measurements of the max frame delay in milliseconds for the most recent completed minute.  \n  \nThe max frame delay represents the latency in regard of frame buffering when a frame is received by the ingest server. A high frame delay indicates issues on the ingest side, for instance caused by a limited bandwidth or high CPU load. The higher the frame delay, the higher the latency on the playback/viewer side.        \n**Note:** The max frame delay is calculated by the ingest server based on the frequency of the received frames. The offset is crucial for a guarenteed smooth experience on playback side, minimizing buffering and video/audio desync.","tags":["Monitoring"],"parameters":[{"$ref":"#/components/parameters/streams50Restricted"},{"$ref":"#/components/parameters/countries"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"streamsWithoutData":{"type":"array","items":{"type":"string"}},"data":{"type":"array","description":"result set","items":{"type":"object","properties":{"streamname":{"type":"string"},"values":{"type":"array","items":{"type":"object","properties":{"timestamp":{"type":"integer","description":"The unix timestamp."},"timestampAsString":{"type":"string","description":"The timestamp as string."},"maxFrameDelay":{"type":"number","description":"The max frame delay in milliseconds."}}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"streamname":"FoBar-SzB0r","values":[{"timestamp":1671840000,"timestampAsString":"2026-12-01T00:00:00Z","maxFrameDelay":0.99}]}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/monitoring/ingest/maxFrameDelay/timeseries?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/maxFrameDelay/timeseries?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/maxFrameDelay/timeseries?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/maxFrameDelay/timeseries?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/maxFrameDelay/timeseries\");\n\nreq.query({\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/monitoring/ingest/maxFrameDelay/timeseries');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'streams' => 'SOME_ARRAY_VALUE',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/monitoring/ingest/maxFrameDelay/timeseries?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/maxFrameDelay/timeseries\"\n\nquerystring = {\"streams\":\"SOME_ARRAY_VALUE\",\"countries\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/maxFrameDelay/timeseries?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/maxFrameDelay/timeseries?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/maxFrameDelay/timeseries?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/maxFrameDelay/timeseries?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/maxFrameDelay/timeseries?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/monitoring/ingest/srt/timeseries":{"get":{"summary":"Ingest SRT metrics","description":"```\nhttps://metrics-api.nanostream.cloud/v2/monitoring/ingest/srt/timeseries\n```\n\nGet measurements of following SRT ingest metrics:\n\n- combined average audio/video bitrate in Kbits/s\n- average round trip time in milliseconds\n- number of lost packets, requested for retransmission\n- number of packets finally dropped and missing in stream\n\nfor the most recent completed minute. <br>","tags":["Monitoring"],"parameters":[{"$ref":"#/components/parameters/streams50Restricted"},{"$ref":"#/components/parameters/countries"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"streamsWithoutData":{"type":"array","items":{"type":"string"}},"data":{"type":"array","description":"result set","items":{"type":"object","properties":{"streamname":{"type":"string"},"values":{"type":"array","items":{"type":"object","properties":{"timestamp":{"type":"integer"},"timestampAsString":{"type":"string"},"bitrate":{"type":"object","properties":{"kbits":{"type":"integer","description":"The amount of combined video/audio data in Kbits/s. (0 means\nthere was an active ingest source, but without\nvideo/audio data.)"}}},"roundTripTime":{"type":"object","properties":{"milliseconds":{"type":"integer","description":"The average round trip time in milliseconds."}}},"packetsLost":{"type":"object","properties":{"count":{"type":"integer","description":"The number of lost packets, requested for retransmission."}}},"packetsDropped":{"type":"object","properties":{"count":{"type":"integer","description":"The number of packets finally dropped and missing in stream."}}}}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"streamname":"FoBar-SzB0r","values":[{"timestamp":1671840000,"timestampAsString":"2026-12-01T00:00:00Z","bitrate":{"kbits":140.08},"roundTripTime":{"milliseconds":24},"packetsLost":{"count":34},"packetsDropped":{"count":32}}]}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/monitoring/ingest/srt/timeseries?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/srt/timeseries?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/srt/timeseries?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/srt/timeseries?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/srt/timeseries\");\n\nreq.query({\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/monitoring/ingest/srt/timeseries');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'streams' => 'SOME_ARRAY_VALUE',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/monitoring/ingest/srt/timeseries?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/srt/timeseries\"\n\nquerystring = {\"streams\":\"SOME_ARRAY_VALUE\",\"countries\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/srt/timeseries?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/srt/timeseries?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/srt/timeseries?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/srt/timeseries?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/srt/timeseries?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/monitoring/ingest/rtmp/latestMetrics":{"get":{"summary":"Ingest latest RTMP metrics","description":"```\nhttps://metrics-api.nanostream.cloud/v2/monitoring/ingest/rtmp/latestMetrics\n```\n\nGet measurements of following RTMP metrics:\n\n- average audio/video bitrate in kbits/s\n- max frame delay in milliseconds\n- stream time ratio\n- elapsed time of the running stream in seconds\n\nfor the most recent data point. <br>","tags":["Monitoring"],"parameters":[{"$ref":"#/components/parameters/streamOneRestricted"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"object","properties":{"streamname":{"type":"string"},"timestampAsString":{"type":"string"},"timestamp":{"type":"integer"},"metrics":{"type":"object","properties":{"maxFrameDelay":{"type":"object","properties":{"milliseconds":{"type":"integer"}}},"streamTimeRatio":{"type":"object","properties":{"ratio":{"type":"number"}}},"elapsedTime":{"type":"object","properties":{"seconds":{"type":"integer"}}},"bitrate":{"type":"object","properties":{"audio":{"type":"object","properties":{"kbits":{"type":"integer"}}},"video":{"type":"object","properties":{"kbits":{"type":"integer"}}}}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":{"streamname":"FoBar-SzB0r","timestampAsString":"2026-01-01T00:00:00.000Z","timestamp":1640995200,"metrics":{"maxFrameDelay":{"milliseconds":342},"streamTimeRatio":{"ratio":1},"elapsedTime":{"seconds":5383},"bitrate":{"audio":{"kbits":330},"video":{"kbits":2455}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/monitoring/ingest/rtmp/latestMetrics?streams=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/rtmp/latestMetrics?streams=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/rtmp/latestMetrics?streams=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/rtmp/latestMetrics?streams=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/rtmp/latestMetrics\");\n\nreq.query({\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/monitoring/ingest/rtmp/latestMetrics');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'streams' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/monitoring/ingest/rtmp/latestMetrics?streams=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/rtmp/latestMetrics\"\n\nquerystring = {\"streams\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/rtmp/latestMetrics?streams=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/rtmp/latestMetrics?streams=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/rtmp/latestMetrics?streams=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/rtmp/latestMetrics?streams=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/monitoring/ingest/rtmp/latestMetrics?streams=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/monitoring/playout/bufferingRatio":{"get":{"summary":"Playout buffering play ratio","description":"```\nhttps://metrics-api.nanostream.cloud/v2/monitoring/playout/bufferingRatio\n```\n\nGet the average buffering play ratio of the second last complete minute for the provided streams. <br>  \n        \n**Important**: The most recent value is only available for the second last complete minute, because the buffering play ratio is calculated with a delay of about 60 seconds after a minute has passed. To get the most recent value we recommend that you do the following (pseudo code): <br><br>\n\n```\nimport moment from 'moment';\n\nvar timestamp = moment.utc().startOf('minute');  // floor down to start of minute\nvar tsStart = timestamp.clone().subtract(120, 'seconds').unix();\nvar tsEnd = timestamp.clone().subtract(60, 'seconds').unix();\n```  \n  \n**Note**: To obtain data on this route the H5Live player must be configured to send metrics.        ","tags":["Monitoring"],"parameters":[{"$ref":"#/components/parameters/streams50Restricted"},{"$ref":"#/components/parameters/countries"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"object","properties":{"timestamp":{"type":"integer","description":"The unix timestamp of the given time interval."},"timestampAsString":{"type":"string"},"bufferingRatio":{"type":"object","properties":{"percent":{"type":"number","description":"The ratio in percent of buffering time and play time as an average of all active playbacks withing the given time."}}},"bufferingEvents":{"type":"object","properties":{"count":{"type":"integer","description":"The count of buffering events within the given time range."}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":{"timestamp":1671840000,"timestampAsString":"2026-01-01T00:00:00Z","bufferingRatio":{"percent":0.99},"bufferingEvents":{"count":34}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/monitoring/playout/bufferingRatio?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/monitoring/playout/bufferingRatio?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/monitoring/playout/bufferingRatio?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/monitoring/playout/bufferingRatio?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/monitoring/playout/bufferingRatio\");\n\nreq.query({\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/monitoring/playout/bufferingRatio');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'streams' => 'SOME_ARRAY_VALUE',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/monitoring/playout/bufferingRatio?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/monitoring/playout/bufferingRatio\"\n\nquerystring = {\"streams\":\"SOME_ARRAY_VALUE\",\"countries\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/monitoring/playout/bufferingRatio?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/monitoring/playout/bufferingRatio?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/monitoring/playout/bufferingRatio?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/monitoring/playout/bufferingRatio?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/monitoring/playout/bufferingRatio?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/monitoring/playout/startuptime":{"get":{"summary":"Playout startup time","description":"```\nhttps://metrics-api.nanostream.cloud/v2/monitoring/playout/startuptime\n```\n\nGet statistics of the player startup time from initialization until the playback is starting for the most recent completed minute.  \n  \n**Note**: To obtain data on this route the H5Live player must be configured to send metrics.","tags":["Monitoring"],"parameters":[{"$ref":"#/components/parameters/streams50Restricted"},{"$ref":"#/components/parameters/countries"},{"$ref":"#/components/parameters/events"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"streamsWithoutData":{"type":"array","items":{"type":"string"}},"data":{"type":"array","description":"result set","items":{"type":"object","properties":{"streamname":{"type":"string"},"timestamp":{"type":"integer"},"timestampAsString":{"type":"string"},"events":{"type":"object","properties":{"count":{"type":"integer","description":"Count of playback start events."}}},"average":{"type":"object","properties":{"seconds":{"type":"number","description":"The average startup time of all playback within the given time range."}}},"median":{"type":"object","properties":{"seconds":{"type":"number","description":"The mean startup time of all playback within the given time range."}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"streamname":"FoBar-SzB0r","timestamp":1671840000,"timestampAsString":"2026-01-01T00:00:00Z","events":{"count":22},"average":{"seconds":2.8},"median":{"seconds":2.6}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/monitoring/playout/startuptime?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/monitoring/playout/startuptime?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/monitoring/playout/startuptime?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/monitoring/playout/startuptime?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/monitoring/playout/startuptime\");\n\nreq.query({\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"events\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/monitoring/playout/startuptime');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'streams' => 'SOME_ARRAY_VALUE',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'events' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/monitoring/playout/startuptime?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/monitoring/playout/startuptime\"\n\nquerystring = {\"streams\":\"SOME_ARRAY_VALUE\",\"countries\":\"SOME_ARRAY_VALUE\",\"events\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/monitoring/playout/startuptime?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/monitoring/playout/startuptime?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/monitoring/playout/startuptime?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/monitoring/playout/startuptime?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/monitoring/playout/startuptime?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/monitoring/playout/errorcodes":{"get":{"summary":"Playout error codes","description":"```\nhttps://metrics-api.nanostream.cloud/v2/monitoring/playout/errorcodes\n```\n\nGet count and importance of the occurred error codes for each given stream in the most recent completed minute.  \n  \n**Note**: To obtain data on this route the H5Live player must be configured to send metrics.","tags":["Monitoring"],"parameters":[{"$ref":"#/components/parameters/streams50Restricted"},{"$ref":"#/components/parameters/countries"},{"$ref":"#/components/parameters/events"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"streamsWithoutData":{"type":"array","items":{"type":"string"}},"data":{"type":"array","description":"result set","items":{"type":"object","properties":{"streamname":{"type":"string"},"timestamp":{"type":"integer"},"timestampAsString":{"type":"string"},"errors":{"type":"array","description":"error code breakdown","items":{"type":"object","properties":{"errorCode":{"type":"integer"},"category":{"type":"string","description":"categorizes how critical the error code is ('expected' means it is rather a status than an error)"},"count":{"type":"integer"}}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"streamname":"FoBar-SzB0r","timestamp":1671840000,"timestampAsString":"2026-12-01T00:00:00Z","errors":[{"errorCode":2001,"category":"critical","count":1}]}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/monitoring/playout/errorcodes?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/monitoring/playout/errorcodes?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/monitoring/playout/errorcodes?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/monitoring/playout/errorcodes?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/monitoring/playout/errorcodes\");\n\nreq.query({\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"events\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/monitoring/playout/errorcodes');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'streams' => 'SOME_ARRAY_VALUE',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'events' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/monitoring/playout/errorcodes?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/monitoring/playout/errorcodes\"\n\nquerystring = {\"streams\":\"SOME_ARRAY_VALUE\",\"countries\":\"SOME_ARRAY_VALUE\",\"events\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/monitoring/playout/errorcodes?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/monitoring/playout/errorcodes?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/monitoring/playout/errorcodes?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/monitoring/playout/errorcodes?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/monitoring/playout/errorcodes?streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/alerting/ingest":{"get":{"summary":"Ingest stream alerts/advices","description":"```\nhttps://metrics-api.nanostream.cloud/v2/alerting/ingest\n```\n\nReturns all detected alerts and advices (the terms 'advices' and 'alerts' are generally referred to as 'notifications') for all live ingest streams in the last 5 minutes with a delay of 4 minutes to the current minute.\n\nCurrently implemented alert types, identified by 'type.name' in each alert:\n- `duplicatedIngest` - simultaneously running ingests for the same stream name, distinguished by whether they differ in infrastructure, location or IP (codes 24100 - 24103)\n- `continuousRestarts` - the stream starts and stops continuously in the last 5 minutes, optionally combined with poor performance (codes 22000, 22001)\n- `inactiveIngest` - the stream is connected but does not send data, or mixes inactive and active connections (codes 22010, 22011)\n- `streamTimeRatio` - poor/not optimal ingest quality detected via stream time ratio metric (codes 23001, 23002; see 'Monitoring' -> 'Stream time ratio')\n- `maxFrameDelay` - persistent frame delay or repeated stalls detected on the ingest (codes 23011 - 23013)\n\nCurrently implemented advice types:\n- `abrRecommended` - recommendation to use ABR (adaptive bitrate) for non ABR streams with high bitrate (code 29001)","tags":["Alerting"],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"timestamp":{"type":"integer"},"timestampAsString":{"type":"string"},"alertDetectionIntervalInMinutes":{"type":"integer","description":"The value refers to the last minutes up to the specified timestamp."},"data":{"type":"object","properties":{"statistic":{"type":"object","properties":{"streamsOnline":{"type":"number"},"streamsWithNotifications":{"type":"number"},"streamsWithAlerts":{"type":"number"},"streamsWithAdvices":{"type":"number"},"alerts":{"type":"number"},"criticalAlerts":{"type":"number"},"moderateAlerts":{"type":"number"},"minorAlerts":{"type":"number"},"advices":{"type":"number"}}},"notifications":{"type":"array","items":{"type":"object","properties":{"streamname":{"type":"string"},"alerts":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"message":{"type":"string"},"code":{"type":"number"},"severity":{"type":"string","enum":["critical","moderate","minor"]},"type":{"type":"object","properties":{"name":{"type":"string"},"label":{"type":"string"}}},"howToFix":{"type":"array","description":"Currently populated for `duplicatedIngest` alerts only.","items":{"type":"string"}},"causes":{"type":"array","items":{"type":"string"}},"id":{"type":"string","description":"The ID of the alert"},"firstDetection":{"type":"string","description":"The timestamp of the first detection of the alert"},"elapsedTime":{"type":"number","description":"The time elapsed in seconds since the first detection of the alert"},"highestStreamElapsedTime":{"type":"number","description":"The highest elapsed time of the stream in seconds found in the last 5 minutes.\nThe value gives an indication of how long the stream was running when the alert was detected."},"isAudioStream":{"type":"boolean","description":"Only returned for maximum frame delay alerts. Indicates that the audio track was\nevaluated instead of the video track."}}}},"advices":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"message":{"type":"string"},"code":{"type":"number"},"type":{"type":"object","properties":{"name":{"type":"string"},"label":{"type":"string"}}},"id":{"type":"string","description":"The ID of the advice"},"firstDetection":{"type":"string","description":"The timestamp of the first detection of the advice"},"elapsedTime":{"type":"number","description":"The time elapsed in seconds since the first detection of the advice"},"highestStreamElapsedTime":{"type":"number","description":"The highest elapsed time of the stream in seconds found in the last 5 minutes.\nThe value gives an indication of how long the stream was running when the advice was detected."}}}},"connectionsDetails":{"type":"array","items":{"type":"object","properties":{"connectionId":{"type":"string"},"provider":{"type":"string"},"city":{"type":"string"},"countryName":{"type":"string"},"countryCode":{"type":"string"},"height":{"type":"string"},"width":{"type":"string"},"ip":{"type":"string"},"server":{"type":"string"}}}}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","timestamp":1788782280,"timestampAsString":"2026-09-07T11:58:00Z","alertDetectionIntervalInMinutes":5,"data":{"statistic":{"streamsOnline":306,"streamsWithNotifications":3,"streamsWithAlerts":3,"streamsWithAdvices":1,"alerts":3,"criticalAlerts":3,"moderateAlerts":0,"minorAlerts":0,"advices":1},"notifications":[{"streamname":"FoBar-SzB0r","connectionsDetails":[{"connectionId":"362377722","provider":"FooBar","city":"Berlin","countryName":"Germany","countryCode":"DE","height":"240","width":"320","ip":"138.133.222.200","server":"hyx-dde-us-de-de7-01"},{"connectionId":"362377723","provider":"FooBar","city":"Mumbai","countryName":"India","countryCode":"IN","height":"240","width":"320","ip":"138.133.222.201","server":"hyx-dde-us-de-de7-02"}],"alerts":[{"name":"DUPLICATED_INGEST_DIFFERENT_LOCATIONS","message":"Duplicated ingests have been found at different locations.","severity":"critical","type":{"name":"duplicatedIngest","label":"Duplicated ingests"},"code":24102,"id":"347324872847","firstDetection":"2026-09-06T22:28:00Z","elapsedTime":48600,"highestStreamElapsedTime":13797082,"howToFix":["1. This alert means there are more than 1 encoder instance publishing using the same stream name at the same time.","2. Re-check your workflow to ensure that only 1 ingestion takes place for the indicated stream name."]}],"advices":[]},{"streamname":"FoBar-SeBws","connectionsDetails":[{"connectionId":"362377724","provider":"FooBar","city":"Berlin","countryName":"Germany","countryCode":"DE","height":"720","width":"1280","ip":"138.133.222.202","server":"hyx-dde-us-de-de7-03"},{"connectionId":"362377725","provider":"FooBar","city":"Mumbai","countryName":"India","countryCode":"IN","height":"720","width":"1280","ip":"138.133.222.203","server":"hyx-dde-us-de-de7-04"}],"alerts":[{"name":"DUPLICATED_INGEST_DIFFERENT_LOCATIONS","message":"Duplicated ingests have been found at different locations.","severity":"critical","type":{"name":"duplicatedIngest","label":"Duplicated ingests"},"code":24102,"id":"347324872848","firstDetection":"2026-09-07T10:48:00Z","elapsedTime":4200,"highestStreamElapsedTime":18840,"howToFix":["1. This alert means there are more than 1 encoder instance publishing using the same stream name at the same time.","2. Re-check your workflow to ensure that only 1 ingestion takes place for the indicated stream name."]}],"advices":[]},{"streamname":"FoBar-Tz9kL","connectionsDetails":[{"connectionId":"362377726","provider":"FooBar","city":"Berlin","countryName":"Germany","countryCode":"DE","height":"720","width":"1280","ip":"138.133.222.204","server":"hyx-dde-us-de-de7-05"},{"connectionId":"362377727","provider":"FooBar","city":"Mumbai","countryName":"India","countryCode":"IN","height":"720","width":"1280","ip":"138.133.222.205","server":"hyx-dde-us-de-de7-06"}],"alerts":[{"name":"DUPLICATED_INGEST_DIFFERENT_LOCATIONS","message":"Duplicated ingests have been found at different locations.","severity":"critical","type":{"name":"duplicatedIngest","label":"Duplicated ingests"},"code":24102,"id":"347324872849","firstDetection":"2026-09-06T21:30:00Z","elapsedTime":52080,"highestStreamElapsedTime":33015,"howToFix":["1. This alert means there are more than 1 encoder instance publishing using the same stream name at the same time.","2. Re-check your workflow to ensure that only 1 ingestion takes place for the indicated stream name."]}],"advices":[{"name":"ABR_RECOMMENDED","message":"The ingest stream has a high bitrate. Viewers with poor connection might not be able to play the stream smoothly. Consider to use adaptive bitrate streams.","type":{"name":"abrRecommended","label":"Recommendation for ABR"},"code":29001,"id":"347324872846","firstDetection":"2026-09-07T11:48:00Z","elapsedTime":600,"highestStreamElapsedTime":12420}]}]}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url https://metrics-api.nanostream.cloud/v2/alerting/ingest \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/alerting/ingest\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/alerting/ingest\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/alerting/ingest\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/alerting/ingest\");\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/alerting/ingest');\n$request->setRequestMethod('GET');\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/alerting/ingest\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/alerting/ingest\"\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/alerting/ingest\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/alerting/ingest\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/alerting/ingest\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/alerting/ingest\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/alerting/ingest\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/alerting/ingest/custom":{"post":{"summary":"Custom ingest stream alerts/advices","description":"```\nhttps://metrics-api.nanostream.cloud/v2/alerting/ingest/custom\n```\n\nReturns all detected alerts and advices (the terms 'advices' and 'alerts' are generally referred to as 'notifications') for all live ingest streams in the last 5 minutes with a delay of 4 minutes to the current minute. Additionally, through this API route, it is possible to pass ingest streams that should either be excluded from detection or define ingest streams for which an alert should be triggered if they are detected as offline.\n\nCurrently implemented alert types, identified by 'type.name' in each alert:\n- `duplicatedIngest` - simultaneously running ingests for the same stream name, distinguished by whether they differ in infrastructure, location or IP (codes 24100 - 24103)\n- `continuousRestarts` - the stream starts and stops continuously in the last 5 minutes, optionally combined with poor performance (codes 22000, 22001)\n- `inactiveIngest` - the stream is connected but does not send data, or mixes inactive and active connections (codes 22010, 22011)\n- `streamTimeRatio` - poor/not optimal ingest quality detected via stream time ratio metric (codes 23001, 23002; see 'Monitoring' -> 'Stream time ratio')\n- `maxFrameDelay` - persistent frame delay or repeated stalls detected on the ingest (codes 23011 - 23013)\n- `streamIsOffline` - stream is unexpectedly offline (streams for which the online status should be monitored need to be listed under the 'onlineStreams' in the request body; code 21001)\n\nCurrently implemented advice types:\n- `abrRecommended` - recommendation to use ABR (adaptive bitrate) for non ABR streams with high bitrate (code 29001)","tags":["Alerting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["excludedStreams","onlineStreams"],"properties":{"excludedStreams":{"type":"array","items":{"type":"string","example":"FoBar-SzB0r"}},"onlineStreams":{"type":"array","items":{"type":"string","example":"FoBar-SeBws"}}}}}}},"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"timestamp":{"type":"integer"},"timestampAsString":{"type":"string"},"alertDetectionIntervalInMinutes":{"type":"integer","description":"The value refers to the last minutes up to the specified timestamp."},"data":{"type":"object","properties":{"statistic":{"type":"object","properties":{"streamsOnline":{"type":"number"},"streamsWithNotifications":{"type":"number"},"streamsWithAlerts":{"type":"number"},"streamsWithAdvices":{"type":"number"},"alerts":{"type":"number"},"criticalAlerts":{"type":"number"},"moderateAlerts":{"type":"number"},"minorAlerts":{"type":"number"},"advices":{"type":"number"}}},"notifications":{"type":"array","items":{"type":"object","properties":{"streamname":{"type":"string"},"alerts":{"type":"array","description":"Alerts of the `streamIsOffline` type are reported for streams listed under 'onlineStreams'\nthat are not ingesting. Since there is no ingest to measure, they carry only 'name',\n'message', 'severity', 'type' and 'code' - 'id', 'firstDetection', 'elapsedTime' and\n'highestStreamElapsedTime' are omitted, and the stream has no 'connectionsDetails'.\nThese alerts are added to 'alerts', 'streamsWithAlerts' and 'streamsWithNotifications',\nbut not to the per severity counters, so 'criticalAlerts' + 'moderateAlerts' +\n'minorAlerts' can be lower than 'alerts' in a response that contains them.","items":{"type":"object","properties":{"name":{"type":"string"},"message":{"type":"string"},"code":{"type":"number"},"severity":{"type":"string","enum":["critical","moderate","minor"]},"type":{"type":"object","properties":{"name":{"type":"string"},"label":{"type":"string"}}},"howToFix":{"type":"array","description":"Currently populated for `duplicatedIngest` alerts only.","items":{"type":"string"}},"causes":{"type":"array","items":{"type":"string"}},"id":{"type":"string","description":"The ID of the alert"},"firstDetection":{"type":"string","description":"The timestamp of the first detection of the alert"},"elapsedTime":{"type":"number","description":"The time elapsed in seconds since the first detection of the alert"},"highestStreamElapsedTime":{"type":"number","description":"The highest elapsed time of the stream in seconds found in the last 5 minutes.\nThe value gives an indication of how long the stream was running when the alert was detected."},"isAudioStream":{"type":"boolean","description":"Only returned for maximum frame delay alerts. Indicates that the audio track was\nevaluated instead of the video track."}}}},"advices":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"message":{"type":"string"},"code":{"type":"number"},"type":{"type":"object","properties":{"name":{"type":"string"},"label":{"type":"string"}}},"id":{"type":"string","description":"The ID of the advice"},"firstDetection":{"type":"string","description":"The timestamp of the first detection of the advice"},"elapsedTime":{"type":"number","description":"The time elapsed in seconds since the first detection of the advice"},"highestStreamElapsedTime":{"type":"number","description":"The highest elapsed time of the stream in seconds found in the last 5 minutes.\nThe value gives an indication of how long the stream was running when the advice was detected."}}}},"connectionsDetails":{"type":"array","items":{"type":"object","properties":{"connectionId":{"type":"string"},"provider":{"type":"string"},"city":{"type":"string"},"countryName":{"type":"string"},"countryCode":{"type":"string"},"height":{"type":"string"},"width":{"type":"string"},"ip":{"type":"string"},"server":{"type":"string"}}}}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","timestamp":1788782280,"timestampAsString":"2026-09-07T11:58:00Z","alertDetectionIntervalInMinutes":5,"data":{"statistic":{"streamsOnline":306,"streamsWithNotifications":2,"streamsWithAlerts":2,"streamsWithAdvices":1,"alerts":2,"criticalAlerts":1,"moderateAlerts":0,"minorAlerts":0,"advices":1},"notifications":[{"streamname":"FoBar-Kd3mP","connectionsDetails":[{"connectionId":"362377722","provider":"FooBar","city":"Berlin","countryName":"Germany","countryCode":"DE","height":"720","width":"1280","ip":"138.133.222.200","server":"hyx-dde-us-de-de7-01"}],"alerts":[{"name":"CONTINUOUS_RESTARTS","message":"The ingest stream starts and stops continuously","severity":"critical","type":{"name":"continuousRestarts","label":"Continuous restarts"},"code":22000,"id":"347324872847","firstDetection":"2026-09-07T11:23:00Z","elapsedTime":2100,"highestStreamElapsedTime":240}],"advices":[{"name":"ABR_RECOMMENDED","message":"The ingest stream has a high bitrate. Viewers with poor connection might not be able to play the stream smoothly. Consider to use adaptive bitrate streams.","type":{"name":"abrRecommended","label":"Recommendation for ABR"},"code":29001,"id":"347324872846","firstDetection":"2026-09-07T11:48:00Z","elapsedTime":600,"highestStreamElapsedTime":240}]},{"streamname":"FoBar-SeBws","alerts":[{"name":"STREAM_OFFLINE","message":"The ingest streaming is offline, but is expected to ingest.","severity":"critical","type":{"name":"streamIsOffline","label":"Stream is offline"},"code":21001}],"advices":[]}]}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request POST \\\n  --url https://metrics-api.nanostream.cloud/v2/alerting/ingest/custom \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE' \\\n  --header 'content-type: application/json' \\\n  --data '{\"excludedStreams\":[\"FoBar-SzB0r\"],\"onlineStreams\":[\"FoBar-SeBws\"]}'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"strings\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/alerting/ingest/custom\"\n\n\tpayload := strings.NewReader(\"{\\\"excludedStreams\\\":[\\\"FoBar-SzB0r\\\"],\\\"onlineStreams\\\":[\\\"FoBar-SeBws\\\"]}\")\n\n\treq, _ := http.NewRequest(\"POST\", url, payload)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.post(\"https://metrics-api.nanostream.cloud/v2/alerting/ingest/custom\")\n  .header(\"content-type\", \"application/json\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .body(\"{\\\"excludedStreams\\\":[\\\"FoBar-SzB0r\\\"],\\\"onlineStreams\\\":[\\\"FoBar-SeBws\\\"]}\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = JSON.stringify({\n  \"excludedStreams\": [\n    \"FoBar-SzB0r\"\n  ],\n  \"onlineStreams\": [\n    \"FoBar-SeBws\"\n  ]\n});\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"POST\", \"https://metrics-api.nanostream.cloud/v2/alerting/ingest/custom\");\nxhr.setRequestHeader(\"content-type\", \"application/json\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"POST\", \"https://metrics-api.nanostream.cloud/v2/alerting/ingest/custom\");\n\nreq.headers({\n  \"content-type\": \"application/json\",\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.type(\"json\");\nreq.send({\n  \"excludedStreams\": [\n    \"FoBar-SzB0r\"\n  ],\n  \"onlineStreams\": [\n    \"FoBar-SeBws\"\n  ]\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$body = new http\\Message\\Body;\n$body->append('{\"excludedStreams\":[\"FoBar-SzB0r\"],\"onlineStreams\":[\"FoBar-SeBws\"]}');\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/alerting/ingest/custom');\n$request->setRequestMethod('POST');\n$request->setBody($body);\n\n$request->setHeaders([\n  'content-type' => 'application/json',\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\npayload = \"{\\\"excludedStreams\\\":[\\\"FoBar-SzB0r\\\"],\\\"onlineStreams\\\":[\\\"FoBar-SeBws\\\"]}\"\n\nheaders = {\n    'content-type': \"application/json\",\n    'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\"\n    }\n\nconn.request(\"POST\", \"/v2/alerting/ingest/custom\", payload, headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/alerting/ingest/custom\"\n\npayload = {\n    \"excludedStreams\": [\"FoBar-SzB0r\"],\n    \"onlineStreams\": [\"FoBar-SeBws\"]\n}\nheaders = {\n    \"content-type\": \"application/json\",\n    \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n}\n\nresponse = requests.request(\"POST\", url, json=payload, headers=headers)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/alerting/ingest/custom\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\nrequest.body = \"{\\\"excludedStreams\\\":[\\\"FoBar-SzB0r\\\"],\\\"onlineStreams\\\":[\\\"FoBar-SeBws\\\"]}\"\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\n  \"content-type\": \"application/json\",\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n]\nlet parameters = [\n  \"excludedStreams\": [\"FoBar-SzB0r\"],\n  \"onlineStreams\": [\"FoBar-SeBws\"]\n] as [String : Any]\n\nlet postData = JSONSerialization.data(withJSONObject: parameters, options: [])\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/alerting/ingest/custom\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"POST\"\nrequest.allHTTPHeaderFields = headers\nrequest.httpBody = postData as Data\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/alerting/ingest/custom\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"content-type: application/json\");\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\ncurl_easy_setopt(hnd, CURLOPT_POSTFIELDS, \"{\\\"excludedStreams\\\":[\\\"FoBar-SzB0r\\\"],\\\"onlineStreams\\\":[\\\"FoBar-SeBws\\\"]}\");\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/alerting/ingest/custom\");\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nrequest.AddParameter(\"application/json\", \"{\\\"excludedStreams\\\":[\\\"FoBar-SzB0r\\\"],\\\"onlineStreams\\\":[\\\"FoBar-SeBws\\\"]}\", ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Post,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/alerting/ingest/custom\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n    Content = new StringContent(\"{\\\"excludedStreams\\\":[\\\"FoBar-SzB0r\\\"],\\\"onlineStreams\\\":[\\\"FoBar-SeBws\\\"]}\")\n    {\n        Headers =\n        {\n            ContentType = new MediaTypeHeaderValue(\"application/json\")\n        }\n    }\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/viewers/concurrent/timeseries":{"get":{"summary":"Concurrent viewer","description":"```\nhttps://metrics-api.nanostream.cloud/v2/viewers/concurrent/timeseries\n```\n\nGet a time series of maximum concurrent viewers (optional filtered by stream names).  \n\nTo get more details about the metric 'Maximum concurrent viewers' see [Analytics Documentation](https://docs.nanocosmos.net/docs/cloud/analytics)  \n\n**Important**: The most recent value is only available for the second last complete minute, because the concurrent viewer count is calculated with a delay of about 30 seconds after a minute has passed. To get the most recent value we recommend that you do the following (pseudo code): <br><br>\n\n```\nimport moment from 'moment';\n\nvar timestamp = moment.utc().startOf('minute');  // floor down to start of minute\nvar tsStart = timestamp.clone().subtract(120, 'seconds').unix();\nvar tsEnd = timestamp.clone().subtract(60, 'seconds').unix();\n```","tags":["Viewer metrics"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"name":"interval","in":"query","explode":true,"required":true,"description":"Calender time interval. E.g. from&#58; '2026-01-14T16:59' | to&#58; '2026-01-14T17:01' | interval&#58; 'hour' would return two buckets for hour 16 and 17 with their max. concurrent viewers value. To get that values the whole data is split up into the two hour buckets and the max. concurrent viewers is determined for each.","schema":{"type":"string","enum":["minute","hour","day","week"]}},{"$ref":"#/components/parameters/streamsDefault"},{"name":"countries","in":"query","explode":true,"required":false,"description":"You can enter multiple countries (works like OR filter). Get available countries via API route 'Available countries' located in the folder 'Filtering'. **Filtering for countries for this route is supported only for time ranges starting from June 16, 2026.**","schema":{"type":"array","items":{"type":"string","example":"DE"}}},{"$ref":"#/components/parameters/tags"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","description":"result set","items":{"type":"object","properties":{"timestamp":{"type":"number"},"timestampAsString":{"type":"string"},"count":{"type":"integer"}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"timestamp":1671840000,"timestampAsString":"2026-12-01T00:00:00Z","count":36363}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/viewers/concurrent/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/viewers/concurrent/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/viewers/concurrent/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/viewers/concurrent/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/viewers/concurrent/timeseries\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"interval\": \"SOME_STRING_VALUE\",\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"tags\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/viewers/concurrent/timeseries');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'interval' => 'SOME_STRING_VALUE',\n  'streams' => 'SOME_ARRAY_VALUE',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'tags' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/viewers/concurrent/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/viewers/concurrent/timeseries\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"interval\":\"SOME_STRING_VALUE\",\"streams\":\"SOME_ARRAY_VALUE\",\"countries\":\"SOME_ARRAY_VALUE\",\"tags\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/viewers/concurrent/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/viewers/concurrent/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/viewers/concurrent/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/viewers/concurrent/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/viewers/concurrent/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/playback/start/success/ratio/timeseries":{"get":{"summary":"Ratio","description":"```\nhttps://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/timeseries\n```\n\nGet a time series of the playback start success ratio for all playbacks. Please note that this data is delayed by 4-5 minutes, so data for the current minute is not yet available.\n\n**How is the playback start success ratio defined:**\n\nDuring the start of a playback, it can happen that, for example, due to a poor connection of the viewer, not enough data can be loaded. After a short time, the player detects the insufficient data throughput and terminates the playback with an error. Other causes can also include: \n- wrong configuration of the player\n- stream to be connected is no longer being ingested\n- with active ABR: configured initial ABR profile demands a higher data throughput than what the viewer has available\n- further reasons for errors ...\n\nThe playback start success ratio is determined from two values:\n\nValue 1: All playbacks that terminate with an error within the first 10 seconds after the initialization of playback. This does not include terminations after pausing and subsequent restart a playback.\nValue 2: All playbacks, regardless of whether they terminate with an error or not.\n\nThe successful playback starts (Value 2 -Value 1) is compared to all playback starts, and the ratio is expressed as a percentage,<br>so the **playback start success ratio** is calculated as \n`100 * (Value2 - Value1) / Value2`\n\n**Note**:\n- **Important:** Due to the delay of data collection, do not expect to receive data for the last 4-5 minutes of the current minute.\n- to obtain data on this route the H5Live player must be configured to send metrics\n- the returned start errors cannot be compared with errors that can be queried, for example, via `/v2/monitoring/playout/errorcodes`, since just errors on the playback start are considered which means several filters are applied","tags":["Playback start success"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/interval"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"timestamp":{"type":"integer","description":"The unix timestamp of the given time interval"},"timestampAsString":{"type":"string"},"error":{"type":"object","properties":{"count":{"type":"number","description":"The number of playbacks that terminate with an error within the first 10 seconds after the initialization of playback"}}},"playbackStart":{"type":"object","properties":{"count":{"type":"number","description":"The number of all playbacks, regardless of whether they terminate with an error or not"}}},"playbackStartProportion":{"type":"object","properties":{"percent":{"type":"number","description":"The proportion of the number of playback starts from this bucket in relation to the sum of playback starts from all buckets in the array, expressed as a percentage."}}},"startSuccessRatio":{"type":"object","properties":{"percent":{"type":"number","description":"The ratio in percent of playback start success -> ((playback start count - error count) * 100) / playback start count"}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"timestamp":1707091200,"timestampAsString":"2026-02-05T00:00:00.000Z","error":{"count":34},"playbackStart":{"count":1275},"playbackStartProportion":{"percent":1.383},"startSuccessRatio":{"percent":97.3}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/timeseries\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"interval\": \"SOME_STRING_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/timeseries');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'interval' => 'SOME_STRING_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/playback/start/success/ratio/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/timeseries\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"interval\":\"SOME_STRING_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/playback/start/success/ratio/streams/timeseries":{"get":{"summary":"Ratio per stream","description":"```\nhttps://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/streams/timeseries\n```\n\nGet a time series of the playback start success ratio for all playbacks for each given stream. Please note that this data is delayed by 4-5 minutes, so data for the current minute is not yet available.\n\n**How is the playback start success ratio defined:**\n\nDuring the start of a playback, it can happen that, for example, due to a poor connection of the viewer, not enough data can be loaded. After a short time, the player detects the insufficient data throughput and terminates the playback with an error. Other causes can also include: \n- wrong configuration of the player\n- stream to be connected is no longer being ingested\n- with active ABR: configured initial ABR profile demands a higher data throughput than what the viewer has available\n- further reasons for errors ...\n\nThe playback start success ratio is determined from two values:\n\nValue 1: All playbacks that terminate with an error within the first 10 seconds after the initialization of playback. This does not include terminations after pausing and subsequent restart a playback.\nValue 2: All playbacks, regardless of whether they terminate with an error or not.\n\nThe successful playback starts (Value 2 -Value 1) is compared to all playback starts, and the ratio is expressed as a percentage,<br>so the **playback start success ratio** is calculated as \n`100 * (Value2 - Value1) / Value2`\n\n**Note**:\n- **Important:** Due to the delay of data collection, do not expect to receive data for the last 4-5 minutes of the current minute.\n- to obtain data on this route the H5Live player must be configured to send metrics\n- the returned start errors cannot be compared with errors that can be queried, for example, via `/v2/monitoring/playout/errorcodes`, since just errors on the playback start are considered which means several filters are applied","tags":["Playback start success"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/interval"},{"$ref":"#/components/parameters/streamFiveRestricted"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"stream":{"type":"string","description":"The name of the stream"},"values":{"type":"array","items":{"type":"object","properties":{"timestamp":{"type":"integer","description":"The unix timestamp of the given time interval"},"timestampAsString":{"type":"string"},"error":{"type":"object","properties":{"count":{"type":"number","description":"The number of playbacks that terminate with an error within the first 10 seconds after the initialization of playback"}}},"playbackStart":{"type":"object","properties":{"count":{"type":"number","description":"The number of all playbacks, regardless of whether they terminate with an error or not"}}},"playbackStartProportion":{"type":"object","properties":{"percent":{"type":"number","description":"The proportion of the number of playback starts from this bucket in relation to the sum of playback starts from all buckets in the array, expressed as a percentage."}}},"startSuccessRatio":{"type":"object","properties":{"percent":{"type":"number","description":"The ratio in percent of playback start success -> ((playback start count - error count) * 100) / playback start count"}}}}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"stream":"FoBar-SzB0r","values":[{"timestamp":1707091200,"timestampAsString":"2026-02-05T00:00:00.000Z","error":{"count":34},"playbackStart":{"count":1275},"playbackStartProportion":{"percent":1.383},"startSuccessRatio":{"percent":97.3}}]}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/streams/timeseries\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"interval\": \"SOME_STRING_VALUE\",\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/streams/timeseries');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'interval' => 'SOME_STRING_VALUE',\n  'streams' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/playback/start/success/ratio/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/streams/timeseries\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"interval\":\"SOME_STRING_VALUE\",\"streams\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/streams/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/playback/start/success/ratio/tags/timeseries":{"get":{"summary":"Ratio per tag","description":"```\nhttps://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/tags/timeseries\n```\n\nGet a time series of the playback start success ratio for all playbacks for each given tag. Please note that this data is delayed by 4-5 minutes, so data for the current minute is not yet available.\n\n**How is the playback start success ratio defined:**\n\nDuring the start of a playback, it can happen that, for example, due to a poor connection of the viewer, not enough data can be loaded. After a short time, the player detects the insufficient data throughput and terminates the playback with an error. Other causes can also include: \n- wrong configuration of the player\n- stream to be connected is no longer being ingested\n- with active ABR: configured initial ABR profile demands a higher data throughput than what the viewer has available\n- further reasons for errors ...\n\nThe playback start success ratio is determined from two values:\n\nValue 1: All playbacks that terminate with an error within the first 10 seconds after the initialization of playback. This does not include terminations after pausing and subsequent restart a playback.\nValue 2: All playbacks, regardless of whether they terminate with an error or not.\n\nThe successful playback starts (Value 2 -Value 1) is compared to all playback starts, and the ratio is expressed as a percentage,<br>so the **playback start success ratio** is calculated as \n`100 * (Value2 - Value1) / Value2`\n\n**Note**:\n- **Important:** Due to the delay of data collection, do not expect to receive data for the last 4-5 minutes of the current minute.\n- to obtain data on this route the H5Live player must be configured to send metrics\n- the returned start errors cannot be compared with errors that can be queried, for example, via `/v2/monitoring/playout/errorcodes`, since just errors on the playback start are considered which means several filters are applied","tags":["Playback start success"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/interval"},{"$ref":"#/components/parameters/tagsThreeRestricted"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"tag":{"type":"string","description":"tag"},"values":{"type":"array","items":{"type":"object","properties":{"timestamp":{"type":"integer","description":"The unix timestamp of the given time interval"},"timestampAsString":{"type":"string"},"error":{"type":"object","properties":{"count":{"type":"number","description":"The number of playbacks that terminate with an error within the first 10 seconds after the initialization of playback"}}},"playbackStart":{"type":"object","properties":{"count":{"type":"number","description":"The number of all playbacks, regardless of whether they terminate with an error or not"}}},"playbackStartProportion":{"type":"object","properties":{"percent":{"type":"number","description":"The proportion of the number of playback starts from this bucket in relation to the sum of playback starts from all buckets in the array, expressed as a percentage."}}},"startSuccessRatio":{"type":"object","properties":{"percent":{"type":"number","description":"The ratio in percent of playback start success -> ((playback start count - error count) * 100) / playback start count"}}}}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"tag":"FoBarTag","values":[{"timestamp":1707091200,"timestampAsString":"2026-02-05T00:00:00.000Z","error":{"count":34},"playbackStart":{"count":1275},"playbackStartProportion":{"percent":1.383},"startSuccessRatio":{"percent":97.3}}]}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/tags/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/tags/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/tags/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/tags/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/tags/timeseries\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"interval\": \"SOME_STRING_VALUE\",\n  \"tags\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/tags/timeseries');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'interval' => 'SOME_STRING_VALUE',\n  'tags' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/playback/start/success/ratio/tags/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/tags/timeseries\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"interval\":\"SOME_STRING_VALUE\",\"tags\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/tags/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/tags/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/tags/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/tags/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/tags/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/playback/start/success/ratio/countries/timeseries":{"get":{"summary":"Ratio per country","description":"```\nhttps://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/countries/timeseries\n```\n\nGet a time series of the playback start success ratio for all playbacks for each given country. Please note that this data is delayed by 4-5 minutes, so data for the current minute is not yet available.\n\n**How is the playback start success ratio defined:**\n\nDuring the start of a playback, it can happen that, for example, due to a poor connection of the viewer, not enough data can be loaded. After a short time, the player detects the insufficient data throughput and terminates the playback with an error. Other causes can also include: \n- wrong configuration of the player\n- stream to be connected is no longer being ingested\n- with active ABR: configured initial ABR profile demands a higher data throughput than what the viewer has available\n- further reasons for errors ...\n\nThe playback start success ratio is determined from two values:\n\nValue 1: All playbacks that terminate with an error within the first 10 seconds after the initialization of playback. This does not include terminations after pausing and subsequent restart a playback.\nValue 2: All playbacks, regardless of whether they terminate with an error or not.\n\nThe successful playback starts (Value 2 -Value 1) is compared to all playback starts, and the ratio is expressed as a percentage,<br>so the **playback start success ratio** is calculated as \n`100 * (Value2 - Value1) / Value2`\n\n**Note**:\n- **Important:** Due to the delay of data collection, do not expect to receive data for the last 4-5 minutes of the current minute.\n- to obtain data on this route the H5Live player must be configured to send metrics\n- the returned start errors cannot be compared with errors that can be queried, for example, via `/v2/monitoring/playout/errorcodes`, since just errors on the playback start are considered which means several filters are applied","tags":["Playback start success"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/interval"},{"$ref":"#/components/parameters/countries_five_restricted"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"country":{"type":"string","description":"The name of the country"},"alpha2":{"type":"string","description":"The alpha-2 country code"},"values":{"type":"array","items":{"type":"object","properties":{"timestamp":{"type":"integer","description":"The unix timestamp of the given time interval"},"timestampAsString":{"type":"string"},"error":{"type":"object","properties":{"count":{"type":"number","description":"The number of playbacks that terminate with an error within the first 10 seconds after the initialization of playback"}}},"playbackStart":{"type":"object","properties":{"count":{"type":"number","description":"The number of all playbacks, regardless of whether they terminate with an error or not"}}},"playbackStartProportion":{"type":"object","properties":{"percent":{"type":"number","description":"The proportion of the number of playback starts from this bucket in relation to the sum of playback starts from all buckets in the array, expressed as a percentage."}}},"startSuccessRatio":{"type":"object","properties":{"percent":{"type":"number","description":"The ratio in percent of playback start success -> ((playback start count - error count) * 100) / playback start count"}}}}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"country":"Germany","alpha2":"DE","values":[{"timestamp":1707091200,"timestampAsString":"2026-02-05T00:00:00.000Z","error":{"count":34},"playbackStart":{"count":1275},"playbackStartProportion":{"percent":1.383},"startSuccessRatio":{"percent":97.3}}]}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/countries/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/countries/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/countries/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/countries/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/countries/timeseries\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"interval\": \"SOME_STRING_VALUE\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/countries/timeseries');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'interval' => 'SOME_STRING_VALUE',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/playback/start/success/ratio/countries/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/countries/timeseries\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"interval\":\"SOME_STRING_VALUE\",\"countries\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/countries/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/countries/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/countries/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/countries/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/countries/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/playback/start/success/ratio/world":{"get":{"summary":"Ratio per world country","description":"```\nhttps://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/world\n```\n\nGet the playback start success ratio for all playbacks for all countries of the world. Please note that this data is delayed by 4-5 minutes, so data for the current minute is not yet available.\n\n**How is the playback start success ratio defined:**\n\nDuring the start of a playback, it can happen that, for example, due to a poor connection of the viewer, not enough data can be loaded. After a short time, the player detects the insufficient data throughput and terminates the playback with an error. Other causes can also include: \n- wrong configuration of the player\n- stream to be connected is no longer being ingested\n- with active ABR: configured initial ABR profile demands a higher data throughput than what the viewer has available\n- further reasons for errors ...\n\nThe playback start success ratio is determined from two values:\n\nValue 1: All playbacks that terminate with an error within the first 10 seconds after the initialization of playback. This does not include terminations after pausing and subsequent restart a playback.\nValue 2: All playbacks, regardless of whether they terminate with an error or not.\n\nThe successful playback starts (Value 2 -Value 1) is compared to all playback starts, and the ratio is expressed as a percentage,<br>so the **playback start success ratio** is calculated as \n`100 * (Value2 - Value1) / Value2`\n\n**Note**:\n- **Important:** Due to the delay of data collection, do not expect to receive data for the last 4-5 minutes of the current minute.\n- to obtain data on this route the H5Live player must be configured to send metrics\n- the returned start errors cannot be compared with errors that can be queried, for example, via `/v2/monitoring/playout/errorcodes`, since just errors on the playback start are considered which means several filters are applied","tags":["Playback start success"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/countries"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"country":{"type":"string","description":"The name of the country"},"alpha2":{"type":"string","description":"The alpha-2 country code"},"error":{"type":"object","properties":{"count":{"type":"number","description":"The number of playbacks that terminate with an error within the first 10 seconds after the initialization of playback"}}},"playbackStart":{"type":"object","properties":{"count":{"type":"number","description":"The number of all playbacks, regardless of whether they terminate with an error or not"}}},"playbackStartProportion":{"type":"object","properties":{"percent":{"type":"number","description":"The proportion of the number of playback starts from this bucket in relation to the sum of playback starts from all buckets in the array, expressed as a percentage."}}},"startSuccessRatio":{"type":"object","properties":{"percent":{"type":"number","description":"The ratio in percent of playback start success -> ((playback start count - error count) * 100) / playback start count"}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"country":"Germany","alpha2":"DE","error":{"count":34},"playbackStart":{"count":1275},"playbackStartProportion":{"percent":1.383},"startSuccessRatio":{"percent":97.3}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/world?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/world?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/world?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/world?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/world\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/world');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/playback/start/success/ratio/world?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/world\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"countries\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/world?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/world?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/world?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/world?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/world?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/playback/start/success/ratio/streams/top100":{"get":{"summary":"Ratio of TOP 100 streams","description":"```\nhttps://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/streams/top100\n```\n\nGet the playback start success ratio for the TOP 100 streams, sorted in ascending order by the ratio. (the stream with the lowest ratio value is listed first) Please note that this data is delayed by 4-5 minutes, so data for the current minute is not yet available.\n\n**How is the playback start success ratio defined:**\n\nDuring the start of a playback, it can happen that, for example, due to a poor connection of the viewer, not enough data can be loaded. After a short time, the player detects the insufficient data throughput and terminates the playback with an error. Other causes can also include: \n- wrong configuration of the player\n- stream to be connected is no longer being ingested\n- with active ABR: configured initial ABR profile demands a higher data throughput than what the viewer has available\n- further reasons for errors ...\n\nThe playback start success ratio is determined from two values:\n\nValue 1: All playbacks that terminate with an error within the first 10 seconds after the initialization of playback. This does not include terminations after pausing and subsequent restart a playback.\nValue 2: All playbacks, regardless of whether they terminate with an error or not.\n\nThe successful playback starts (Value 2 -Value 1) is compared to all playback starts, and the ratio is expressed as a percentage,<br>so the **playback start success ratio** is calculated as \n`100 * (Value2 - Value1) / Value2`\n\n**Note**:\n- **Important:** Due to the delay of data collection, do not expect to receive data for the last 4-5 minutes of the current minute.\n- to obtain data on this route the H5Live player must be configured to send metrics\n- the returned start errors cannot be compared with errors that can be queried, for example, via `/v2/monitoring/playout/errorcodes`, since just errors on the playback start are considered which means several filters are applied","tags":["Playback start success"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"stream":{"type":"string","description":"The name of the stream"},"error":{"type":"object","properties":{"count":{"type":"number","description":"The number of playbacks that terminate with an error within the first 10 seconds after the initialization of playback"}}},"playbackStart":{"type":"object","properties":{"count":{"type":"number","description":"The number of all playbacks, regardless of whether they terminate with an error or not"}}},"playbackStartProportion":{"type":"object","properties":{"percent":{"type":"number","description":"The proportion of the number of playback starts from this bucket in relation to the sum of playback starts from all buckets in the array, expressed as a percentage."}}},"startSuccessRatio":{"type":"object","properties":{"percent":{"type":"number","description":"The ratio in percent of playback start success -> ((playback start count - error count) * 100) / playback start count"}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"stream":"FoBar-SzB0r","error":{"count":34},"playbackStart":{"count":1275},"playbackStartProportion":{"percent":1.383},"startSuccessRatio":{"percent":97.3}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/streams/top100?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/streams/top100?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/streams/top100?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/streams/top100?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/streams/top100\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/streams/top100');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/playback/start/success/ratio/streams/top100?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/streams/top100\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/streams/top100?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/streams/top100?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/streams/top100?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/streams/top100?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/streams/top100?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/playback/start/errors":{"get":{"summary":"Errors","description":"```\nhttps://metrics-api.nanostream.cloud/v2/playback/start/errors\n```\n\nGet the playback start errors broken down by error code and error message. Please note that this data is delayed by 4-5 minutes, so data for the current minute is not yet available.\n\n**How are playback start errors defined:**\n\nDuring the start of a playback, it can happen that, for example, due to a poor connection of the viewer, not enough data can be loaded. After a short time, the player detects the insufficient data throughput and terminates the playback with an error. Other causes can also include: \n- wrong configuration of the player\n- stream to be connected is no longer being ingested\n- with active ABR: configured initial ABR profile demands a higher data throughput than what the viewer has available\n- further reasons for errors ...\n\nThe following error codes can occur during the start of a playback: `1008, 2001, 2002, 2003, 3002, 3003, 4001, 4006, 4106, 5103`    \n\n\nAll errors occurring within 10 seconds after the initialization of playback are considered.\n \n\n**Note**:\n- **Important:** Due to the delay of data collection, do not expect to receive data for the last 4-5 minutes of the current minute.\n- to obtain data on this route the H5Live player must be configured to send metrics\n- the returned start errors cannot be compared with errors that can be queried, for example, via `/v2/monitoring/playout/errorcodes`, since just errors on the playback start are considered which means several filters are applied","tags":["Playback start errors"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"errorCode":{"type":"number","description":"The error code"},"count":{"type":"number","description":"The number of playbacks that terminate with the given error code"},"errorMessages":{"type":"array","items":{"type":"object","properties":{"message":{"type":"string","description":"The error message"},"count":{"type":"number","description":"The number of playbacks that terminate with the given error message"}}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"errorCode":4001,"count":34,"errorMessages":[{"message":"Could not open connection. Timeout reached.","count":34}]}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/playback/start/errors?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/playback/start/errors?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/playback/start/errors?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/playback/start/errors?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/playback/start/errors\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/playback/start/errors');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/playback/start/errors?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/playback/start/errors\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/playback/start/errors?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/playback/start/errors?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/playback/start/errors?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/playback/start/errors?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/playback/start/errors?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/playback/start/errors/streams":{"get":{"summary":"Errors per stream","description":"```\nhttps://metrics-api.nanostream.cloud/v2/playback/start/errors/streams\n```\n\nGet the playback start errors broken down by error code and error message for each given stream. Please note that this data is delayed by 4-5 minutes, so data for the current minute is not yet available.\n\n**How are playback start errors defined:**\n\nDuring the start of a playback, it can happen that, for example, due to a poor connection of the viewer, not enough data can be loaded. After a short time, the player detects the insufficient data throughput and terminates the playback with an error. Other causes can also include: \n- wrong configuration of the player\n- stream to be connected is no longer being ingested\n- with active ABR: configured initial ABR profile demands a higher data throughput than what the viewer has available\n- further reasons for errors ...\n\nThe following error codes can occur during the start of a playback: `1008, 2001, 2002, 2003, 3002, 3003, 4001, 4006, 4106, 5103`\n\n\nAll errors occurring within 10 seconds after the initialization of playback are considered.\n\n\n**Note**:\n- **Important:** Due to the delay of data collection, do not expect to receive data for the last 4-5 minutes of the current minute.\n- to obtain data on this route the H5Live player must be configured to send metrics\n- the returned start errors cannot be compared with errors that can be queried, for example, via `/v2/monitoring/playout/errorcodes`, since just errors on the playback start are considered which means several filters are applied","tags":["Playback start errors"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/streamFiveRestricted"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"stream":{"type":"string","description":"The name of the stream"},"values":{"type":"array","items":{"type":"object","properties":{"errorCode":{"type":"number","description":"The error code"},"count":{"type":"number","description":"The number of playbacks that terminate with the given error code"},"errorMessages":{"type":"array","items":{"type":"object","properties":{"message":{"type":"string","description":"The error message"},"count":{"type":"number","description":"The number of playbacks that terminate with the given error message"}}}}}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"stream":"FoBar-SzB0r","values":[{"errorCode":4001,"count":34,"errorMessages":[{"message":"Could not open connection. Timeout reached.","count":34}]}]}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/playback/start/errors/streams?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/playback/start/errors/streams?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/playback/start/errors/streams?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/playback/start/errors/streams?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/playback/start/errors/streams\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/playback/start/errors/streams');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'streams' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/playback/start/errors/streams?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/playback/start/errors/streams\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"streams\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/playback/start/errors/streams?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/playback/start/errors/streams?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/playback/start/errors/streams?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/playback/start/errors/streams?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/playback/start/errors/streams?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/playback/start/errors/tags":{"get":{"summary":"Errors per tag","description":"```\nhttps://metrics-api.nanostream.cloud/v2/playback/start/errors/tags\n```\n\nGet the playback start errors broken down by error code and error message per tag. Please note that this data is delayed by 4-5 minutes, so data for the current minute is not yet available.\n\n**How are playback start errors defined:**\n\nDuring the start of a playback, it can happen that, for example, due to a poor connection of the viewer, not enough data can be loaded. After a short time, the player detects the insufficient data throughput and terminates the playback with an error. Other causes can also include: \n- wrong configuration of the player\n- stream to be connected is no longer being ingested\n- with active ABR: configured initial ABR profile demands a higher data throughput than what the viewer has available\n- further reasons for errors ...\n\nThe following error codes can occur during the start of a playback: `1008, 2001, 2002, 2003, 3002, 3003, 4001, 4006, 4106, 5103`   \n\n\nAll errors occurring within 10 seconds after the initialization of playback are considered.\n \n\n**Note**:\n- **Important:** Due to the delay of data collection, do not expect to receive data for the last 4-5 minutes of the current minute.\n- to obtain data on this route the H5Live player must be configured to send metrics\n- the returned start errors cannot be compared with errors that can be queried, for example, via `/v2/monitoring/playout/errorcodes`, since just errors on the playback start are considered which means several filters are applied","tags":["Playback start errors"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/tagsThreeRestricted"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"tag":{"type":"string","description":"tag"},"values":{"type":"array","items":{"type":"object","properties":{"errorCode":{"type":"number","description":"The error code"},"count":{"type":"number","description":"The number of playbacks that terminate with the given error code"},"errorMessages":{"type":"array","items":{"type":"object","properties":{"message":{"type":"string","description":"The error message"},"count":{"type":"number","description":"The number of playbacks that terminate with the given error message"}}}}}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"tag":"FoBarTag","values":[{"errorCode":4001,"count":34,"errorMessages":[{"message":"Could not open connection. Timeout reached.","count":34}]}]}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/playback/start/errors/tags?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/playback/start/errors/tags?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/playback/start/errors/tags?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/playback/start/errors/tags?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/playback/start/errors/tags\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"tags\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/playback/start/errors/tags');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'tags' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/playback/start/errors/tags?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/playback/start/errors/tags\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"tags\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/playback/start/errors/tags?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/playback/start/errors/tags?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/playback/start/errors/tags?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/playback/start/errors/tags?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/playback/start/errors/tags?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/playback/start/errors/world":{"get":{"summary":"Errors per world country","description":"```\nhttps://metrics-api.nanostream.cloud/v2/playback/start/errors/world\n```\n\nGet the playback start errors broken down by error code and error message for each given world country. Please note that this data is delayed by 4-5 minutes, so data for the current minute is not yet available.\n\n**How are playback start errors defined:**\n\nDuring the start of a playback, it can happen that, for example, due to a poor connection of the viewer, not enough data can be loaded. After a short time, the player detects the insufficient data throughput and terminates the playback with an error. Other causes can also include: \n- wrong configuration of the player\n- stream to be connected is no longer being ingested\n- with active ABR: configured initial ABR profile demands a higher data throughput than what the viewer has available\n- further reasons for errors ...\n\nThe following error codes can occur during the start of a playback: `1008, 2001, 2002, 2003, 3002, 3003, 4001, 4006, 4106, 5103`\n\n\nAll errors occurring within 10 seconds after the initialization of playback are considered.\n\n\n**Note**:\n- **Important:** Due to the delay of data collection, do not expect to receive data for the last 4-5 minutes of the current minute.\n- to obtain data on this route the H5Live player must be configured to send metrics\n- the returned start errors cannot be compared with errors that can be queried, for example, via `/v2/monitoring/playout/errorcodes`, since just errors on the playback start are considered which means several filters are applied","tags":["Playback start errors"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/countries"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"country":{"type":"string","description":"The name of the country"},"alpha2":{"type":"string","description":"The alpha-2 country code"},"error":{"type":"object","properties":{"count":{"type":"number","description":"Total number of errors"}}},"values":{"type":"array","items":{"type":"object","properties":{"errorCode":{"type":"number","description":"The error code"},"count":{"type":"number","description":"The number of playbacks that terminate with the given error code"},"errorMessages":{"type":"array","items":{"type":"object","properties":{"message":{"type":"string","description":"The error message"},"count":{"type":"number","description":"The number of playbacks that terminate with the given error message"}}}}}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"country":"Germany","alpha2":"DE","error":{"count":34},"values":[{"errorCode":4001,"count":34,"errorMessages":[{"message":"Could not open connection. Timeout reached.","count":34}]}]}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/playback/start/errors/world?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/playback/start/errors/world?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/playback/start/errors/world?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/playback/start/errors/world?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/playback/start/errors/world\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/playback/start/errors/world');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/playback/start/errors/world?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/playback/start/errors/world\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"countries\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/playback/start/errors/world?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/playback/start/errors/world?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/playback/start/errors/world?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/playback/start/errors/world?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/playback/start/errors/world?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/playback/start/errors/streams/top100":{"get":{"summary":"Errors of TOP 100 streams","description":"```\nhttps://metrics-api.nanostream.cloud/v2/playback/start/errors/streams/top100\n```\n\nGet the playback start errors broken down by error code and error message for the TOP 100 streams, sorted in descending order by the total error count of each stream. (the stream with the highest total error count is listed first) Please note that this data is delayed by 4-5 minutes, so data for the current minute is not yet available.\n\n**How are playback start errors defined:**\n\nDuring the start of a playback, it can happen that, for example, due to a poor connection of the viewer, not enough data can be loaded. After a short time, the player detects the insufficient data throughput and terminates the playback with an error. Other causes can also include: \n- wrong configuration of the player\n- stream to be connected is no longer being ingested\n- with active ABR: configured initial ABR profile demands a higher data throughput than what the viewer has available\n- further reasons for errors ...\n\nThe following error codes can occur during the start of a playback: `1008, 2001, 2002, 2003, 3002, 3003, 4001, 4006, 4106, 5103`\n\n\nAll errors occurring within 10 seconds after the initialization of playback are considered.\n\n\n**Note**:\n- **Important:** Due to the delay of data collection, do not expect to receive data for the last 4-5 minutes of the current minute.\n- to obtain data on this route the H5Live player must be configured to send metrics\n- the returned start errors cannot be compared with errors that can be queried, for example, via `/v2/monitoring/playout/errorcodes`, since just errors on the playback start are considered which means several filters are applied","tags":["Playback start errors"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"stream":{"type":"string","description":"The name of the stream"},"values":{"type":"array","items":{"type":"object","properties":{"errorCode":{"type":"number","description":"The error code"},"count":{"type":"number","description":"The number of playbacks that terminate with the given error code"},"errorMessages":{"type":"array","items":{"type":"object","properties":{"message":{"type":"string","description":"The error message"},"count":{"type":"number","description":"The number of playbacks that terminate with the given error message"}}}}}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"stream":"FoBar-SzB0r","values":[{"errorCode":4001,"count":34,"errorMessages":[{"message":"Could not open connection. Timeout reached.","count":34}]}]}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/playback/start/errors/streams/top100?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/playback/start/errors/streams/top100?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/playback/start/errors/streams/top100?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/playback/start/errors/streams/top100?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/playback/start/errors/streams/top100\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/playback/start/errors/streams/top100');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/playback/start/errors/streams/top100?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/playback/start/errors/streams/top100\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/playback/start/errors/streams/top100?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/playback/start/errors/streams/top100?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/playback/start/errors/streams/top100?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/playback/start/errors/streams/top100?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/playback/start/errors/streams/top100?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/playback/start/success/ratio/{breakdownTerm}":{"get":{"summary":"Broken down ratio","description":"```\nhttps://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/{breakdownTerm}\n```\n\nGet the playback start success ratio for all playbacks broken down by the following terms (in the square brackets, the maximum number of entries to be returned is indicated for each term):\n\n- country [300]\n- city [100]\n- browser [10]\n- browser version [100]\n- operating system [10]\n- operating system version [100]\n- H5live player version [50]\n- referrer [100]\n- initial ABR profile (is configured in the H5Live player) [100]\n- fast start enabled (is configured in the H5Live player) [2]\n- used media playback API [10]\n- IP address [100]\n\nPlease note that this data is delayed by 4-5 minutes, so data for the current minute is not yet available.\n\n**How is the playback start success ratio defined:**\n\nDuring the start of a playback, it can happen that, for example, due to a poor connection of the viewer, not enough data can be loaded. After a short time, the player detects the insufficient data throughput and terminates the playback with an error. Other causes can also include: \n- wrong configuration of the player\n- stream to be connected is no longer being ingested\n- with active ABR: configured initial ABR profile demands a higher data throughput than what the viewer has available\n- further reasons for errors ...\n\nThe playback start success ratio is determined from two values:\n\nValue 1: All playbacks that terminate with an error within the first 10 seconds after the initialization of playback. This does not include terminations after pausing and subsequent restart a playback.\nValue 2: All playbacks, regardless of whether they terminate with an error or not.\n\nThe successful playback starts (Value 2 -Value 1) is compared to all playback starts, and the ratio is expressed as a percentage,<br>so the **playback start success ratio** is calculated as \n`100 * (Value2 - Value1) / Value2`\n\n**Note**:\n- both stream and country filtering can not be applied at the same time\n- **Important:** Due to the delay of data collection, do not expect to receive data for the last 4-5 minutes of the current minute.\n- to obtain data on this route the H5Live player must be configured to send metrics\n- the returned start errors cannot be compared with errors that can be queried, for example, via `/v2/monitoring/playout/errorcodes`, since just errors on the playback start are considered which means several filters are applied","tags":["Playback start success"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/allStartSuccessBreakdown"},{"$ref":"#/components/parameters/streamsDefault"},{"$ref":"#/components/parameters/countries"},{"$ref":"#/components/parameters/tags"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"{breakdownTerm}":{"type":["string","number","boolean"],"description":"The breakdown term"},"error":{"type":"object","properties":{"count":{"type":"number","description":"The number of playbacks that terminate with an error within the first 10 seconds after the initialization of playback"}}},"playbackStart":{"type":"object","properties":{"count":{"type":"number","description":"The number of all playbacks, regardless of whether they terminate with an error or not"}}},"playbackStartProportion":{"type":"object","properties":{"percent":{"type":"number","description":"The proportion of the number of playback starts from this bucket in relation to the sum of playback starts from all buckets in the array, expressed as a percentage."}}},"startSuccessRatio":{"type":"object","properties":{"percent":{"type":"number","description":"The ratio in percent of playback start success -> ((playback start count - error count) * 100) / playback start count"}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"browser":"Chrome","error":{"count":34},"playbackStart":{"count":1275},"playbackStartProportion":{"percent":1.383},"startSuccessRatio":{"percent":97.3}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/%7BbreakdownTerm%7D\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"tags\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/%7BbreakdownTerm%7D');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'streams' => 'SOME_ARRAY_VALUE',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'tags' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/playback/start/success/ratio/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/%7BbreakdownTerm%7D\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"streams\":\"SOME_ARRAY_VALUE\",\"countries\":\"SOME_ARRAY_VALUE\",\"tags\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/playback/start/success/ratio/streams/{breakdownTerm}":{"get":{"summary":"Broken down ratio per stream","description":"```\nhttps://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/streams/{breakdownTerm}\n```\n\nGet the playback start success ratio for all playbacks for each given stream broken down by the following terms (in the square brackets, the maximum number of entries to be returned is indicated for each term):\n\n- country [300]\n- city [100]\n- browser [10]\n- browser version [100]\n- operating system [10]\n- operating system version [100]\n- H5live player version [50]\n- referrer [100]\n- initial ABR profile (is configured in the H5Live player) [100]\n- fast start enabled (is configured in the H5Live player) [2]\n- used media playback API [10]\n- IP address [100]\n\nPlease note that this data is delayed by 4-5 minutes, so data for the current minute is not yet available.\n\n**How is the playback start success ratio defined:**\n\nDuring the start of a playback, it can happen that, for example, due to a poor connection of the viewer, not enough data can be loaded. After a short time, the player detects the insufficient data throughput and terminates the playback with an error. Other causes can also include: \n- wrong configuration of the player\n- stream to be connected is no longer being ingested\n- with active ABR: configured initial ABR profile demands a higher data throughput than what the viewer has available\n- further reasons for errors ...\n\nThe playback start success ratio is determined from two values:\n\nValue 1: All playbacks that terminate with an error within the first 10 seconds after the initialization of playback. This does not include terminations after pausing and subsequent restart a playback.\nValue 2: All playbacks, regardless of whether they terminate with an error or not.\n\nThe successful playback starts (Value 2 -Value 1) is compared to all playback starts, and the ratio is expressed as a percentage,<br>so the **playback start success ratio** is calculated as \n`100 * (Value2 - Value1) / Value2`\n\n**Note**:\n- **Important:** Due to the delay of data collection, do not expect to receive data for the last 4-5 minutes of the current minute.\n- to obtain data on this route the H5Live player must be configured to send metrics\n- the returned start errors cannot be compared with errors that can be queried, for example, via `/v2/monitoring/playout/errorcodes`, since just errors on the playback start are considered which means several filters are applied","tags":["Playback start success"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/streamStartSuccessBreakdown"},{"$ref":"#/components/parameters/streamFiveRestricted"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"stream":{"type":"string","description":"The name of the stream"},"values":{"type":"array","items":{"type":"object","properties":{"{breakdownTerm}":{"type":["string","number","boolean"],"description":"The breakdown term"},"error":{"type":"object","properties":{"count":{"type":"number","description":"The number of playbacks that terminate with an error within the first 10 seconds after the initialization of playback"}}},"playbackStart":{"type":"object","properties":{"count":{"type":"number","description":"The number of all playbacks, regardless of whether they terminate with an error or not"}}},"playbackStartProportion":{"type":"object","properties":{"percent":{"type":"number","description":"The proportion of the number of playback starts from this bucket in relation to the sum of playback starts from all buckets in the array, expressed as a percentage."}}},"startSuccessRatio":{"type":"object","properties":{"percent":{"type":"number","description":"The ratio in percent of playback start success -> ((playback start count - error count) * 100) / playback start count"}}}}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"stream":"FoBar-SzB0r","values":[{"browser":"Chrome","error":{"count":34},"playbackStart":{"count":1275},"playbackStartProportion":{"percent":1.383},"startSuccessRatio":{"percent":97.3}}]}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/streams/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/streams/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/streams/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/streams/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/streams/%7BbreakdownTerm%7D\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/streams/%7BbreakdownTerm%7D');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'streams' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/playback/start/success/ratio/streams/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/streams/%7BbreakdownTerm%7D\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"streams\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/streams/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/streams/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/streams/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/streams/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/streams/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/playback/start/success/ratio/tags/{breakdownTerm}":{"get":{"summary":"Broken down ratio per tag","description":"```\nhttps://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/tags/{breakdownTerm}\n```\n\nGet the playback start success ratio for all playbacks for each given tag broken down by the following terms (in the square brackets, the maximum number of entries to be returned is indicated for each term):\n\n- country [300]\n- city [100]\n- browser [10]\n- browser version [100]\n- operating system [10]\n- operating system version [100]\n- H5live player version [50]\n- referrer [100]\n- initial ABR profile (is configured in the H5Live player) [100]\n- fast start enabled (is configured in the H5Live player) [2]\n- used media playback API [10]\n- IP address [100]\n\nPlease note that this data is delayed by 4-5 minutes, so data for the current minute is not yet available.\n\n**How is the playback start success ratio defined:**\n\nDuring the start of a playback, it can happen that, for example, due to a poor connection of the viewer, not enough data can be loaded. After a short time, the player detects the insufficient data throughput and terminates the playback with an error. Other causes can also include: \n- wrong configuration of the player\n- stream to be connected is no longer being ingested\n- with active ABR: configured initial ABR profile demands a higher data throughput than what the viewer has available\n- further reasons for errors ...\n\nThe playback start success ratio is determined from two values:\n\nValue 1: All playbacks that terminate with an error within the first 10 seconds after the initialization of playback. This does not include terminations after pausing and subsequent restart a playback.\nValue 2: All playbacks, regardless of whether they terminate with an error or not.\n\nThe successful playback starts (Value 2 -Value 1) is compared to all playback starts, and the ratio is expressed as a percentage,<br>so the **playback start success ratio** is calculated as \n`100 * (Value2 - Value1) / Value2`\n\n**Note**:\n- **Important:** Due to the delay of data collection, do not expect to receive data for the last 4-5 minutes of the current minute.\n- to obtain data on this route the H5Live player must be configured to send metrics\n- the returned start errors cannot be compared with errors that can be queried, for example, via `/v2/monitoring/playout/errorcodes`, since just errors on the playback start are considered which means several filters are applied","tags":["Playback start success"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/streamStartSuccessBreakdown"},{"$ref":"#/components/parameters/tagsThreeRestricted"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"tag":{"type":"string","description":"tag"},"values":{"type":"array","items":{"type":"object","properties":{"{breakdownTerm}":{"type":["string","number","boolean"],"description":"The breakdown term"},"error":{"type":"object","properties":{"count":{"type":"number","description":"The number of playbacks that terminate with an error within the first 10 seconds after the initialization of playback"}}},"playbackStart":{"type":"object","properties":{"count":{"type":"number","description":"The number of all playbacks, regardless of whether they terminate with an error or not"}}},"playbackStartProportion":{"type":"object","properties":{"percent":{"type":"number","description":"The proportion of the number of playback starts from this bucket in relation to the sum of playback starts from all buckets in the array, expressed as a percentage."}}},"startSuccessRatio":{"type":"object","properties":{"percent":{"type":"number","description":"The ratio in percent of playback start success -> ((playback start count - error count) * 100) / playback start count"}}}}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"tag":"FoBarTag","values":[{"browser":"Chrome","error":{"count":34},"playbackStart":{"count":1275},"playbackStartProportion":{"percent":1.383},"startSuccessRatio":{"percent":97.3}}]}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/tags/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/tags/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/tags/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/tags/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/tags/%7BbreakdownTerm%7D\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"tags\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/tags/%7BbreakdownTerm%7D');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'tags' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/playback/start/success/ratio/tags/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/tags/%7BbreakdownTerm%7D\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"tags\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/tags/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/tags/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/tags/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/tags/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/tags/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/playback/start/success/ratio/countries/{breakdownTerm}":{"get":{"summary":"Broken down ratio per country","description":"```\nhttps://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/countries/{breakdownTerm}\n```\n\nGet the playback start success ratio for all playbacks for each given country broken down by the following terms (in the square brackets, the maximum number of entries to be returned is indicated for each term):\n\n- stream [100]\n- city [100]\n- browser [10]\n- browser version [100]\n- operating system [10]\n- operating system version [100]\n- H5live player version [50]\n- referrer [100]\n- initial ABR profile (is configured in the H5Live player) [100]\n- fast start enabled (is configured in the H5Live player) [2]\n- used media playback API [10]\n- IP address [100]\n\nPlease note that this data is delayed by 4-5 minutes, so data for the current minute is not yet available.\n\n**How is the playback start success ratio defined:**\n\nDuring the start of a playback, it can happen that, for example, due to a poor connection of the viewer, not enough data can be loaded. After a short time, the player detects the insufficient data throughput and terminates the playback with an error. Other causes can also include: \n- wrong configuration of the player\n- stream to be connected is no longer being ingested\n- with active ABR: configured initial ABR profile demands a higher data throughput than what the viewer has available\n- further reasons for errors ...\n\nThe playback start success ratio is determined from two values:\n\nValue 1: All playbacks that terminate with an error within the first 10 seconds after the initialization of playback. This does not include terminations after pausing and subsequent restart a playback.\nValue 2: All playbacks, regardless of whether they terminate with an error or not.\n\nThe successful playback starts (Value 2 -Value 1) is compared to all playback starts, and the ratio is expressed as a percentage,<br>so the **playback start success ratio** is calculated as \n`100 * (Value2 - Value1) / Value2`\n\n**Note**:\n- **Important:** Due to the delay of data collection, do not expect to receive data for the last 4-5 minutes of the current minute.\n- to obtain data on this route the H5Live player must be configured to send metrics\n- the returned start errors cannot be compared with errors that can be queried, for example, via `/v2/monitoring/playout/errorcodes`, since just errors on the playback start are considered which means several filters are applied","tags":["Playback start success"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/countryStartSuccessBreakdown"},{"$ref":"#/components/parameters/countries_five_restricted"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"country":{"type":"string","description":"The name of the country"},"alpha2":{"type":"string","description":"The alpha-2 country code"},"values":{"type":"array","items":{"type":"object","properties":{"{breakdownTerm}":{"type":["string","number","boolean"],"description":"The breakdown term"},"error":{"type":"object","properties":{"count":{"type":"number","description":"The number of playbacks that terminate with an error within the first 10 seconds after the initialization of playback"}}},"playbackStart":{"type":"object","properties":{"count":{"type":"number","description":"The number of all playbacks, regardless of whether they terminate with an error or not"}}},"playbackStartProportion":{"type":"object","properties":{"percent":{"type":"number","description":"The proportion of the number of playback starts from this bucket in relation to the sum of playback starts from all buckets in the array, expressed as a percentage."}}},"startSuccessRatio":{"type":"object","properties":{"percent":{"type":"number","description":"The ratio in percent of playback start success -> ((playback start count - error count) * 100) / playback start count"}}}}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"country":"Germany","alpha2":"DE","values":[{"browser":"Chrome","error":{"count":34},"playbackStart":{"count":1275},"playbackStartProportion":{"percent":1.383},"startSuccessRatio":{"percent":97.3}}]}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/countries/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/countries/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/countries/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/countries/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/countries/%7BbreakdownTerm%7D\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/countries/%7BbreakdownTerm%7D');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/playback/start/success/ratio/countries/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/countries/%7BbreakdownTerm%7D\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"countries\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/countries/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/countries/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/countries/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/countries/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/playback/start/success/ratio/countries/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/playback/start/errors/{breakdownTerm}":{"get":{"summary":"Broken down errors","description":"```\nhttps://metrics-api.nanostream.cloud/v2/playback/start/errors/{breakdownTerm}\n```\n\nGet the playback start errors broken down by the following terms (in the square brackets, the maximum number of entries to be returned is indicated for each term):\n  \n- country [300]\n- city [100]\n- browser [10]\n- browser version [100]\n- operating system [10]\n- operating system version [100]\n- H5live player version [50]\n- referrer [100]\n- initial ABR profile (is configured in the H5Live player) [100]\n- fast start enabled (is configured in the H5Live player) [2]\n- used media playback API [10]\n- IP address [100]\n\nwith subsequent breakdown by error code and error message. Please note that this data is delayed by 4-5 minutes, so data for the current minute is not yet available.\n\n**How are playback start errors defined:**\n\nDuring the start of a playback, it can happen that, for example, due to a poor connection of the viewer, not enough data can be loaded. After a short time, the player detects the insufficient data throughput and terminates the playback with an error. Other causes can also include: \n- wrong configuration of the player\n- stream to be connected is no longer being ingested\n- with active ABR: configured initial ABR profile demands a higher data throughput than what the viewer has available\n- further reasons for errors ...\n\nThe following error codes can occur during the start of a playback: `1008, 2001, 2002, 2003, 3002, 3003, 4001, 4006, 4106, 5103`   \n\n\nAll errors occurring within 10 seconds after the initialization of playback are considered.\n\n\n**Note**:\n- both stream and country filtering can not be applied at the same time\n- **Important:** Due to the delay of data collection, do not expect to receive data for the last 4-5 minutes of the current minute.\n- to obtain data on this route the H5Live player must be configured to send metrics\n- the returned start errors cannot be compared with errors that can be queried, for example, via `/v2/monitoring/playout/errorcodes`, since just errors on the playback start are considered which means several filters are applied","tags":["Playback start errors"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/allStartSuccessBreakdown"},{"$ref":"#/components/parameters/streamsDefault"},{"$ref":"#/components/parameters/countries"},{"$ref":"#/components/parameters/tags"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"{breakdownTerm}":{"type":["string","number","boolean"],"description":"The breakdown term"},"error":{"type":"object","properties":{"count":{"type":"number","description":"The number of playbacks that terminate with the given breakdown term"}}},"errorCodes":{"type":"array","items":{"type":"object","properties":{"errorCode":{"type":"number","description":"The error code"},"count":{"type":"number","description":"The number of playbacks that terminate with the given error code"},"errorMessages":{"type":"array","items":{"type":"object","properties":{"message":{"type":"string","description":"The error message"},"count":{"type":"number","description":"The number of playbacks that terminate with the given error message"}}}}}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"browser":"Chrome","error":{"count":34},"errorCodes":[{"errorCode":4001,"count":34,"errorMessages":[{"message":"Could not open connection. Timeout reached.","count":34}]}]}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/playback/start/errors/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/playback/start/errors/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/playback/start/errors/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/playback/start/errors/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/playback/start/errors/%7BbreakdownTerm%7D\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"tags\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/playback/start/errors/%7BbreakdownTerm%7D');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'streams' => 'SOME_ARRAY_VALUE',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'tags' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/playback/start/errors/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/playback/start/errors/%7BbreakdownTerm%7D\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"streams\":\"SOME_ARRAY_VALUE\",\"countries\":\"SOME_ARRAY_VALUE\",\"tags\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/playback/start/errors/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/playback/start/errors/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/playback/start/errors/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/playback/start/errors/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/playback/start/errors/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/playback/start/errors/streams/{breakdownTerm}":{"get":{"summary":"Broken down errors per stream","description":"```\nhttps://metrics-api.nanostream.cloud/v2/playback/start/errors/streams/{breakdownTerm}\n```\n\nGet the playback start errors broken down by the following terms (in the square brackets, the maximum number of entries to be returned is indicated for each term):\n  \n- country [300]\n- city [100]\n- browser [10]\n- browser version [100]\n- operating system [10]\n- operating system version [100]\n- H5live player version [50]\n- referrer [100]\n- initial ABR profile (is configured in the H5Live player) [100]\n- fast start enabled (is configured in the H5Live player) [2]\n- used media playback API [10]\n- IP address [100]\n\n\nwith subsequent breakdown by error code and error message for each given stream. Please note that this data is delayed by 4-5 minutes, so data for the current minute is not yet available.\n\n**How are playback start errors defined:**\n\nDuring the start of a playback, it can happen that, for example, due to a poor connection of the viewer, not enough data can be loaded. After a short time, the player detects the insufficient data throughput and terminates the playback with an error. Other causes can also include: \n- wrong configuration of the player\n- stream to be connected is no longer being ingested\n- with active ABR: configured initial ABR profile demands a higher data throughput than what the viewer has available\n- further reasons for errors ...\n\n\nThe following error codes can occur during the start of a playback: `1008, 2001, 2002, 2003, 3002, 3003, 4001, 4006, 4106, 5103`   \n\n\nAll errors occurring within 10 seconds after the initialization of playback are considered.\n\n\n**Note**:\n- **Important:** Due to the delay of data collection, do not expect to receive data for the last 4-5 minutes of the current minute.\n- to obtain data on this route the H5Live player must be configured to send metrics\n- the returned start errors cannot be compared with errors that can be queried, for example, via `/v2/monitoring/playout/errorcodes`, since just errors on the playback start are considered which means several filters are applied","tags":["Playback start errors"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/streamStartSuccessBreakdown"},{"$ref":"#/components/parameters/streamFiveRestricted"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"stream":{"type":"string","description":"The name of the stream"},"values":{"type":"array","items":{"type":"object","properties":{"{breakdownTerm}":{"type":["string","number","boolean"],"description":"The breakdown term"},"error":{"type":"object","properties":{"count":{"type":"number","description":"The number of playbacks that terminate with an error within the first 10 seconds after the initialization of playback"}}},"errorCodes":{"type":"array","items":{"type":"object","properties":{"errorCode":{"type":"number","description":"The error code"},"count":{"type":"number","description":"The number of playbacks that terminate with the given error code"},"errorMessages":{"type":"array","items":{"type":"object","properties":{"message":{"type":"string","description":"The error message"},"count":{"type":"number","description":"The number of playbacks that terminate with the given error message"}}}}}}}}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"stream":"FoBar-SzB0r","values":[{"browser":"Chrome","error":{"count":34},"errorCodes":[{"errorCode":4001,"count":34,"errorMessages":[{"message":"Could not open connection. Timeout reached.","count":34}]}]}]}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/playback/start/errors/streams/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/playback/start/errors/streams/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/playback/start/errors/streams/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/playback/start/errors/streams/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/playback/start/errors/streams/%7BbreakdownTerm%7D\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/playback/start/errors/streams/%7BbreakdownTerm%7D');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'streams' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/playback/start/errors/streams/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/playback/start/errors/streams/%7BbreakdownTerm%7D\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"streams\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/playback/start/errors/streams/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/playback/start/errors/streams/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/playback/start/errors/streams/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/playback/start/errors/streams/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/playback/start/errors/streams/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/playback/start/errors/tags/{breakdownTerm}":{"get":{"summary":"Broken down errors per tag","description":"```\nhttps://metrics-api.nanostream.cloud/v2/playback/start/errors/tags/{breakdownTerm}\n```\n\nGet the playback start errors broken down by the following terms (in the square brackets, the maximum number of entries to be returned is indicated for each term):\n\n- country [300]\n- city [100]\n- browser [10]\n- browser version [100]\n- operating system [10]\n- operating system version [100]\n- H5live player version [50]\n- referrer [100]\n- initial ABR profile (is configured in the H5Live player) [100]\n- fast start enabled (is configured in the H5Live player) [2]\n- used media playback API [10]\n- IP address [100]\n\n\nwith subsequent breakdown by error code and error message for each given tag. Please note that this data is delayed by 4-5 minutes, so data for the current minute is not yet available.\n\n**How are playback start errors defined:**\n\nDuring the start of a playback, it can happen that, for example, due to a poor connection of the viewer, not enough data can be loaded. After a short time, the player detects the insufficient data throughput and terminates the playback with an error. Other causes can also include: \n- wrong configuration of the player\n- stream to be connected is no longer being ingested\n- with active ABR: configured initial ABR profile demands a higher data throughput than what the viewer has available\n- further reasons for errors ...\n\n\nThe following error codes can occur during the start of a playback: `1008, 2001, 2002, 2003, 3002, 3003, 4001, 4006, 4106, 5103`   \n\n\nAll errors occurring within 10 seconds after the initialization of playback are considered.\n\n\n**Note**:\n- **Important:** Due to the delay of data collection, do not expect to receive data for the last 4-5 minutes of the current minute.\n- to obtain data on this route the H5Live player must be configured to send metrics\n- the returned start errors cannot be compared with errors that can be queried, for example, via `/v2/monitoring/playout/errorcodes`, since just errors on the playback start are considered which means several filters are applied","tags":["Playback start errors"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/streamStartSuccessBreakdown"},{"$ref":"#/components/parameters/tagsThreeRestricted"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"tag":{"type":"string","description":"tag"},"values":{"type":"array","items":{"type":"object","properties":{"{breakdownTerm}":{"type":["string","number","boolean"],"description":"The breakdown term"},"error":{"type":"object","properties":{"count":{"type":"number","description":"The number of playbacks that terminate with an error within the first 10 seconds after the initialization of playback"}}},"errorCodes":{"type":"array","items":{"type":"object","properties":{"errorCode":{"type":"number","description":"The error code"},"count":{"type":"number","description":"The number of playbacks that terminate with the given error code"},"errorMessages":{"type":"array","items":{"type":"object","properties":{"message":{"type":"string","description":"The error message"},"count":{"type":"number","description":"The number of playbacks that terminate with the given error message"}}}}}}}}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"tag":"FoBarTag","values":[{"browser":"Chrome","error":{"count":34},"errorCodes":[{"errorCode":4001,"count":34,"errorMessages":[{"message":"Could not open connection. Timeout reached.","count":34}]}]}]}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/playback/start/errors/tags/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/playback/start/errors/tags/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/playback/start/errors/tags/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/playback/start/errors/tags/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/playback/start/errors/tags/%7BbreakdownTerm%7D\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"tags\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/playback/start/errors/tags/%7BbreakdownTerm%7D');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'tags' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/playback/start/errors/tags/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/playback/start/errors/tags/%7BbreakdownTerm%7D\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"tags\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/playback/start/errors/tags/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/playback/start/errors/tags/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/playback/start/errors/tags/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/playback/start/errors/tags/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/playback/start/errors/tags/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/playback/start/errors/countries/{breakdownTerm}":{"get":{"summary":"Broken down errors per country","description":"```\nhttps://metrics-api.nanostream.cloud/v2/playback/start/errors/countries/{breakdownTerm}\n```\n\nGet the playback start errors broken down by the following terms (in the square brackets, the maximum number of entries to be returned is indicated for each term):\n\n- stream [100]\n- city [100]\n- browser [10]\n- browser version [100]\n- operating system [10]\n- operating system version [100]\n- H5live player version [50]\n- referrer [100]\n- initial ABR profile (is configured in the H5Live player) [100]\n- fast start enabled (is configured in the H5Live player) [2]\n- used media playback API [10]\n- IP address [100]\n\n\nwith subsequent breakdown by error code and error message for each given country. Please note that this data is delayed by 4-5 minutes, so data for the current minute is not yet available.\n\n**How are playback start errors defined:**\n\nDuring the start of a playback, it can happen that, for example, due to a poor connection of the viewer, not enough data can be loaded. After a short time, the player detects the insufficient data throughput and terminates the playback with an error. Other causes can also include: \n- wrong configuration of the player\n- stream to be connected is no longer being ingested\n- with active ABR: configured initial ABR profile demands a higher data throughput than what the viewer has available\n- further reasons for errors ...\n\n\nThe following error codes can occur during the start of a playback: `1008, 2001, 2002, 2003, 3002, 3003, 4001, 4006, 4106, 5103`   \n\n\nAll errors occurring within 10 seconds after the initialization of playback are considered.\n\n\n**Note**:\n- **Important:** Due to the delay of data collection, do not expect to receive data for the last 4-5 minutes of the current minute.\n- to obtain data on this route the H5Live player must be configured to send metrics\n- the returned start errors cannot be compared with errors that can be queried, for example, via `/v2/monitoring/playout/errorcodes`, since just errors on the playback start are considered which means several filters are applied","tags":["Playback start errors"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/countryStartSuccessBreakdown"},{"$ref":"#/components/parameters/countries_five_restricted"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"country":{"type":"string","description":"The name of the country"},"alpha2":{"type":"string","description":"The alpha-2 country code"},"values":{"type":"array","items":{"type":"object","properties":{"{breakdownTerm}":{"type":["string","number","boolean"],"description":"The breakdown term"},"error":{"type":"object","properties":{"count":{"type":"number","description":"The number of playbacks that terminate with an error within the first 10 seconds after the initialization of playback"}}},"errorCodes":{"type":"array","items":{"type":"object","properties":{"errorCode":{"type":"number","description":"The error code"},"count":{"type":"number","description":"The number of playbacks that terminate with the given error code"},"errorMessages":{"type":"array","items":{"type":"object","properties":{"message":{"type":"string","description":"The error message"},"count":{"type":"number","description":"The number of playbacks that terminate with the given error message"}}}}}}}}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"country":"Germany","alpha2":"DE","values":[{"browser":"Chrome","error":{"count":34},"errorCodes":[{"errorCode":4001,"count":34,"errorMessages":[{"message":"Could not open connection. Timeout reached.","count":34}]}]}]}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/playback/start/errors/countries/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/playback/start/errors/countries/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/playback/start/errors/countries/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/playback/start/errors/countries/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/playback/start/errors/countries/%7BbreakdownTerm%7D\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/playback/start/errors/countries/%7BbreakdownTerm%7D');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/playback/start/errors/countries/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/playback/start/errors/countries/%7BbreakdownTerm%7D\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"countries\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/playback/start/errors/countries/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/playback/start/errors/countries/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/playback/start/errors/countries/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/playback/start/errors/countries/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/playback/start/errors/countries/%7BbreakdownTerm%7D?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&countries=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/world/playoutIngest":{"get":{"summary":"Playouts and ingests","description":"```\nhttps://metrics-api.nanostream.cloud/v2/world/playoutIngest\n```\n\nGet for each country of the world the number of playouts and ingests.","tags":["World map metrics"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/streamsDefault"},{"$ref":"#/components/parameters/countries"},{"$ref":"#/components/parameters/tags"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","description":"result set","items":{"type":"object","properties":{"country":{"type":"string","description":"Country name"},"alpha2":{"type":"string","description":"The alpha-2 country code"},"ingest":{"type":"object","properties":{"count":{"type":"number","description":"Total ingest count"}}},"playout":{"type":"object","properties":{"count":{"type":"number","description":"Total playout count"}}},"total":{"type":"object","properties":{"count":{"type":"number","description":"Sum of total ingest and playout counts"}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"country":"India","alpha2":"IN","ingest":{"count":2},"playout":{"count":99},"total":{"count":101}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/world/playoutIngest?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/world/playoutIngest?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/world/playoutIngest?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/world/playoutIngest?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/world/playoutIngest\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"tags\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/world/playoutIngest');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'streams' => 'SOME_ARRAY_VALUE',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'tags' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/world/playoutIngest?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/world/playoutIngest\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"streams\":\"SOME_ARRAY_VALUE\",\"countries\":\"SOME_ARRAY_VALUE\",\"tags\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/world/playoutIngest?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/world/playoutIngest?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/world/playoutIngest?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/world/playoutIngest?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/world/playoutIngest?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/world/buffering/ratio":{"get":{"summary":"Average buffering play ratio","description":"```\nhttps://metrics-api.nanostream.cloud/v2/world/buffering/ratio\n```\n\nGet for each country of the world the ratio of buffering time and playback time in percent (calculation&#58; Buffering time * 100 / Playback time) of all playbacks.  \n  \n**Note**: To obtain data on this route the H5Live player must be configured to send metrics.","tags":["World map metrics"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/streamsDefault"},{"$ref":"#/components/parameters/countries"},{"$ref":"#/components/parameters/tags"},{"$ref":"#/components/parameters/events"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","description":"result set","items":{"type":"object","properties":{"country":{"type":"string","description":"Country name"},"alpha2":{"type":"string","description":"The alpha-2 country code"},"totalBufferingTime":{"type":"object","properties":{"seconds":{"type":"number","description":"Total buffering time in seconds"}}},"totalPlaybackTime":{"type":"object","properties":{"seconds":{"type":"number","description":"Total playback time in seconds"}}},"bufferingRatio":{"type":"object","properties":{"percent":{"type":"number","description":"ratio in percent of buffering time and playback time of all\nactive playbacks withing the given time."}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"country":"India","alpha2":"IN","totalBufferingTime":{"seconds":100},"totalPlaybackTime":{"seconds":10},"bufferingRatio":{"percent":10}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/world/buffering/ratio?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/world/buffering/ratio?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/world/buffering/ratio?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/world/buffering/ratio?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/world/buffering/ratio\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"tags\": \"SOME_ARRAY_VALUE\",\n  \"events\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/world/buffering/ratio');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'streams' => 'SOME_ARRAY_VALUE',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'tags' => 'SOME_ARRAY_VALUE',\n  'events' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/world/buffering/ratio?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/world/buffering/ratio\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"streams\":\"SOME_ARRAY_VALUE\",\"countries\":\"SOME_ARRAY_VALUE\",\"tags\":\"SOME_ARRAY_VALUE\",\"events\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/world/buffering/ratio?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/world/buffering/ratio?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/world/buffering/ratio?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/world/buffering/ratio?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/world/buffering/ratio?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/world/latency":{"get":{"summary":"Average latency","description":"```\nhttps://metrics-api.nanostream.cloud/v2/world/latency\n```\n\nGet for each country of the world the average latency between ingest and playout in seconds.","tags":["World map metrics"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/streamsDefault"},{"$ref":"#/components/parameters/countries"},{"$ref":"#/components/parameters/tags"},{"$ref":"#/components/parameters/events"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","description":"result set","items":{"type":"object","properties":{"country":{"type":"string","description":"Country name"},"alpha2":{"type":"string","description":"The alpha-2 country code"},"latency":{"type":"object","properties":{"seconds":{"type":"number","description":"Average latency in seconds"}}},"totalUniquePlaybacks":{"type":"object","properties":{"count":{"type":"number","description":"Total unique playback count"}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"country":"India","alpha2":"IN","latency":{"seconds":0.83},"totalUniquePlaybacks":{"count":3299}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/world/latency?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/world/latency?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/world/latency?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/world/latency?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/world/latency\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"tags\": \"SOME_ARRAY_VALUE\",\n  \"events\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/world/latency');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'streams' => 'SOME_ARRAY_VALUE',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'tags' => 'SOME_ARRAY_VALUE',\n  'events' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/world/latency?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/world/latency\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"streams\":\"SOME_ARRAY_VALUE\",\"countries\":\"SOME_ARRAY_VALUE\",\"tags\":\"SOME_ARRAY_VALUE\",\"events\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/world/latency?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/world/latency?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/world/latency?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/world/latency?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/world/latency?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/world/playtime":{"get":{"summary":"Average playtime","description":"```\nhttps://metrics-api.nanostream.cloud/v2/world/playtime\n```\n\nGet for each country of the world the average playtime of all playbacks in seconds.","tags":["World map metrics"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/streamsDefault"},{"$ref":"#/components/parameters/countries"},{"$ref":"#/components/parameters/tags"},{"$ref":"#/components/parameters/events"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","description":"result set","items":{"type":"object","properties":{"country":{"type":"string","description":"Country name"},"alpha2":{"type":"string","description":"The alpha-2 country code"},"averagePlaybackTime":{"type":"object","properties":{"seconds":{"type":"seconds","description":"Average playtime in seconds"}}},"totalUniquePlaybacks":{"type":"object","properties":{"count":{"type":"number","description":"Total unique playback count"}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"country":"India","alpha2":"IN","averagePlaybackTime":{"seconds":346},"totalUniquePlaybacks":{"count":3299}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/world/playtime?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/world/playtime?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/world/playtime?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/world/playtime?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/world/playtime\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"tags\": \"SOME_ARRAY_VALUE\",\n  \"events\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/world/playtime');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'streams' => 'SOME_ARRAY_VALUE',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'tags' => 'SOME_ARRAY_VALUE',\n  'events' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/world/playtime?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/world/playtime\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"streams\":\"SOME_ARRAY_VALUE\",\"countries\":\"SOME_ARRAY_VALUE\",\"tags\":\"SOME_ARRAY_VALUE\",\"events\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/world/playtime?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/world/playtime?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/world/playtime?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/world/playtime?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/world/playtime?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/world/usage":{"get":{"summary":"Byte usage","description":"```\nhttps://metrics-api.nanostream.cloud/v2/world/usage\n```\n\nGet for each country of the world the usage in bytes.","tags":["World map metrics"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/streamsDefault"},{"$ref":"#/components/parameters/countries"},{"$ref":"#/components/parameters/tags"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","description":"result set","items":{"type":"object","properties":{"country":{"type":"string","description":"Country name"},"alpha2":{"type":"string","description":"The alpha-2 country code"},"ingest":{"type":"object","properties":{"bytes":{"type":"number","description":"Total ingest usage in bytes"}}},"playout":{"type":"object","properties":{"bytes":{"type":"number","description":"Total playout usage in bytes"}}},"total":{"type":"object","properties":{"bytes":{"type":"number","description":"Sum of total ingest and playout usage in bytes"}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"country":"India","alpha2":"IN","ingest":{"bytes":243535654645},"playout":{"bytes":9934535353455},"total":{"bytes":10178071008100}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/world/usage?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/world/usage?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/world/usage?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/world/usage?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/world/usage\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"tags\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/world/usage');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'streams' => 'SOME_ARRAY_VALUE',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'tags' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/world/usage?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/world/usage\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"streams\":\"SOME_ARRAY_VALUE\",\"countries\":\"SOME_ARRAY_VALUE\",\"tags\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/world/usage?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/world/usage?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/world/usage?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/world/usage?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/world/usage?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/world/abr/playtime":{"get":{"summary":"ABR total playtime","description":"```\nhttps://metrics-api.nanostream.cloud/v2/world/abr/playtime\n```\n\nGet for each country of the world the total playtime divided into mobile and desktop for each ABR profile.","tags":["World map metrics"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/streamsDefault"},{"$ref":"#/components/parameters/countries"},{"$ref":"#/components/parameters/tags"},{"$ref":"#/components/parameters/events"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","description":"result set","items":{"type":"object","properties":{"country":{"type":"string","description":"Country name"},"alpha2":{"type":"string","description":"The alpha-2 country code"},"deviceTypes":{"type":"object","properties":{"mobile":{"type":"object","properties":{"abrProfiles":{"type":"array","items":{"type":"object","properties":{"abrProfiles":{"type":"number","description":"ABR profile"},"totalPlaybackTime":{"type":"object","properties":{"seconds":{"type":"number","description":"Total playtime in seconds"}}}}}},"totalPlaybackTime":{"type":"object","properties":{"seconds":{"type":"number","description":"Sum of all ABR profiles playtime in seconds"}}}}},"desktop":{"type":"object","properties":{"abrProfiles":{"type":"array","items":{"type":"object","properties":{"abrProfiles":{"type":"number","description":"ABR profile"},"totalPlaybackTime":{"type":"object","properties":{"seconds":{"type":"number","description":"Total playtime in seconds"}}}}}},"totalPlaybackTime":{"type":"object","properties":{"seconds":{"type":"number","description":"Sum of all ABR profiles playtime in seconds"}}}}}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"country":"India","alpha2":"IN","deviceTypes":{"mobile":{"abrProfiles":[{"abrProfiles":540,"totalPlaybackTime":{"seconds":435465}}]},"desktop":{"abrProfiles":[{"abrProfiles":540,"totalPlaybackTime":{"seconds":535353}}]}}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/world/abr/playtime?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/world/abr/playtime?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/world/abr/playtime?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/world/abr/playtime?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/world/abr/playtime\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"tags\": \"SOME_ARRAY_VALUE\",\n  \"events\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/world/abr/playtime');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'streams' => 'SOME_ARRAY_VALUE',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'tags' => 'SOME_ARRAY_VALUE',\n  'events' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/world/abr/playtime?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/world/abr/playtime\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"streams\":\"SOME_ARRAY_VALUE\",\"countries\":\"SOME_ARRAY_VALUE\",\"tags\":\"SOME_ARRAY_VALUE\",\"events\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/world/abr/playtime?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/world/abr/playtime?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/world/abr/playtime?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/world/abr/playtime?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/world/abr/playtime?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/world/abr/viewer":{"get":{"summary":"ABR viewers","description":"```\nhttps://metrics-api.nanostream.cloud/v2/world/abr/viewer\n```\n\nGet for each country of the world the unique viewers and average playtime for each ABR profile.","tags":["World map metrics"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/streamsDefault"},{"$ref":"#/components/parameters/countries"},{"$ref":"#/components/parameters/tags"},{"$ref":"#/components/parameters/events"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","description":"result set","items":{"type":"object","properties":{"country":{"type":"string","description":"Country name"},"alpha2":{"type":"string","description":"The alpha-2 country code"},"averagePlaybackTime":{"type":"object","properties":{"seconds":{"type":"number","description":"Average playtime in seconds for the country"}}},"uniqueViewer":{"type":"object","properties":{"count":{"type":"number","description":"Unique viewers for the country"}}},"abrProfiles":{"type":"array","items":{"type":"object","properties":{"abrProfiles":{"type":"number","description":"ABR profile"},"averagePlaybackTime":{"type":"object","properties":{"seconds":{"type":"number","description":"Average playtime in seconds"}}},"uniqueViewer":{"type":"object","properties":{"count":{"type":"number","description":"Unique viewers"}}}}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"country":"India","alpha2":"IN","averagePlaybackTime":{"seconds":346},"uniqueViewer":{"count":3299},"abrProfiles":[{"abrProfiles":540,"averagePlaybackTime":{"seconds":376},"uniqueViewer":{"count":433}}]}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/world/abr/viewer?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/world/abr/viewer?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/world/abr/viewer?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/world/abr/viewer?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/world/abr/viewer\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"tags\": \"SOME_ARRAY_VALUE\",\n  \"events\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/world/abr/viewer');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'streams' => 'SOME_ARRAY_VALUE',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'tags' => 'SOME_ARRAY_VALUE',\n  'events' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/world/abr/viewer?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/world/abr/viewer\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"streams\":\"SOME_ARRAY_VALUE\",\"countries\":\"SOME_ARRAY_VALUE\",\"tags\":\"SOME_ARRAY_VALUE\",\"events\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/world/abr/viewer?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/world/abr/viewer?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/world/abr/viewer?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/world/abr/viewer?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/world/abr/viewer?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/world/abr/switches":{"get":{"summary":"ABR switches","description":"```\nhttps://metrics-api.nanostream.cloud/v2/world/abr/switches\n```\n\nGet for each country of the world the number of ABR profile switches, broken down by quality level (Highest, Medium-High, Medium, Medium-Low, Low).","tags":["World map metrics"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/streamsDefault"},{"$ref":"#/components/parameters/countries"},{"$ref":"#/components/parameters/tags"},{"$ref":"#/components/parameters/events"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","description":"result set","items":{"type":"object","properties":{"country":{"type":"string","description":"Country name"},"alpha2":{"type":"string","description":"The alpha-2 country code"},"totalSwitches":{"type":"object","properties":{"count":{"type":"number","description":"Total number of ABR profile switches across all quality levels"}}},"switches":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","description":"Quality level switched to (Highest, Medium-High, Medium, Medium-Low, Low)","enum":["Highest","Medium-High","Medium","Medium-Low","Low"]},"count":{"type":"number","description":"Number of switches to this quality level"}}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"country":"India","alpha2":"IN","totalSwitches":{"count":5},"switches":[{"type":"Highest","count":2},{"type":"Medium-High","count":1},{"type":"Medium","count":1},{"type":"Medium-Low","count":1},{"type":"Low","count":0}]}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/world/abr/switches?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/world/abr/switches?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/world/abr/switches?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/world/abr/switches?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/world/abr/switches\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"countries\": \"SOME_ARRAY_VALUE\",\n  \"tags\": \"SOME_ARRAY_VALUE\",\n  \"events\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/world/abr/switches');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'streams' => 'SOME_ARRAY_VALUE',\n  'countries' => 'SOME_ARRAY_VALUE',\n  'tags' => 'SOME_ARRAY_VALUE',\n  'events' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/world/abr/switches?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/world/abr/switches\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"streams\":\"SOME_ARRAY_VALUE\",\"countries\":\"SOME_ARRAY_VALUE\",\"tags\":\"SOME_ARRAY_VALUE\",\"events\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/world/abr/switches?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/world/abr/switches?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/world/abr/switches?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/world/abr/switches?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/world/abr/switches?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&countries=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&events=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/filters/countries":{"get":{"summary":"Available countries","description":"```\nhttps://metrics-api.nanostream.cloud/v2/filters/countries\n```\n\nGet a list of countries, which can be used to apply a country filtering for supported API routes. Take the value of the property `filterValue` and add the value as URL query parameter in the form of `&countries=filterValue` to enable filtering. (e.g. `&countries=DE`)\n\nThe route supports two modes:\n\n- **without `from` and `to`:** all countries known to the service are returned, sorted alphabetically by name.\n- **with `from` and `to`:** only the countries that actually have data for your organization within the given time range are returned.","tags":["Filtering"],"parameters":[{"$ref":"#/components/parameters/filterFrom"},{"$ref":"#/components/parameters/filterTo"},{"$ref":"#/components/parameters/sortByCount"},{"$ref":"#/components/parameters/storage"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","description":"result set","items":{"type":"object","properties":{"countryName":{"type":"string","description":"Country name."},"filterValue":{"type":"string","description":"Value that must be used for filtering this country."}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"countryName":"Germany","filterValue":"DE"}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/filters/countries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&sortByCount=true&storage=longterm' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/filters/countries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&sortByCount=true&storage=longterm\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/filters/countries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&sortByCount=true&storage=longterm\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/filters/countries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&sortByCount=true&storage=longterm\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/filters/countries\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"sortByCount\": \"true\",\n  \"storage\": \"longterm\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/filters/countries');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'sortByCount' => 'true',\n  'storage' => 'longterm'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/filters/countries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&sortByCount=true&storage=longterm\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/filters/countries\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"sortByCount\":\"true\",\"storage\":\"longterm\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/filters/countries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&sortByCount=true&storage=longterm\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/filters/countries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&sortByCount=true&storage=longterm\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/filters/countries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&sortByCount=true&storage=longterm\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/filters/countries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&sortByCount=true&storage=longterm\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/filters/countries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&sortByCount=true&storage=longterm\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/filters/events":{"get":{"summary":"Available events","description":"```\nhttps://metrics-api.nanostream.cloud/v2/filters/events\n```\n\nGet a list of H5Live events, which can be used to apply a event filtering for supported API routes. Take an event and add it as URL query parameter in the form of `&events=event` to enable filtering. (e.g. `&events=fooEvent`). A stream can be tagged with an event ID via [H5Live player configuration (see property `eventId`)](https://docs.nanocosmos.net/docs/nanoplayer/nanoplayer_player_metrics).","tags":["Filtering"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/streamsDefault"},{"$ref":"#/components/parameters/tags"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","description":"result set","items":{"type":"string","description":"Available event"}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":["FooEvent"]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/filters/events?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/filters/events?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/filters/events?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/filters/events?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/filters/events\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"tags\": \"SOME_ARRAY_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/filters/events');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'streams' => 'SOME_ARRAY_VALUE',\n  'tags' => 'SOME_ARRAY_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/filters/events?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/filters/events\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"streams\":\"SOME_ARRAY_VALUE\",\"tags\":\"SOME_ARRAY_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/filters/events?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/filters/events?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/filters/events?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/filters/events?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/filters/events?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/alerting/config/email":{"get":{"summary":"Get all configured email receivers","description":"```\nhttps://metrics-api.nanostream.cloud/v2/alerting/config/email\n```\n\nGet all configured email receivers defined in the alert notification configuration. ","tags":["Alert Notification Configuration"],"requestBody":{"required":false},"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"object","properties":{"configuredEmailReceivers":{"type":"array","items":{"type":"string"}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":{"configuredEmailReceivers":["FoBar@SzB0r"]}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url https://metrics-api.nanostream.cloud/v2/alerting/config/email \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/alerting/config/email\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/alerting/config/email\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/alerting/config/email\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/alerting/config/email\");\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/alerting/config/email');\n$request->setRequestMethod('GET');\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/alerting/config/email\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/alerting/config/email\"\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/alerting/config/email\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/alerting/config/email\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/alerting/config/email\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/alerting/config/email\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/alerting/config/email\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/alerting/config/email/add":{"post":{"summary":"Add a new email receiver","description":"```\nhttps://metrics-api.nanostream.cloud/v2/alerting/config/email/add\n```\n\nAdd a new email receiver to the alert notification configuration.","tags":["Alert Notification Configuration"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["emailReceiver"],"properties":{"emailReceiver":{"type":"string","example":"FoBar@SzB0r"}}}}}},"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"201":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"object","properties":{"configuredEmailReceivers":{"type":"array","items":{"type":"string"}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":{"configuredEmailReceivers":["FoBar@SzB0r"]}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request POST \\\n  --url https://metrics-api.nanostream.cloud/v2/alerting/config/email/add \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE' \\\n  --header 'content-type: application/json' \\\n  --data '{\"emailReceiver\":\"FoBar@SzB0r\"}'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"strings\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/alerting/config/email/add\"\n\n\tpayload := strings.NewReader(\"{\\\"emailReceiver\\\":\\\"FoBar@SzB0r\\\"}\")\n\n\treq, _ := http.NewRequest(\"POST\", url, payload)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.post(\"https://metrics-api.nanostream.cloud/v2/alerting/config/email/add\")\n  .header(\"content-type\", \"application/json\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .body(\"{\\\"emailReceiver\\\":\\\"FoBar@SzB0r\\\"}\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = JSON.stringify({\n  \"emailReceiver\": \"FoBar@SzB0r\"\n});\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"POST\", \"https://metrics-api.nanostream.cloud/v2/alerting/config/email/add\");\nxhr.setRequestHeader(\"content-type\", \"application/json\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"POST\", \"https://metrics-api.nanostream.cloud/v2/alerting/config/email/add\");\n\nreq.headers({\n  \"content-type\": \"application/json\",\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.type(\"json\");\nreq.send({\n  \"emailReceiver\": \"FoBar@SzB0r\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$body = new http\\Message\\Body;\n$body->append('{\"emailReceiver\":\"FoBar@SzB0r\"}');\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/alerting/config/email/add');\n$request->setRequestMethod('POST');\n$request->setBody($body);\n\n$request->setHeaders([\n  'content-type' => 'application/json',\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\npayload = \"{\\\"emailReceiver\\\":\\\"FoBar@SzB0r\\\"}\"\n\nheaders = {\n    'content-type': \"application/json\",\n    'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\"\n    }\n\nconn.request(\"POST\", \"/v2/alerting/config/email/add\", payload, headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/alerting/config/email/add\"\n\npayload = {\"emailReceiver\": \"FoBar@SzB0r\"}\nheaders = {\n    \"content-type\": \"application/json\",\n    \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n}\n\nresponse = requests.request(\"POST\", url, json=payload, headers=headers)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/alerting/config/email/add\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\nrequest.body = \"{\\\"emailReceiver\\\":\\\"FoBar@SzB0r\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\n  \"content-type\": \"application/json\",\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n]\nlet parameters = [\"emailReceiver\": \"FoBar@SzB0r\"] as [String : Any]\n\nlet postData = JSONSerialization.data(withJSONObject: parameters, options: [])\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/alerting/config/email/add\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"POST\"\nrequest.allHTTPHeaderFields = headers\nrequest.httpBody = postData as Data\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/alerting/config/email/add\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"content-type: application/json\");\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\ncurl_easy_setopt(hnd, CURLOPT_POSTFIELDS, \"{\\\"emailReceiver\\\":\\\"FoBar@SzB0r\\\"}\");\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/alerting/config/email/add\");\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nrequest.AddParameter(\"application/json\", \"{\\\"emailReceiver\\\":\\\"FoBar@SzB0r\\\"}\", ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Post,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/alerting/config/email/add\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n    Content = new StringContent(\"{\\\"emailReceiver\\\":\\\"FoBar@SzB0r\\\"}\")\n    {\n        Headers =\n        {\n            ContentType = new MediaTypeHeaderValue(\"application/json\")\n        }\n    }\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/alerting/config/email/delete":{"delete":{"summary":"Remove an existing email receiver","description":"```\nhttps://metrics-api.nanostream.cloud/v2/alerting/config/email/delete\n```\n\nRemove an existing email receiver from the alert notification configuration.","tags":["Alert Notification Configuration"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["emailReceiver"],"properties":{"emailReceiver":{"type":"string","example":"FoBar@SzB0r"}}}}}},"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"object","properties":{"configuredEmailReceivers":{"type":"array","items":{"type":"string"}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":{"configuredEmailReceivers":[[]]}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request DELETE \\\n  --url https://metrics-api.nanostream.cloud/v2/alerting/config/email/delete \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE' \\\n  --header 'content-type: application/json' \\\n  --data '{\"emailReceiver\":\"FoBar@SzB0r\"}'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"strings\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/alerting/config/email/delete\"\n\n\tpayload := strings.NewReader(\"{\\\"emailReceiver\\\":\\\"FoBar@SzB0r\\\"}\")\n\n\treq, _ := http.NewRequest(\"DELETE\", url, payload)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.delete(\"https://metrics-api.nanostream.cloud/v2/alerting/config/email/delete\")\n  .header(\"content-type\", \"application/json\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .body(\"{\\\"emailReceiver\\\":\\\"FoBar@SzB0r\\\"}\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = JSON.stringify({\n  \"emailReceiver\": \"FoBar@SzB0r\"\n});\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"DELETE\", \"https://metrics-api.nanostream.cloud/v2/alerting/config/email/delete\");\nxhr.setRequestHeader(\"content-type\", \"application/json\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"DELETE\", \"https://metrics-api.nanostream.cloud/v2/alerting/config/email/delete\");\n\nreq.headers({\n  \"content-type\": \"application/json\",\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.type(\"json\");\nreq.send({\n  \"emailReceiver\": \"FoBar@SzB0r\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$body = new http\\Message\\Body;\n$body->append('{\"emailReceiver\":\"FoBar@SzB0r\"}');\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/alerting/config/email/delete');\n$request->setRequestMethod('DELETE');\n$request->setBody($body);\n\n$request->setHeaders([\n  'content-type' => 'application/json',\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\npayload = \"{\\\"emailReceiver\\\":\\\"FoBar@SzB0r\\\"}\"\n\nheaders = {\n    'content-type': \"application/json\",\n    'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\"\n    }\n\nconn.request(\"DELETE\", \"/v2/alerting/config/email/delete\", payload, headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/alerting/config/email/delete\"\n\npayload = {\"emailReceiver\": \"FoBar@SzB0r\"}\nheaders = {\n    \"content-type\": \"application/json\",\n    \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n}\n\nresponse = requests.request(\"DELETE\", url, json=payload, headers=headers)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/alerting/config/email/delete\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Delete.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\nrequest.body = \"{\\\"emailReceiver\\\":\\\"FoBar@SzB0r\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\n  \"content-type\": \"application/json\",\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n]\nlet parameters = [\"emailReceiver\": \"FoBar@SzB0r\"] as [String : Any]\n\nlet postData = JSONSerialization.data(withJSONObject: parameters, options: [])\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/alerting/config/email/delete\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"DELETE\"\nrequest.allHTTPHeaderFields = headers\nrequest.httpBody = postData as Data\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"DELETE\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/alerting/config/email/delete\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"content-type: application/json\");\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\ncurl_easy_setopt(hnd, CURLOPT_POSTFIELDS, \"{\\\"emailReceiver\\\":\\\"FoBar@SzB0r\\\"}\");\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/alerting/config/email/delete\");\nvar request = new RestRequest(Method.DELETE);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nrequest.AddParameter(\"application/json\", \"{\\\"emailReceiver\\\":\\\"FoBar@SzB0r\\\"}\", ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Delete,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/alerting/config/email/delete\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n    Content = new StringContent(\"{\\\"emailReceiver\\\":\\\"FoBar@SzB0r\\\"}\")\n    {\n        Headers =\n        {\n            ContentType = new MediaTypeHeaderValue(\"application/json\")\n        }\n    }\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/alerting/config/email/replaceAll":{"put":{"summary":"Replace email receivers","description":"```\nhttps://metrics-api.nanostream.cloud/v2/alerting/config/email/replaceAll\n```\n\nOverwrite the currently configured email receivers with the those specified in the request body. Maximum of 2 email receivers are allowed.","tags":["Alert Notification Configuration"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["emailReceivers"],"properties":{"emailReceivers":{"type":"array","items":{"type":"string","example":"FoBar@SzB0r"}}}}}}},"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"object","properties":{"configuredEmailReceivers":{"type":"array","items":{"type":"string"}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":{"configuredEmailReceivers":["FoBar@SzB0r"]}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request PUT \\\n  --url https://metrics-api.nanostream.cloud/v2/alerting/config/email/replaceAll \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE' \\\n  --header 'content-type: application/json' \\\n  --data '{\"emailReceivers\":[\"FoBar@SzB0r\"]}'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"strings\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/alerting/config/email/replaceAll\"\n\n\tpayload := strings.NewReader(\"{\\\"emailReceivers\\\":[\\\"FoBar@SzB0r\\\"]}\")\n\n\treq, _ := http.NewRequest(\"PUT\", url, payload)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.put(\"https://metrics-api.nanostream.cloud/v2/alerting/config/email/replaceAll\")\n  .header(\"content-type\", \"application/json\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .body(\"{\\\"emailReceivers\\\":[\\\"FoBar@SzB0r\\\"]}\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = JSON.stringify({\n  \"emailReceivers\": [\n    \"FoBar@SzB0r\"\n  ]\n});\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"PUT\", \"https://metrics-api.nanostream.cloud/v2/alerting/config/email/replaceAll\");\nxhr.setRequestHeader(\"content-type\", \"application/json\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"PUT\", \"https://metrics-api.nanostream.cloud/v2/alerting/config/email/replaceAll\");\n\nreq.headers({\n  \"content-type\": \"application/json\",\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.type(\"json\");\nreq.send({\n  \"emailReceivers\": [\n    \"FoBar@SzB0r\"\n  ]\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$body = new http\\Message\\Body;\n$body->append('{\"emailReceivers\":[\"FoBar@SzB0r\"]}');\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/alerting/config/email/replaceAll');\n$request->setRequestMethod('PUT');\n$request->setBody($body);\n\n$request->setHeaders([\n  'content-type' => 'application/json',\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\npayload = \"{\\\"emailReceivers\\\":[\\\"FoBar@SzB0r\\\"]}\"\n\nheaders = {\n    'content-type': \"application/json\",\n    'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\"\n    }\n\nconn.request(\"PUT\", \"/v2/alerting/config/email/replaceAll\", payload, headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/alerting/config/email/replaceAll\"\n\npayload = {\"emailReceivers\": [\"FoBar@SzB0r\"]}\nheaders = {\n    \"content-type\": \"application/json\",\n    \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n}\n\nresponse = requests.request(\"PUT\", url, json=payload, headers=headers)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/alerting/config/email/replaceAll\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Put.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\nrequest.body = \"{\\\"emailReceivers\\\":[\\\"FoBar@SzB0r\\\"]}\"\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\n  \"content-type\": \"application/json\",\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n]\nlet parameters = [\"emailReceivers\": [\"FoBar@SzB0r\"]] as [String : Any]\n\nlet postData = JSONSerialization.data(withJSONObject: parameters, options: [])\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/alerting/config/email/replaceAll\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"PUT\"\nrequest.allHTTPHeaderFields = headers\nrequest.httpBody = postData as Data\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"PUT\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/alerting/config/email/replaceAll\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"content-type: application/json\");\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\ncurl_easy_setopt(hnd, CURLOPT_POSTFIELDS, \"{\\\"emailReceivers\\\":[\\\"FoBar@SzB0r\\\"]}\");\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/alerting/config/email/replaceAll\");\nvar request = new RestRequest(Method.PUT);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nrequest.AddParameter(\"application/json\", \"{\\\"emailReceivers\\\":[\\\"FoBar@SzB0r\\\"]}\", ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Put,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/alerting/config/email/replaceAll\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n    Content = new StringContent(\"{\\\"emailReceivers\\\":[\\\"FoBar@SzB0r\\\"]}\")\n    {\n        Headers =\n        {\n            ContentType = new MediaTypeHeaderValue(\"application/json\")\n        }\n    }\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/alerting/config/webhook":{"get":{"summary":"Get configured webhook receiver","description":"```\nhttps://metrics-api.nanostream.cloud/v2/alerting/config/webhook\n```\n\nRetrieve the currently configured webhook receiver URL for alert notifications.","tags":["Alert Notification Configuration"],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"object","properties":{"configuredWebhookReceiver":{"type":"string","nullable":true}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":{"configuredWebhookReceiver":"https://example.com/webhook"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url https://metrics-api.nanostream.cloud/v2/alerting/config/webhook \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/alerting/config/webhook\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/alerting/config/webhook\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/alerting/config/webhook\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/alerting/config/webhook\");\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/alerting/config/webhook');\n$request->setRequestMethod('GET');\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/alerting/config/webhook\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/alerting/config/webhook\"\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/alerting/config/webhook\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/alerting/config/webhook\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/alerting/config/webhook\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/alerting/config/webhook\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/alerting/config/webhook\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/alerting/config/webhook/add":{"post":{"summary":"Add a new webhook receiver","description":"```\nhttps://metrics-api.nanostream.cloud/v2/alerting/config/webhook/add\n```\n\nAdd a new webhook receiver to the alert notification configuration.","tags":["Alert Notification Configuration"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["webhookUrl"],"properties":{"webhookUrl":{"type":"string","format":"uri","example":"https://example.com/webhook"}}}}}},"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"201":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"object","properties":{"configuredWebhookReceiver":{"type":"string"}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":{"configuredWebhookReceiver":"https://example.com/webhook"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"409":{"description":"Conflict - Too many webhooks configured","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"userInfo":{"type":"object","properties":{"webhook":{"type":"string"},"configuredWebhookUrl":{"type":"string"}}}}},"example":{"statusCode":101017,"statusInfo":"Maximum of 1 webhook receiver allowed","userInfo":{"webhook":"You are not allowed to add another webhook receiver to the alertmanager configuration. Only one webhook receiver allowed","configuredWebhookUrl":"https://existing.webhook.com"}}}}},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request POST \\\n  --url https://metrics-api.nanostream.cloud/v2/alerting/config/webhook/add \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE' \\\n  --header 'content-type: application/json' \\\n  --data '{\"webhookUrl\":\"https://example.com/webhook\"}'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"strings\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/alerting/config/webhook/add\"\n\n\tpayload := strings.NewReader(\"{\\\"webhookUrl\\\":\\\"https://example.com/webhook\\\"}\")\n\n\treq, _ := http.NewRequest(\"POST\", url, payload)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.post(\"https://metrics-api.nanostream.cloud/v2/alerting/config/webhook/add\")\n  .header(\"content-type\", \"application/json\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .body(\"{\\\"webhookUrl\\\":\\\"https://example.com/webhook\\\"}\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = JSON.stringify({\n  \"webhookUrl\": \"https://example.com/webhook\"\n});\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"POST\", \"https://metrics-api.nanostream.cloud/v2/alerting/config/webhook/add\");\nxhr.setRequestHeader(\"content-type\", \"application/json\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"POST\", \"https://metrics-api.nanostream.cloud/v2/alerting/config/webhook/add\");\n\nreq.headers({\n  \"content-type\": \"application/json\",\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.type(\"json\");\nreq.send({\n  \"webhookUrl\": \"https://example.com/webhook\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$body = new http\\Message\\Body;\n$body->append('{\"webhookUrl\":\"https://example.com/webhook\"}');\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/alerting/config/webhook/add');\n$request->setRequestMethod('POST');\n$request->setBody($body);\n\n$request->setHeaders([\n  'content-type' => 'application/json',\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\npayload = \"{\\\"webhookUrl\\\":\\\"https://example.com/webhook\\\"}\"\n\nheaders = {\n    'content-type': \"application/json\",\n    'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\"\n    }\n\nconn.request(\"POST\", \"/v2/alerting/config/webhook/add\", payload, headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/alerting/config/webhook/add\"\n\npayload = {\"webhookUrl\": \"https://example.com/webhook\"}\nheaders = {\n    \"content-type\": \"application/json\",\n    \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n}\n\nresponse = requests.request(\"POST\", url, json=payload, headers=headers)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/alerting/config/webhook/add\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\nrequest.body = \"{\\\"webhookUrl\\\":\\\"https://example.com/webhook\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\n  \"content-type\": \"application/json\",\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n]\nlet parameters = [\"webhookUrl\": \"https://example.com/webhook\"] as [String : Any]\n\nlet postData = JSONSerialization.data(withJSONObject: parameters, options: [])\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/alerting/config/webhook/add\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"POST\"\nrequest.allHTTPHeaderFields = headers\nrequest.httpBody = postData as Data\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/alerting/config/webhook/add\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"content-type: application/json\");\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\ncurl_easy_setopt(hnd, CURLOPT_POSTFIELDS, \"{\\\"webhookUrl\\\":\\\"https://example.com/webhook\\\"}\");\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/alerting/config/webhook/add\");\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nrequest.AddParameter(\"application/json\", \"{\\\"webhookUrl\\\":\\\"https://example.com/webhook\\\"}\", ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Post,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/alerting/config/webhook/add\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n    Content = new StringContent(\"{\\\"webhookUrl\\\":\\\"https://example.com/webhook\\\"}\")\n    {\n        Headers =\n        {\n            ContentType = new MediaTypeHeaderValue(\"application/json\")\n        }\n    }\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/alerting/config/webhook/delete":{"delete":{"summary":"Remove the configured webhook receiver","description":"```\nhttps://metrics-api.nanostream.cloud/v2/alerting/config/webhook/delete\n```\n\nRemove the currently configured webhook receiver from the alert notification configuration.","tags":["Alert Notification Configuration"],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"}}},"example":{"statusCode":1000,"statusInfo":"OK"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"description":"Not Found - Webhook not configured","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"userInfo":{"type":"object","properties":{"webhook":{"type":"string"}}}}},"example":{"statusCode":101016,"statusInfo":"Webhook not found","userInfo":{"webhook":"No webhook was found in the alertmanager configuration."}}}}},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request DELETE \\\n  --url https://metrics-api.nanostream.cloud/v2/alerting/config/webhook/delete \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/alerting/config/webhook/delete\"\n\n\treq, _ := http.NewRequest(\"DELETE\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.delete(\"https://metrics-api.nanostream.cloud/v2/alerting/config/webhook/delete\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"DELETE\", \"https://metrics-api.nanostream.cloud/v2/alerting/config/webhook/delete\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"DELETE\", \"https://metrics-api.nanostream.cloud/v2/alerting/config/webhook/delete\");\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/alerting/config/webhook/delete');\n$request->setRequestMethod('DELETE');\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"DELETE\", \"/v2/alerting/config/webhook/delete\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/alerting/config/webhook/delete\"\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"DELETE\", url, headers=headers)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/alerting/config/webhook/delete\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Delete.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/alerting/config/webhook/delete\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"DELETE\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"DELETE\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/alerting/config/webhook/delete\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/alerting/config/webhook/delete\");\nvar request = new RestRequest(Method.DELETE);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Delete,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/alerting/config/webhook/delete\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/alerting/config/webhook/replace":{"put":{"summary":"Replace webhook receiver","description":"```\nhttps://metrics-api.nanostream.cloud/v2/alerting/config/webhook/replace\n```\n\nReplace the existing webhook receiver with a new one, or remove the webhook receiver if no webhook URL is provided.","tags":["Alert Notification Configuration"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"webhookUrl":{"type":"string","format":"uri","example":"https://example.com/webhook","description":"The new webhook URL. If not provided or empty, the webhook will be removed."}}}}}},"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"object","properties":{"configuredWebhookUrl":{"type":"string","nullable":true}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":{"configuredWebhookUrl":"https://example.com/webhook"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request PUT \\\n  --url https://metrics-api.nanostream.cloud/v2/alerting/config/webhook/replace \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE' \\\n  --header 'content-type: application/json' \\\n  --data '{\"webhookUrl\":\"https://example.com/webhook\"}'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"strings\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/alerting/config/webhook/replace\"\n\n\tpayload := strings.NewReader(\"{\\\"webhookUrl\\\":\\\"https://example.com/webhook\\\"}\")\n\n\treq, _ := http.NewRequest(\"PUT\", url, payload)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.put(\"https://metrics-api.nanostream.cloud/v2/alerting/config/webhook/replace\")\n  .header(\"content-type\", \"application/json\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .body(\"{\\\"webhookUrl\\\":\\\"https://example.com/webhook\\\"}\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = JSON.stringify({\n  \"webhookUrl\": \"https://example.com/webhook\"\n});\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"PUT\", \"https://metrics-api.nanostream.cloud/v2/alerting/config/webhook/replace\");\nxhr.setRequestHeader(\"content-type\", \"application/json\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"PUT\", \"https://metrics-api.nanostream.cloud/v2/alerting/config/webhook/replace\");\n\nreq.headers({\n  \"content-type\": \"application/json\",\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.type(\"json\");\nreq.send({\n  \"webhookUrl\": \"https://example.com/webhook\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$body = new http\\Message\\Body;\n$body->append('{\"webhookUrl\":\"https://example.com/webhook\"}');\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/alerting/config/webhook/replace');\n$request->setRequestMethod('PUT');\n$request->setBody($body);\n\n$request->setHeaders([\n  'content-type' => 'application/json',\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\npayload = \"{\\\"webhookUrl\\\":\\\"https://example.com/webhook\\\"}\"\n\nheaders = {\n    'content-type': \"application/json\",\n    'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\"\n    }\n\nconn.request(\"PUT\", \"/v2/alerting/config/webhook/replace\", payload, headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/alerting/config/webhook/replace\"\n\npayload = {\"webhookUrl\": \"https://example.com/webhook\"}\nheaders = {\n    \"content-type\": \"application/json\",\n    \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n}\n\nresponse = requests.request(\"PUT\", url, json=payload, headers=headers)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/alerting/config/webhook/replace\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Put.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\nrequest.body = \"{\\\"webhookUrl\\\":\\\"https://example.com/webhook\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\n  \"content-type\": \"application/json\",\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n]\nlet parameters = [\"webhookUrl\": \"https://example.com/webhook\"] as [String : Any]\n\nlet postData = JSONSerialization.data(withJSONObject: parameters, options: [])\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/alerting/config/webhook/replace\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"PUT\"\nrequest.allHTTPHeaderFields = headers\nrequest.httpBody = postData as Data\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"PUT\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/alerting/config/webhook/replace\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"content-type: application/json\");\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\ncurl_easy_setopt(hnd, CURLOPT_POSTFIELDS, \"{\\\"webhookUrl\\\":\\\"https://example.com/webhook\\\"}\");\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/alerting/config/webhook/replace\");\nvar request = new RestRequest(Method.PUT);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nrequest.AddParameter(\"application/json\", \"{\\\"webhookUrl\\\":\\\"https://example.com/webhook\\\"}\", ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Put,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/alerting/config/webhook/replace\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n    Content = new StringContent(\"{\\\"webhookUrl\\\":\\\"https://example.com/webhook\\\"}\")\n    {\n        Headers =\n        {\n            ContentType = new MediaTypeHeaderValue(\"application/json\")\n        }\n    }\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/captions/usage/timeseries":{"get":{"summary":"Live Captions uptime usage timeseries","description":"```\nhttps://metrics-api.nanostream.cloud/v2/captions/usage/timeseries\n```\n\nGet a time series of live captions uptime usage in seconds","tags":["Live Captions metrics"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/interval"},{"$ref":"#/components/parameters/streamsDefault"},{"$ref":"#/components/parameters/tags"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"timestamp":{"type":"integer","description":"Unix timestamp of the given time interval."},"timestampAsString":{"type":"string"},"whisper":{"type":"object","properties":{"seconds":{"type":"number","description":"Total Whisper uptime in seconds for the interval."}}},"deepgram":{"type":"object","properties":{"seconds":{"type":"number","description":"Total Deepgram uptime in seconds for the interval."}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"timestamp":1671840000,"timestampAsString":"2026-12-01 00:00:00","whisper":{"seconds":3621.5},"deepgram":{"seconds":1204}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/captions/usage/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/captions/usage/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/captions/usage/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/captions/usage/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/captions/usage/timeseries\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"interval\": \"SOME_STRING_VALUE\",\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"tags\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/captions/usage/timeseries');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'interval' => 'SOME_STRING_VALUE',\n  'streams' => 'SOME_ARRAY_VALUE',\n  'tags' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/captions/usage/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/captions/usage/timeseries\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"interval\":\"SOME_STRING_VALUE\",\"streams\":\"SOME_ARRAY_VALUE\",\"tags\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/captions/usage/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/captions/usage/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/captions/usage/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/captions/usage/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/captions/usage/timeseries?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&interval=SOME_STRING_VALUE&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/captions/usage/language/source":{"get":{"summary":"Live Captions source language breakdown","description":"```\nhttps://metrics-api.nanostream.cloud/v2/captions/usage/language/source\n```\n\nGet live captions uptime usage in seconds broken down by source language, sorted in descending order (max. result length: 1000).","tags":["Live Captions metrics"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/streamsDefault"},{"$ref":"#/components/parameters/tags"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"sourceLanguage":{"type":"string","description":"Source language code (e.g. \"en\")."},"uptime":{"type":"object","properties":{"seconds":{"type":"number","description":"Total live captions uptime in seconds for the source language."}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"sourceLanguage":"en","uptime":{"seconds":7242}},{"sourceLanguage":"de","uptime":{"seconds":1034.9}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/captions/usage/language/source?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/captions/usage/language/source?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/captions/usage/language/source?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/captions/usage/language/source?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/captions/usage/language/source\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"tags\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/captions/usage/language/source');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'streams' => 'SOME_ARRAY_VALUE',\n  'tags' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/captions/usage/language/source?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/captions/usage/language/source\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"streams\":\"SOME_ARRAY_VALUE\",\"tags\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/captions/usage/language/source?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/captions/usage/language/source?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/captions/usage/language/source?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/captions/usage/language/source?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/captions/usage/language/source?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/captions/usage/language/target":{"get":{"summary":"Live Captions target language breakdown","description":"```\nhttps://metrics-api.nanostream.cloud/v2/captions/usage/language/target\n```\n\nGet live captions uptime usage in seconds broken down by target language, sorted in descending order (max. result length: 1000).","tags":["Live Captions metrics"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/streamsDefault"},{"$ref":"#/components/parameters/tags"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"targetLanguage":{"type":"string","description":"Target language code (e.g. \"nl\")."},"uptime":{"type":"object","properties":{"seconds":{"type":"number","description":"Total live captions uptime in seconds for the target language."}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"targetLanguage":"nl","uptime":{"seconds":5120}},{"targetLanguage":"de","uptime":{"seconds":2034.5}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/captions/usage/language/target?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/captions/usage/language/target?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/captions/usage/language/target?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/captions/usage/language/target?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/captions/usage/language/target\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"tags\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/captions/usage/language/target');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'streams' => 'SOME_ARRAY_VALUE',\n  'tags' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/captions/usage/language/target?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/captions/usage/language/target\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"streams\":\"SOME_ARRAY_VALUE\",\"tags\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/captions/usage/language/target?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/captions/usage/language/target?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/captions/usage/language/target?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/captions/usage/language/target?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/captions/usage/language/target?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}},"/v2/captions/usage/stream/uptime":{"get":{"summary":"Live Captions uptime usage by stream","description":"```\nhttps://metrics-api.nanostream.cloud/v2/captions/usage/stream/uptime\n```\n\nGet live captions uptime usage in seconds broken down by stream name, sorted in descending order (max. result length: 1000).","tags":["Live Captions metrics"],"parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/streamsDefault"},{"$ref":"#/components/parameters/tags"},{"$ref":"#/components/parameters/format"}],"security":[{"X-ACCESS-TOKEN":[]}],"responses":{"200":{"description":"OK, request was successful.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer"},"statusInfo":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"stream":{"type":"string","description":"Stream name."},"uptime":{"type":"object","properties":{"seconds":{"type":"number","description":"Total live captions uptime in seconds for the stream."}}}}}}}},"example":{"statusCode":1000,"statusInfo":"OK","data":[{"stream":"FooBar-SzB0r","uptime":{"seconds":7242}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/TokenInvalid"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/StreamNotFound"},"503":{"$ref":"#/components/responses/NginxRateLimiting"}},"x-codeSamples":[{"lang":"Shell + Curl","source":"curl --request GET \\\n  --url 'https://metrics-api.nanostream.cloud/v2/captions/usage/stream/uptime?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE' \\\n  --header 'X-ACCESS-TOKEN: REPLACE_KEY_VALUE'"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://metrics-api.nanostream.cloud/v2/captions/usage/stream/uptime?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Unirest","source":"HttpResponse<String> response = Unirest.get(\"https://metrics-api.nanostream.cloud/v2/captions/usage/stream/uptime?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n  .header(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\")\n  .asString();"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n  if (this.readyState === this.DONE) {\n    console.log(this.responseText);\n  }\n});\n\nxhr.open(\"GET\", \"https://metrics-api.nanostream.cloud/v2/captions/usage/stream/uptime?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\n\nxhr.send(data);"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://metrics-api.nanostream.cloud/v2/captions/usage/stream/uptime\");\n\nreq.query({\n  \"from\": \"2026-03-14T15:44\",\n  \"to\": \"2026-03-14T15:54\",\n  \"streams\": \"SOME_ARRAY_VALUE\",\n  \"tags\": \"SOME_ARRAY_VALUE\",\n  \"format\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n  \"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"\n});\n\nreq.end(function (res) {\n  if (res.error) throw new Error(res.error);\n\n  console.log(res.body);\n});\n"},{"lang":"Php + Http2","source":"<?php\n\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n\n$request->setRequestUrl('https://metrics-api.nanostream.cloud/v2/captions/usage/stream/uptime');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n  'from' => '2026-03-14T15:44',\n  'to' => '2026-03-14T15:54',\n  'streams' => 'SOME_ARRAY_VALUE',\n  'tags' => 'SOME_ARRAY_VALUE',\n  'format' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n  'X-ACCESS-TOKEN' => 'REPLACE_KEY_VALUE'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"metrics-api.nanostream.cloud\")\n\nheaders = { 'X-ACCESS-TOKEN': \"REPLACE_KEY_VALUE\" }\n\nconn.request(\"GET\", \"/v2/captions/usage/stream/uptime?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://metrics-api.nanostream.cloud/v2/captions/usage/stream/uptime\"\n\nquerystring = {\"from\":\"2026-03-14T15:44\",\"to\":\"2026-03-14T15:54\",\"streams\":\"SOME_ARRAY_VALUE\",\"tags\":\"SOME_ARRAY_VALUE\",\"format\":\"SOME_STRING_VALUE\"}\n\nheaders = {\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://metrics-api.nanostream.cloud/v2/captions/usage/stream/uptime?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"X-ACCESS-TOKEN\"] = 'REPLACE_KEY_VALUE'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"X-ACCESS-TOKEN\": \"REPLACE_KEY_VALUE\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://metrics-api.nanostream.cloud/v2/captions/usage/stream/uptime?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\")! as URL,\n                                        cachePolicy: .useProtocolCachePolicy,\n                                    timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n  if (error != nil) {\n    print(error)\n  } else {\n    let httpResponse = response as? HTTPURLResponse\n    print(httpResponse)\n  }\n})\n\ndataTask.resume()"},{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://metrics-api.nanostream.cloud/v2/captions/usage/stream/uptime?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"X-ACCESS-TOKEN: REPLACE_KEY_VALUE\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://metrics-api.nanostream.cloud/v2/captions/usage/stream/uptime?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\");\nIRestResponse response = client.Execute(request);"},{"lang":"Csharp + Httpclient","source":"var client = new HttpClient();\nvar request = new HttpRequestMessage\n{\n    Method = HttpMethod.Get,\n    RequestUri = new Uri(\"https://metrics-api.nanostream.cloud/v2/captions/usage/stream/uptime?from=2026-03-14T15%3A44&to=2026-03-14T15%3A54&streams=SOME_ARRAY_VALUE&tags=SOME_ARRAY_VALUE&format=SOME_STRING_VALUE\"),\n    Headers =\n    {\n        { \"X-ACCESS-TOKEN\", \"REPLACE_KEY_VALUE\" },\n    },\n};\nusing (var response = await client.SendAsync(request))\n{\n    response.EnsureSuccessStatusCode();\n    var body = await response.Content.ReadAsStringAsync();\n    Console.WriteLine(body);\n}"}]}}}}
