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

Viewers Geolocation

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

Request

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

Response Body

Developer Info

ParameterTypeDescription
data.devobjectDevelopment/debug information
data.dev.aggregationModestring???

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[].typestring???
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_xeg3rs5ymij1t1wb",
          "streamKey": "f1",
          "outBandwidth": 391378,
          "healthScore": 0
        }
      }
    ],
    "timestamp": 1764345586514
  },
  "meta": {
    "executionTime": 0,
    "generatedAt": 1764345586514
  }
}

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.