Retrieves the ratings that the authorized user gave to a list of specified videos.
For general error responses, see General errors. For code examples, see videos.getRating code snippets.
HTTP request
GET https://youtube.googleapis.com/youtube/v3/videos/getRating
The URL uses gRPC Transcoding syntax.
Query parameters
| Parameters | |
|---|---|
id[] |
Required. Specifies a comma-separated list (or repeated query parameters) of up to 50 YouTube video IDs for which you are retrieving rating data. Invalid video IDs are silently omitted from |
Request body
The request body must be empty.
Response body
If successful, the response body contains data with the following structure:
| JSON representation |
|---|
{ "kind": string, "etag": string, "items": [ { "videoId": string, "rating": enum } ] } |
| Fields | |
|---|---|
kind |
Identifies what kind of resource this is. Value: the fixed string |
etag |
Etag of this resource. |
items[] |
A list of ratings that match the request criteria. |
items[].videoId |
The ID that YouTube uses to uniquely identify the video. |
items[].rating |
The rating that the authorized user gave to the video. A value of Valid values of this enum field are:
|
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/youtubehttps://www.googleapis.com/auth/youtubepartnerhttps://www.googleapis.com/auth/youtube.readonlyhttps://www.googleapis.com/auth/youtube.force-ssl
For more information, see the OAuth 2.0 Overview.