Method: metadataHistory.list
Stay organized with collections
Save and categorize content based on your preferences.
Retrieves a list of all metadata provided for an asset, regardless of which content owner provided the data.
HTTP request
GET https://youtubepartner.googleapis.com/youtube/partner/v1/metadataHistory
The URL uses gRPC Transcoding
syntax.
Query parameters
Parameters |
assetId
|
string
The assetId
parameter specifies the YouTube asset ID of the asset for which you are retrieving a metadata history.
|
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.
|
Request body
The request body must be empty.
Response body
A list of metadata history resources associated with an asset.
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#metadataHistoryList
.
|
items[]
|
object ( MetadataHistory
)
A list of metadata history ( youtubePartner#metadataHistory
) resources that match the request criteria.
|
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 comprehensive list of all metadata associated with a specific YouTube asset, regardless of the content owner who provided it.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires the asset's ID via the \u003ccode\u003eassetId\u003c/code\u003e query parameter and optionally supports specifying a content owner using the \u003ccode\u003eonBehalfOfContentOwner\u003c/code\u003e parameter.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must be empty, and the request type is a GET request sent to the endpoint \u003ccode\u003ehttps://youtubepartner.googleapis.com/youtube/partner/v1/metadataHistory\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful requests return a JSON response containing an array of \u003ccode\u003eMetadataHistory\u003c/code\u003e resources, each detailing a metadata entry for the specified asset.\u003c/p\u003e\n"],["\u003cp\u003eAuthenticating this request requires the \u003ccode\u003ehttps://www.googleapis.com/auth/youtubepartner\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],["This document details retrieving an asset's metadata history via a `GET` request to `https://youtubepartner.googleapis.com/youtube/partner/v1/metadataHistory`. Required query parameters include `assetId` for the target asset and `onBehalfOfContentOwner` to specify the content owner. The request body is empty. A successful response returns a JSON list of metadata history items, indicated by `youtubePartner#metadataHistoryList` for the \"kind\". Authorization requires the `https://www.googleapis.com/auth/youtubepartner` OAuth scope.\n"],null,["# Method: metadataHistory.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.MetadataHistoryListResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nRetrieves a list of all metadata provided for an asset, regardless of which content owner provided the data.\n\n### HTTP request\n\n`GET https://youtubepartner.googleapis.com/youtube/partner/v1/metadataHistory`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Query parameters\n\n| Parameters ||\n|--------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `assetId` | `string` The `assetId` parameter specifies the YouTube asset ID of the asset for which you are retrieving a metadata history. |\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\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nA list of metadata history resources associated with an asset.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"kind\": string, \"items\": [ { object (/youtube/partner/reference/rest/v1/metadataHistory#MetadataHistory) } ] } ``` |\n\n| Fields ||\n|-----------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `kind` | `string` The type of the API response. For this operation, the value is `youtubePartner#metadataHistoryList`. |\n| `items[]` | `object (`[MetadataHistory](/youtube/partner/reference/rest/v1/metadataHistory#MetadataHistory)`)` A list of metadata history (`youtubePartner#metadataHistory`) resources that match the request criteria. |\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)."]]