Method: assetLabels.list
Stay organized with collections
Save and categorize content based on your preferences.
Retrieves a list of all asset labels for an owner.
HTTP request
GET https://youtubepartner.googleapis.com/youtube/partner/v1/assetLabels
The URL uses gRPC Transcoding
syntax.
Query parameters
Parameters |
labelPrefix
|
string
The labelPrefix
parameter identifies the prefix of asset labels to retrieve.
|
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.
|
q
|
string
The q
parameter specifies the query string to use to filter search results. YouTube searches for the query string in the labelName
field of asset labels.
|
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 assetLabel
resources returned in response to a assetLabel.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#assetLabelList
.
|
pageInfo
|
object ( PageInfo
)
The pageInfo
object encapsulates paging information for the result set.
|
items[]
|
object ( AssetLabel
)
A list of assetLabel
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 API endpoint retrieves a list of asset labels associated with a content owner via a GET request to \u003ccode\u003ehttps://youtubepartner.googleapis.com/youtube/partner/v1/assetLabels\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe request supports several query parameters, including \u003ccode\u003elabelPrefix\u003c/code\u003e, \u003ccode\u003eonBehalfOfContentOwner\u003c/code\u003e, \u003ccode\u003eq\u003c/code\u003e, and \u003ccode\u003epageToken\u003c/code\u003e, which allow for filtering and pagination of results.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must be empty for this endpoint.\u003c/p\u003e\n"],["\u003cp\u003eA successful response returns a paginated list of \u003ccode\u003eassetLabel\u003c/code\u003e resources, including details like kind, pageInfo, items, and a \u003ccode\u003enextPageToken\u003c/code\u003e for subsequent requests.\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 labels for a content owner using a `GET` request to `https://youtubepartner.googleapis.com/youtube/partner/v1/assetLabels`. Requests are authorized via `https://www.googleapis.com/auth/youtubepartner` scope. It supports parameters for `labelPrefix`, `onBehalfOfContentOwner`, filtering with `q`, and pagination via `pageToken`. The request body must be empty. The response contains a paginated list of `assetLabel` resources, with fields including `kind`, `pageInfo`, `items`, and `nextPageToken` in JSON format.\n"],null,["# Method: assetLabels.list\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.AssetLabelListResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nRetrieves a list of all asset labels for an owner.\n\n### HTTP request\n\n`GET https://youtubepartner.googleapis.com/youtube/partner/v1/assetLabels`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Query parameters\n\n| Parameters ||\n|--------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `labelPrefix` | `string` The `labelPrefix` parameter identifies the prefix of asset labels to retrieve. |\n| `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. |\n| `q` | `string` The `q` parameter specifies the query string to use to filter search results. YouTube searches for the query string in the `labelName` field of asset labels. |\n| `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. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nA paginated list of `assetLabel` resources returned in response to a `assetLabel.list` request.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"kind\": string, \"pageInfo\": { object (/youtube/partner/reference/rest/v1/PageInfo) }, \"items\": [ { object (/youtube/partner/reference/rest/v1/assetLabels#AssetLabel) } ], \"nextPageToken\": string } ``` |\n\n| Fields ||\n|-----------------|--------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `kind` | `string` The type of the API response. For this operation, the value is `youtubePartner#assetLabelList`. |\n| `pageInfo` | `object (`[PageInfo](/youtube/partner/reference/rest/v1/PageInfo)`)` The `pageInfo` object encapsulates paging information for the result set. |\n| `items[]` | `object (`[AssetLabel](/youtube/partner/reference/rest/v1/assetLabels#AssetLabel)`)` A list of `assetLabel` resources that match the request criteria. |\n| `nextPageToken` | `string` The token that can be used as the value of the `pageToken` parameter to retrieve the next page of results. |\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/youtubepartner`\n\nFor more information, see the [OAuth 2.0 Overview](/identity/protocols/OAuth2)."]]