Admin API / Types

Livestream

Object

A seller's livestream and its lifecycle status.

Requires a client key with one of these scopes: admin:livestreams:read

The requirement applies to every field of Livestream unless that field declares its own scopes.

type Livestream implements Node

Fields

FieldTypeDescription
activeFacebookBroadcastFacebookBroadcastSession
The newest entry of activeFacebookBroadcasts.Deprecated. Use activeFacebookBroadcasts.Requires a client key with one of these scopes: admin:livestreams:read admin:social:read
activeFacebookBroadcasts[FacebookBroadcastSession!]!
Every Facebook broadcast still open for this livestream, newest first, one per video. Two concurrent starts can leave two videos on one target. It stays readable after the livestream ends or is cancelled: ending a livestream does not end the Facebook broadcasts. An entry leaves the list once its broadcast is stopped, or 12 hours after it was started. Readable with admin:livestreams:read or admin:social:read, so the first-party apps can restore a cast after a relaunch.Requires a client key with one of these scopes: admin:livestreams:read admin:social:read
activeInstagramBroadcastInstagramBroadcastSession
The Instagram simulcast currently running for this livestream, if any. Instagram has no API for the broadcast itself: this is the Agora converter republishing the livestream into the ingest URL the host pasted. It becomes null once the host stops it, once Agora reports the converter failed or destroyed, or 12 hours after it started, whichever comes first. Readable with admin:livestreams:read or admin:social:read, so the first-party apps can restore a cast after a relaunch.Requires a client key with one of these scopes: admin:livestreams:read admin:social:read
activeYoutubeBroadcastYoutubeBroadcastSession
The YouTube broadcast most recently started for this livestream, if one is still open. It stays readable after the livestream ends or is cancelled — ending a livestream does not end the YouTube broadcast, and liveBroadcastId is what stopYoutubeBroadcast needs. It becomes null once the broadcast is stopped, or 12 hours after it was started, whichever comes first. Readable with admin:livestreams:read or admin:social:read, so the first-party apps can restore a cast after a relaunch.Requires a client key with one of these scopes: admin:livestreams:read admin:social:read
channelNameString!
The broadcast channel identifier used to join the stream's realtime session.
collectionsLivestreamCollectionConnection!
Collections that hold the livestream, hidden collections included, in collection position order. Deleted collections are omitted. Reading a collection's fields needs the admin:collections:read scope. Offsets stop at 1,000 rows (1,000,000 for Soho).Arguments:
after: String — Return items after this cursor.
first: Int — Maximum number of items to return. Defaults to 20, capped at 100 (10,000 for Soho).
createdAtDateTime!
When the livestream was created.
encoderIngestLivestreamEncoderIngest
The active encoder key of the livestream. Null when no key is active, or when viewer.canProduceShow is false.Requires a client key with one of these scopes: admin:livestreams:write
endedAtDateTime
When the broadcast ended, or null if it has not ended or the time is unavailable.
engagementLivestreamEngagement!
Bookmark, chat message and follower counts. The followersGained window stops at endedAt. bookmarkCount and chatMessageCount can change after the livestream ends: users can add or remove a bookmark and delete a chat message at any status.
failedInstagramBroadcastFailedInstagramBroadcastSession
The newest Instagram simulcast of this livestream when its push failed and the host has not started a new one. Null otherwise, and 12 hours after it started.Requires a client key with one of these scopes: admin:livestreams:read admin:social:read
hostUser!
The user who hosts the livestream. Present even when the host is not a member of the marketplace; node with the host's ID then gives null. Reading the host's fields needs the admin:account:read scope.
idID!
A globally unique ID. Treat this value as an opaque string.
isMatureBoolean!
Whether the livestream is marked as mature content.
isReplayVisibleBoolean!
True: the storefront shows the replay of the ended livestream while a recording exists. False: the storefront hides the replay, and only the host reads replayUrl. A new livestream starts with true.
moderators[LivestreamModerator!]!
The assigned moderators that the caller can read, oldest first. addLivestreamModerator stops at 5 moderators.
otherMarketplaceProductCountNonNegativeInt!
Number of listings attached to the livestream that are in another marketplace than the livestream, without deleted listings. products holds none of them for any caller. productCount includes them.
productCountNonNegativeInt!
Number of listings attached to the livestream, from every seller and every marketplace, without deleted listings. It also counts listings that the caller cannot read and the listings of otherMarketplaceProductCount.
productsLivestreamProductConnection!
Listings attached to the livestream that the caller can read. A listing is in the list when it is in the livestream's marketplace, is not deleted, has an active variant and does not hold a cancelled auction. A caller whose role is below SELLER reads none. Every other caller reads the listings of the sellers that it acts for, hidden ones included. A MODERATOR also reads the PUBLIC listings of other sellers, and an ADMIN or OWNER reads every listing of the marketplace. A SELLER does not read the listings of other sellers in the livestream. totalCount can be lower than productCount, which also counts attached listings in another marketplace (otherMarketplaceProductCount), and listings that the caller cannot read, that have no active variant or that hold a cancelled auction. Defaults to ADDED_AT descending. Offsets stop at 1,000 rows (1,000,000 for Soho): to read more, narrow where or query. Fails with VALIDATION_ERROR for more than 100 where.sellerIds.Arguments:
after: String — Return items after this cursor.
first: Int — Maximum number of items to return. Defaults to 20, capped at 100 (10,000 for Soho).
query: String — Matches listings whose title, active variant title or seller username contains this text, case-insensitive. Leading and trailing spaces are ignored. Text with only spaces applies no filter.
sort: LivestreamProductSortInput — Sort order. Defaults to ADDED_AT descending.
where: LivestreamProductWhereInput — Filters to narrow the list.
replayUrlURL
Playback URL for the recording. Null when no recording is available or it has expired. Recordings expire 90 days after the broadcast ends. Before a replay is published, only the host can access its URL.
salesLivestreamSales!
Figures over the sold orders placed during this livestream from the sellers whose orders the caller can read: the caller and the owners of the stores where the caller is store staff, or every seller for the ADMIN role and higher. A joined cohost's orders do not count for the host. Never null: with no counted order, every figure is 0.Arguments:
where: LivestreamSalesWhereInput — Filters to narrow the counted orders.
simulcastLivestreamSimulcast!
The simulcast destinations of the host and the targets of the livestream. Both lists are empty when viewer.canProduceShow is false.Requires a client key with one of these scopes: admin:social:read
stageLivestreamStage
The listing on stage, which viewers see in the show. Null when the stage is empty, or when it holds a deleted listing or a listing of another store.
startAtDateTime!
The scheduled or actual start of the broadcast.
statusLivestreamStatus!
Current status of the livestream.
thumbnailMedia[Asset!]!
Media to render in the livestream thumbnail slots: an Image (the livestream's thumbnail) followed by a Video (the seller's preview video) when both are present. Either may be absent, so match items on __typename rather than position. Empty when neither is set.
thumbnailUrlURL
The livestream's cover image, or null when none is set.Deprecated. Use thumbnailMedia.
titleString!
Title shown to viewers.
urlURL!
The public page of the livestream on the store's live host: live. and its verified custom domain when the store settings opt the live surface in to the custom domain (surfaces.live.customDomain), else its District live subdomain. A store that does not serve livestreams on the live host redirects this URL to its storefront. The path is /livestream/ and the livestream's UUID. To open the replay of an ENDED livestream, add the query parameter replay=true.
viewCountsLivestreamViewCounts!
Viewer counts for the livestream across streaming platforms.
viewerLivestreamViewerState!
The caller's relationship to this livestream.
visibilityLivestreamVisibility!
How the storefront lists the livestream.

Returned by