Method: assetRelationships.list
Stay organized with collections
Save and categorize content based on your preferences.
Retrieves a list of relationships for a given asset. The list contains relationships where the specified asset is either the parent (embedding) or child (embedded) asset in the relationship.
HTTP request
GET https://youtubepartner.googleapis.com/youtube/partner/v1/assetRelationships
The URL uses gRPC Transcoding
syntax.
Query parameters
Parameters |
assetId
|
string
The assetId
parameter specifies the asset ID of the asset for which you are retrieving relationships.
|
onBehalfOfContentOwner
|
string
The onBehalfOfContentOwner
parameter identifies the content owner that the user is acting on behalf of. This parameter supports users whose accounts are associated with multiple content owners.
|
pageToken
|
string
The pageToken
parameter specifies a token that identifies a particular page of results to return. Set this parameter to the value of the nextPageToken
value from the previous API response to retrieve the next page of search results.
|
Request body
The request body must be empty.
Response body
A paginated list of assetRelationship
resources returned in response to a assetRelationships.list
request.
If successful, the response body contains data with the following structure:
Fields |
kind
|
string
The type of the API response. For this operation, the value is youtubePartner#assetRelationshipList
.
|
pageInfo
|
object ( PageInfo
)
The pageInfo
object encapsulates paging information for the result set.
|
items[]
|
object ( AssetRelationship
)
A list of assetRelationship
resources that match the request criteria.
|
nextPageToken
|
string
The token that can be used as the value of the pageToken
parameter to retrieve the next page of results.
|
Authorization scopes
Requires the following OAuth scope:
-
https://www.googleapis.com/auth/youtubepartner
For more information, see the OAuth 2.0 Overview
.
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."],[[["\u003cp\u003eThis endpoint retrieves a list of relationships for a specific asset, where the asset is either the parent or child in the relationship.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request uses a \u003ccode\u003eGET\u003c/code\u003e method and requires the asset ID, content owner, and optionally a page token as query parameters.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must be empty, and it uses the \u003ccode\u003ehttps://youtubepartner.googleapis.com/youtube/partner/v1/assetRelationships\u003c/code\u003e URL.\u003c/p\u003e\n"],["\u003cp\u003eA successful response contains a paginated list of \u003ccode\u003eassetRelationship\u003c/code\u003e resources, including information about the kind, page info, items, and a potential next page token.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization for this endpoint requires the \u003ccode\u003ehttps://www.googleapis.com/auth/youtubepartner\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],["This API endpoint retrieves a list of asset relationships via a `GET` request to `https://youtubepartner.googleapis.com/youtube/partner/v1/assetRelationships`. Required query parameters include `assetId` (specifying the asset) and optionally `onBehalfOfContentOwner` and `pageToken` for content owners and pagination. The request body must be empty. The response body is a paginated JSON list of `assetRelationship` resources, which include fields like `kind`, `pageInfo`, `items`, and `nextPageToken`. This request requires the `https://www.googleapis.com/auth/youtubepartner` authorization scope.\n"],null,[]]