Storm docs logo
Search the docs.../
Explore Storm Products

Cluster Viewers Geolocation

Returns geolocation data for active viewers, suitable for displaying on a map.

Request

PropertyValue
MethodGET
URL/api/cluster/viewers/geolocation
Content-Typeapplication/json
AuthenticationBearer Token
Request
Code iconbash
curl -X GET "{BASE_URL}/api/cluster/viewers/geolocation" \
  -H "Authorization: Bearer YOUR_TOKEN"

Response Body

Developer Info

ParameterTypeDescription
data.devobjectDevelopment/debug information
data.dev.aggregationModestringMarker aggregation mode (e.g., "AUTO", "NONE", "CLUSTERED")

Statistics

ParameterTypeDescription
data.statsobjectSummary statistics for the map
data.stats.isClusteredbooleanIndicates if markers are clustered
data.stats.totalMarkersintegerTotal number of markers on the map

Markers

ParameterTypeDescription
data.markersarrayArray of map markers
data.markers[].typestringMarker type (e.g., "individual" for single viewer, "cluster" for grouped viewers)
data.markers[].positionnumber[]Geographic coordinates as [latitude, longitude]
data.markers[].dataobjectViewer data associated with this marker
data.markers[].data.connectionIdstringUnique identifier of the viewer session
data.markers[].data.streamKeystringStream key being viewed
data.markers[].data.outBandwidthintegerOutgoing bandwidth in bytes/sec
data.markers[].data.healthScoreintegerConnection health score (0-100)

Timestamp

| Parameter | Type | Description | |------------------|---------|--------------------------------------------|} | data.timestamp | integer | Data timestamp (Unix timestamp in ms) |

Metadata

ParameterTypeDescription
meta.executionTimeintegerRequest processing time in milliseconds
meta.generatedAtintegerResponse generation timestamp (Unix timestamp in ms)
Successful Response (200)
Code iconjson
{
  "data": {
    "dev": {
      "aggregationMode": "AUTO"
    },
    "stats": {
      "isClustered": false,
      "totalMarkers": 1
    },
    "markers": [
      {
        "data": {
          "streamKey": "123",
          "connectionId": "v_88uzmg57ml98uni0",
          "outBandwidth": 447669,
          "healthScore": 88
        },
        "position": [
          53.0176,
          18.6202
        ],
        "type": "individual"
      }
    ],
    "timestamp": 1770283311253
  },
  "meta": {
    "executionTime": 2,
    "generatedAt": 1770283311253
  }
}
ParameterTypeDescription
messagestringHuman-readable error message
Error Response (4xx/5xx)
Code iconjson
{
  "message": "Error message"
}
Support Needed?

Create a free ticket and our support team will provide you necessary assistance.

Blog
Support
About us
Patents
Term of use
Privacy policy
Contact
©2026 Storm Streaming Media. All Rights Reserved.