Method: policies.list
Stay organized with collections
Save and categorize content based on your preferences.
Retrieves a list of the content owner's saved policies.
HTTP request
GET https://youtubepartner.googleapis.com/youtube/partner/v1/policies
The URL uses gRPC Transcoding
syntax.
Query parameters
Parameters |
id
|
string
The id
parameter specifies a comma-separated list of saved policy IDs to retrieve. Only policies belonging to the currently authenticated content owner will be available.
|
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.
|
sort
|
enum ( Sort
)
The sort
parameter specifies how the search results should be sorted.
|
Request body
The request body must be empty.
Response body
A list of policies returned in response to a policies.list
call.
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#policyList
.
|
items[]
|
object ( Policy
)
A list of saved policies.
|
Authorization scopes
Requires the following OAuth scope:
-
https://www.googleapis.com/auth/youtubepartner
For more information, see the OAuth 2.0 Overview
.
Sort
Supported sorting orders.
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 webpage details how to retrieve a list of a content owner's saved policies via the YouTube Partner API's \u003ccode\u003epolicies.list\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request is a \u003ccode\u003eGET\u003c/code\u003e method to the specified URL, and requires an empty request body.\u003c/p\u003e\n"],["\u003cp\u003eYou can retrieve specific policies by providing a comma-separated list of policy IDs in the \u003ccode\u003eid\u003c/code\u003e query parameter and specify the content owner in the \u003ccode\u003eonBehalfOfContentOwner\u003c/code\u003e query parameter if needed.\u003c/p\u003e\n"],["\u003cp\u003eThe response body will include a list of policies in JSON format with the \u003ccode\u003ekind\u003c/code\u003e and \u003ccode\u003eitems\u003c/code\u003e fields and also supports sorting by update time in ascending or descending order.\u003c/p\u003e\n"],["\u003cp\u003eTo utilize this method, you will need the \u003ccode\u003ehttps://www.googleapis.com/auth/youtubepartner\u003c/code\u003e OAuth scope for authorization.\u003c/p\u003e\n"]]],["This document details how to retrieve a content owner's saved policies via a `GET` request to `https://youtubepartner.googleapis.com/youtube/partner/v1/policies`. Requests can filter results using comma-separated policy IDs in the `id` parameter, or the content owner in the `onBehalfOfContentOwner` parameter. The `sort` parameter orders results. The request body must be empty. The response includes a list of policies in a JSON format with the `kind` and `items` fields, requiring the `https://www.googleapis.com/auth/youtubepartner` OAuth scope.\n"],null,["# Method: policies.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.PolicyList.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Sort](#Sort)\n- [Try it!](#try-it)\n\nRetrieves a list of the content owner's saved policies.\n\n### HTTP request\n\n`GET https://youtubepartner.googleapis.com/youtube/partner/v1/policies`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Query parameters\n\n| Parameters ||\n|--------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `id` | `string` The `id` parameter specifies a comma-separated list of saved policy IDs to retrieve. Only policies belonging to the currently authenticated content owner will be available. |\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| `sort` | `enum (`[Sort](/youtube/partner/reference/rest/v1/policies/list#Sort)`)` The `sort` parameter specifies how the search results should be sorted. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nA list of policies returned in response to a `policies.list` call.\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/policies#Policy) } ] } ``` |\n\n| Fields ||\n|-----------|------------------------------------------------------------------------------------------------------|\n| `kind` | `string` The type of the API response. For this operation, the value is `youtubePartner#policyList`. |\n| `items[]` | `object (`[Policy](/youtube/partner/reference/rest/v1/policies#Policy)`)` A list of saved policies. |\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).\n\nSort\n----\n\nSupported sorting orders.\n\n| Enums ||\n|---------------------|-------------------------------------|\n| `SORT_UNSPECIFIED` | Default value. |\n| `TIME_UPDATED_ASC` | Sort by the update time ascending. |\n| `TIME_UPDATED_DESC` | Sort by the update time descending. |"]]