This document is an API-specific implementation guide for the LEAP Concurrent Streams API. It is designed to be used together with the LEAP Common API Conventions Reference.
The common guide applies unless this document provides API-specific guidance or an API-specific override.
Concurrent Streams API provides a standardized way for authorized subscribers to retrieve near-real-time viewership information for live streams while live events are occurring.
The API is intended to help advertising systems:
Forecast API is used before the event for planning.
Concurrent Streams API is used during the event for live adjustment.
Once an event is live, Concurrent Streams API should be treated as the more relevant signal for current concurrency.
Concurrent Streams API is a retrieval API. A subscriber calls the Streams Data Provider endpoint and receives a snapshot of live stream counts for events the subscriber is authorized to access.
Typical request flow:
The primary method is:
GET /concurrentstreams
The common guide describes general HTTP method semantics. This API-specific guide does not define consumer-facing create, update, patch, or delete workflows for stream-count resources.
A Concurrent Streams request may include:
| Field | Type | Guidance |
|---|---|---|
version |
string | API version, such as 1.0.0. |
requestor |
string | Authorized party requesting information. Recommended unless anonymous access is allowed. |
sdp |
string | Streams Data Provider filter. Recommended when one endpoint provides data from multiple providers. |
A Concurrent Streams response includes:
| Field | Type | Guidance |
|---|---|---|
version |
string | API version, such as 1.0.0. |
timestamp |
integer | Snapshot generation time. The API specification describes this as a Unix timestamp in milliseconds. |
streamsdata |
array of objects | Stream data requested by the caller. |
| Field | Type | Guidance |
|---|---|---|
sdp |
string | Streams Data Provider. |
mediastreams |
array of objects | Snapshot data for live media streams. |
| Field | Type | Guidance |
|---|---|---|
content |
object | AdCOM Content object used to identify the live event. |
eventstart |
integer | Event start time. The API specification describes this as Unix timestamp in milliseconds. |
eventend |
integer | Event end time. The API specification describes this as Unix timestamp in milliseconds. |
streamcount |
array of objects | Regional SSAI and/or CSAI stream counts. |
| Field | Type | Guidance |
|---|---|---|
region |
integer | Region code representing traffic distribution geography. |
sstreams |
integer | Concurrent SSAI streams. At least one of sstreams or cstreams should be present. |
cstreams |
integer | Concurrent CSAI streams. At least one of sstreams or cstreams should be present. |
Concurrent Streams API consumers need to associate current stream counts with the same event and content referenced in planning, bidding, and reporting systems.
Providers should include stable content identifiers whenever possible.
Two equally valid methods may be used for cross-API identity correlation:
content.id): A consistent publisher-provided identifier shared across the Forecast API, Concurrent Streams API, and OpenRTB.content.data[].cids[]): A consistent external content identifier, qualified by its associated source (content.data[].name), shared across participating systems.Neither method is inherently preferred. Implementers should use whichever identifier is consistently supported and agreed upon by participating systems. Both may be provided.
When shared identifiers are unavailable, event timing and stable content metadata may assist with correlation but should not be considered guaranteed unique identifiers.
Where possible, the same identifiers should be preserved in OpenRTB bid requests and downstream reporting systems. See the Common API Guidance for additional cross-API identity correlation considerations.
The region field should represent coarse traffic distribution areas useful for infrastructure and demand-system scaling.
Providers and subscribers should agree on the region-code mapping before production use.
Examples of useful regional grouping include:
The sstreams field represents concurrent server-side ad insertion streams. Server-guided ad insertion workflows should be treated as SSAI workflows for the purpose of this API.
The cstreams field represents concurrent client-side ad insertion streams.
At least one of sstreams or cstreams should be present for each stream-count entry.
The response timestamp indicates when the stream-count snapshot was generated.
Consumers should compare the response timestamp to local receipt time and treat old snapshots as stale.
Suggested starting guidance for working group review:
| Event State | Possible Polling Frequency | Suggested Staleness Threshold |
|---|---|---|
| Pre-event warmup | Every 5 minutes | 10 minutes |
| Live event | Every 30-60 seconds | 2 minutes |
| Peak moments | Every 15-30 seconds | 60 seconds |
| Post-event wind-down | Every 5 minutes | 10 minutes |
Providers and consumers should tune these values based on provider capacity, event scale, and operational need.
Concurrent Streams data is operationally time-sensitive.
Consumers should not rely on aggressively cached responses during the live event. Short-lived caching may be appropriate for provider protection, but cache TTLs should be aligned with the expected polling interval and staleness threshold.
Consumers should use Concurrent Streams signals to:
{
"version": "1.0.0",
"timestamp": 1752007200000,
"streamsdata": [
{
"sdp": "provider-1",
"mediastreams": [
{
"content": {
"id": "event-content-12345",
"title": "Championship Event",
"series": "Generic Sports Series",
"data": [{
"name": "id-provider.example",
"cids": ["shared-content-id-12345"]
}]
},
"eventstart": 1752000000000,
"eventend": 1752014400000,
"streamcount": [
{
"region": 1,
"sstreams": 900000,
"cstreams": 300000
},
{
"region": 2,
"sstreams": 700000,
"cstreams": 250000
}
]
}
]
}
]
}
streamsdata, not a generic data array.