REST Resource: assetSharesStay organized with collectionsSave and categorize content based on your preferences.
Page Summary
AssetShareresources define the relationship between a composition'sviewId(composition view) andshareId(composition share), relevant to composition assets.
AviewIdrepresents the composition asset embedded in a sound recording, and each sound recording maps to exactly oneviewId.
AshareIdrepresents the information a publisher provides for a composition asset, and aviewIdcan map to one or moreshareIdswhen a composition has multiple owners.
TheAssetShareresource contains akind,viewId, andshareId, where thekindisyoutubePartner#assetShare, theviewIdis the unique asset view identifier, and theshareIdis the unique asset share identifier.
TheassetShares.listmethod enables retrieving asset shares associated with aviewIdor asset views linked to a specificshareIdowned by a partner.
AnassetShareresource, which is only relevant to composition assets, identifies a relationship between two representations of an asset resource:
TheviewId, orcomposition view, represents the composition asset that is embedded in a specific sound recording. The composition view is the canonical set of information that YouTube displays about the composition rights for a given recording and may synthesize information from multiple data providers. .
Each sound recording asset maps to exactly oneviewId.
EachviewIdmaps to one or moreshareIds. However, aviewIdonly maps to multipleshareIdswhen a composition has multiple owners. From a single content owner's perspective, aviewIdis associated with a singleshareId. This is because the content owner can only retrieve theshareIdsthat represent data the content owner itself provided.
Note that it's possible for a single content owner using the API to represent multiple owners of a composition and, therefore, own multiple shares of that composition. For example, an aggregator of digital rights could obtain rights to the same composition from different parties in different territories. The aggregator would have discrete entities representing those rights, which would map to different composition shares in YouTube's model. The different composition shares could still be linked to the same composition view(s).
TheshareId, orcomposition share, represents the information that a particular publisher provided for a composition asset. AshareIdcan be associated with many sound recordings.
Many API methods enable you to retrieve or update information about an asset. TheManaging composition assetsguide explains how those methods handle requests depending on whether the provided asset IDs areshareIdsorviewIds.
JSON representation
{"kind":string,"viewId":string,"shareId":string}
Fields
kind
string
The type of the API resource. For this resource, the value isyoutubePartner#assetShare.
viewId
string
A value that YouTube assigns and uses to uniquely identify the asset view.
shareId
string
A value that YouTube assigns and uses to uniquely identify the asset share.
This method either retrieves a list of asset shares the partner owns and that map to a specified asset view IDorit retrieves a list of asset views associated with a specified asset share ID owned by the partner.
All rights reserved. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-20 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-20 UTC."],[],["The `assetShare` resource links composition views (`viewId`) and composition shares (`shareId`). A `viewId` represents a composition asset in a sound recording and can have multiple `shareIds` if a composition has multiple owners. A `shareId` represents a publisher's information for a composition and can be linked to many recordings. The API's `list` method retrieves either shares associated with a specific view or views associated with a specific share, owned by a content partner.\n"]]