GuidesAPI ReferenceRelease Notes
HomeLog InHome
Guides

Stories feeds API

Filter parameters

The following set of parameters is available for the GET methods. When specified in the query, these parameters act as filters, so each one narrows down the request. Applying more than one filter behaves as an ‘AND’ statement.

For example, filtering by player ‘LeBron James’ and game ‘12345’ will result in clips of ‘LeBron James’ from that game only.

Parameter nameDescription
/{id}Returns only the object corresponding to the specified ID and ignores other parameters. The ID provided is the internal ID as defined by WSC
pageSizeLimits the maximum number of results for the query. The maximum value is 1000
competitionIdThe competition ID is a unique identifier for a specific competition. This ID is essential for filtering and querying data related to specific competitions
gameIDFilters by game ID as defined by the data provider
teamIDFilters by team ID as defined by the data provider
playerIDFilters by player ID as defined by the data provider
startDateReturns only events that occurred after the specified date and time. Values should be ISO8601 formatted
endDateReturns only events that occurred before the specified date and time. Values should be ISO8601 formatted

Usage example

Example of a filtered API query

https://wscgateway.azurewebsites.net/api/stories?query.competitionID={competition_id}query.gameID={game_id}&query.teamID={team_id}&query.playerID={player_id}&query.startDate={start_date}&query.endDate={end_date}&token={token}

Feed structure

Feeds are provided as JSON messages, each containing a structured set of objects. The following sections describe the main objects returned by the API.

Object Types

The API handles various object types, each representing a different element within the WSC. Below is a summary of these object types:

NameDescription
StoryRepresents a high-level published story, which can be automatically or manually created
ProviderIDA unique identifier for an object as defined by the data provider. Used as a reference to the data provider data
PlayerRepresents a player
TeamRepresents a team
GameRepresents a game
VideoResolutionProvides details on the height and width of a video
VideoCreationSettingsParameters defining how the video was created

Object Structure

Story

The Story object is the central element in the Feeds API. It encapsulates all relevant metadata and media associated with a story.

NameTypeOccursRemarks
IdString1..1A unique identifier as stored in WSC. This ID is used to fetch specific stories, as outlined in the Filter parameters section.
titleString1..1The title of the story
sdkIdString0..1The SDK ID associated with the story. This unique identifier is linked to the SDK version used to create the story, which is useful for managing and tracking SDK-dependent content.
descriptionString1..1Description of the story.
storyUrlString0..1A URL providing direct access to the HTML page for the specific story. This URL may be crucial for HTML-based applications, depending on your integration. Utilize it according to your specific requirements.
geoRestrictionObject0..1*Deprecated**: geoRestrictionmust not be used in new implementations. Use geoTargeting instead.
geoTargetingObject0..1The geoTargeting object allows for more refined geographical content management. It includes options to specify both includedGeos and excludedGeos, offering more control over where the story can be accessed. If the geoTargeting field is null or not present, it indicates that the story has no specific geographical restrictions or targeting, meaning it is accessible globally without any regional limitations
publishDateDateTime1..1The date and time when the story was published in the feed
publishMethodString1..1Story published automatically by a rule or manually by a user or via AVGen’s Create flow.
AUTOMATIC Story published automatically based on predefined rules.
PLATFORM Story published via the platform's standard content publishing workflow.
MANUAL Story published manually by a user or content manager
liveBoolean1..1Indicates whether the story is live in WSC meaning that it should continue to get automatic updates
competitionIdString1..1The ID of the competition of which this story was generated
creationSettingsStoryCreationSettings0..1Details regarding the creation of the story. For automatically created stories only
storyThumbnailUrlString0..1Single URL pointing to the primary thumbnail image for the story
storyThumbnailUrlsList of ThumbnailVersion1..*URLs of the story thumbnail and their corresponding aspect ratio
lastUpdateTimeDateTime1..1The date and time when this story was updated. A story is updated when one of its constituent pages is updated OR its live indication changes

ProviderID

The ProviderID object refers to a unique identifier as defined by the data provider.

NameTypeOccursDescription
providerString1..1The name of the provider
idString1..1The unique identifier of the relevant object as defined by the provider

Player

The Player object represents a player in the context of a game or competition.

NameTypeOccursDescription
providerPlayerIDProviderID1..*A set of IDs of the player as defined by the different providers
teamTeam0..1The team to which this player belongs
nameString1..1Name of the player as defined in WSC

Team

The Team object represents a team in the context of a game or competition.

NameTypeOccursDescription
providerTeamIDProviderID1..*A set of IDs of the team as defined by the different providers
nameString1..1Name of the team as defined in WSC
localeString1..1Indicates whether the team is Home or Visitor
scoreString1..1The score of the team at the time of the event.

Game

The Game object contains details about a specific game within a competition.

NameTypeOccursDescription
idString1..1Unique identifier as stored in WSC
competitionIdString1..1The ID of the competition to which this game belongs
providerGameIDProviderID1..*A set of IDs of the game as defined by the different providers
gameDateDate1..1Date & Time of the game
teamsList of Team0..*List of teams participating in the event
gameStatusString1..1Scheduled / Live / Ended / Postponed / Ignored. Status of the game at the time of querying
ScheduledThe game is scheduled and has not yet started
Live: The game is currently in progress
Ended: The game has finished
Ignored: The game has been ignored for certain reasons
Postponed: The game has been postponed to a later date
videosList of GameVideo0..*List of available full game videos
stadiumString0..1The name of the stadium where the game took place

VideoResolution

The VideoResolution object provides the dimensions of a video in terms of height and width.

NameTypeOccursDescription
heightInt1..1Height in pixels
widthInt1..1Width in pixels

GameVideo

The GameVideo object contains information about a specific video related to a game.

NameTypeOccursDescription
StreamNameString1..1Name of the stream (e.g., Home, Away, National)
UrlString1..1URL of the video

VideoVersion

The VideoVersion object provides details about different versions of a video.

NameTypeOccursDescription
md5String1..1MD5 checksum of the video. Optional parameter, depending on configuration
urlString1..1URL of the video version

ThumbnailVersion

The ThumbnailVersion object contains information about different versions of thumbnail images for videos.

NameTypeOccursDescription
urlString1..1URL of the video version
aspectRatioString1..1Aspect ratio of the thumbnail (e.g., 16:9, 1:1, 4:5, 9:16)

StoryCreationSettings

The StoryCreationSettings object provides details regarding the creation of a story, particularly those created automatically.

NameTypeOccursDescription
ruleNameString0..1The name of the rule that created the Story. Relevant only for stories created automatically by a rule
creationTimePeriodString1..1Indicates the time period during which the story was created (e.g., IN-GAME, POST-GAME).
PRE-GAME: Indicates that the story was created before the game.
IN-GAME: Indicates that the story was created during the game. POST-GAME: Indicates that the story was created after the game
storyTypeString1..1Type of the story, such as Highlights, Top plays, etc.
Top Plays A story type focusing on the top plays of a game or event.
Highlight: A story type that compiles the highlights of a game or event.
Mix: A story type that combines various clips from different sources.
Condensed A story type that offers a shortened version of the full event.
Story A general story type, often used for narrative-style compilations.

KeyValue

The KeyValue object is a generic key-value pair used throughout the API.

NameTypeOccursDescription
keyString1..1Name of the parameter or field
valueString1..1Value of the parameter or field as stored by WSC

Competition

The Competition object provides details about a specific competition within the WSC system.

NameTypeOccursDescription
competitionNameString1..1Name of the Competition
competitionIdString1..1ID of the Competition

JSON example

{
  "id": "0A30DB1DA38FB0AA589FC4542338BECC2FAB7D00",
  "title": "Team A vs.Team B - Game Highlights",
  "sdkId": "66ba3c724167b0d08aaas1c2",
  "storyUrl": "https://the-story-url.html",
  "geoTargeting": {
    "includedGeos": [
      "us",
      "ar"
    ]
  },
  "game": {
    "id": "12810a30-952f-b051-25d8-3aad152c13dd",
    "competitionId": "22",
    "providerGameId": [
      {
        "provider": "Provider name",
        "id": "123456789"
      }
    ],
    "gameDate": "2024-07-21T21:00:00",
    "teams": [
      {
        "providerTeamId": [
          {
            "provider": "Provider name",
            "id": "123456789"
          }
        ],
        "name": "Team A name",
        "locale": "Home",
        "score": "98"
      },
      {
        "providerTeamId": [
          {
            "provider": "Provider name",
            "id": "987654321"
          }
        ],
        "name": "Team B name ",
        "locale": "Visitor",
        "score": "103"
      }
    ],
    "gameStatus": "Ended",
    "stadium": "stadium name"
  },
  "description": "Team A vs.Team B - Game Highlights, 21-07-24, Regular Season, 2024-25",
  "publishDate": "2024-08-12T16:46:47.211137Z",
  "publishMethod": "AUTOMATIC",
  "live": false,
  "competitionId": "22",
  "creationSettings": {
    "ruleName": "EVERY Game - Game Highlights",
    "creationTimePeriod": "POST-GAME",
    "storyType": "Highlight"
  },
  "storyThumbnailUrl": "https://thumbnail.jpg",
  "storyThumbnailUrls": [
    {
      "url": "https://thumbnail1.jpg",
      "aspectRatio": "1x1"
    },
    {
      "url": "https://thumbnail2.jpg",
      "aspectRatio": "2x3"
    },
    {
      "url": "https://thumbnail3.jpg",
      "aspectRatio": "16x9"
    }
  ],
  "lastUpdateTime": "2024-08-12T16:46:48.8927688Z"
}

Did this page help you?