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

Stream Viewer Geolocations

Returns geographic locations of viewers watching a specific stream, with optional marker clustering.

Request

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

Path Parameters

ParameterTypeRequiredDescription
appNamestringYesApplication name
streamKeystringYesStream key
Request
Code iconbash
curl -X GET "{BASE_URL}/api/streams/{appName}/{streamKey}/viewers/geolocation" \
  -H "Authorization: Bearer YOUR_TOKEN"

Query Parameters

ParameterTypeRequiredDefaultDescription
aggregation"none" | "auto" | "cluster"No-Marker aggregation mode
With query parameters
Code iconbash
curl -X GET "{BASE_URL}/api/streams/{appName}/{streamKey}/viewers/geolocation?aggregation=value" \
  -H "Authorization: Bearer YOUR_TOKEN"

Response Body

Developer Info

ParameterTypeDescription
data.devobjectDevelopment/debug information
data.dev.aggregationModestringApplied aggregation mode ("NONE", "AUTO", or "CLUSTER")

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
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 per second
data.markers[].data.healthScoreintegerConnection health score (0-100)

Timestamp

ParameterTypeDescription
data.timestampintegerData 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": [
      {
        "type": "individual",
        "position": [53.0176, 18.6202],
        "data": {
          "connectionId": "v_nkro1il5mipys3xm",
          "streamKey": "f1",
          "outBandwidth": 231460,
          "healthScore": 0
        }
      }
    ],
    "timestamp": 1764763772219
  },
  "meta": {
    "executionTime": 2,
    "generatedAt": 1764763772220
  }
}

Error Response (4xx/5xx)

ParameterTypeDescription
messagestringHuman-readable error message
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.