kind
|
string
Identifies the API resource's type. The value will be
youtube#subscription
.
|
etag
|
etag
The Etag of this resource.
|
id
|
string
The ID that YouTube uses to uniquely identify the subscription.
|
snippet
|
object
The
snippet
object contains basic details about the subscription, including its title and the channel that the user subscribed to.
|
snippet.
publishedAt
|
datetime
The date and time that the subscription was created. The value is specified in
ISO 8601
format.
|
snippet.
channelTitle
|
string
The title of the channel that the subscription belongs to.
|
snippet.
title
|
string
The subscription's title.
|
snippet.
description
|
string
The subscription's details.
|
snippet.
resourceId
|
object
The
id
object contains information about the channel that the user subscribed to.
|
snippet.resourceId.
kind
|
string
The type of the API resource.
|
snippet.resourceId.
channelId
|
string
The value that YouTube uses to uniquely identify the channel that the user subscribed to.
|
snippet.
channelId
|
string
The ID that YouTube uses to uniquely identify the subscriber's channel. The
resource_id
object identifies the channel that the user subscribed to.
|
snippet.
thumbnails
|
object
A map of thumbnail images associated with the subscription. For each object in the map, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail.
|
snippet.thumbnails.
(key)
|
object
Valid key values are:
default
– The default thumbnail image for this resource. The default thumbnail for a video – or a resource that refers to a video, such as a playlist item or search result – is 120px wide and 90px tall. The default thumbnail for a channel is 88px wide and 88px tall.
medium
– A higher resolution version of the thumbnail image. For a video (or a resource that refers to a video), this image is 320px wide and 180px tall. For a channel, this image is 240px wide and 240px tall.
high
– A high resolution version of the thumbnail image. For a video (or a resource that refers to a video), this image is 480px wide and 360px tall. For a channel, this image is 800px wide and 800px tall.
|
snippet.thumbnails.(key).
url
|
string
The image's URL.
|
snippet.thumbnails.(key).
width
|
unsigned integer
The image's width.
|
snippet.thumbnails.(key).
height
|
unsigned integer
The image's height.
|
contentDetails
|
object
The
contentDetails
object contains basic statistics about the subscription.
|
contentDetails.
totalItemCount
|
unsigned integer
The approximate number of items that the subscription points to.
|
contentDetails.
newItemCount
|
unsigned integer
The number of new items in the subscription since its content was last read.
|
contentDetails.
activityType
|
string
The type of activity this subscription is for (only uploads, everything).
Valid values for this property are:
|
subscriberSnippet
|
object
The
subscriberSnippet
object contains basic details about the subscriber.
|
subscriberSnippet.
title
|
string
The title of the subscriber's channel.
|
subscriberSnippet.
description
|
string
The description of the subscriber's channel.
|
subscriberSnippet.
channelId
|
string
The ID that YouTube assigns to uniquely identify the subscriber's channel.
|
subscriberSnippet.
thumbnails
|
object
Thumbnail images for the subscriber's channel.
|
subscriberSnippet.thumbnails.
(key)
|
object
Valid key values are:
default
– The default thumbnail image for this resource. The default thumbnail for a video – or a resource that refers to a video, such as a playlist item or search result – is 120px wide and 90px tall. The default thumbnail for a channel is 88px wide and 88px tall.
medium
– A higher resolution version of the thumbnail image. For a video (or a resource that refers to a video), this image is 320px wide and 180px tall. For a channel, this image is 240px wide and 240px tall.
high
– A high resolution version of the thumbnail image. For a video (or a resource that refers to a video), this image is 480px wide and 360px tall. For a channel, this image is 800px wide and 800px tall.
|
subscriberSnippet.thumbnails.(key).
url
|
string
The image's URL.
|
subscriberSnippet.thumbnails.(key).
width
|
unsigned integer
The image's width.
|
subscriberSnippet.thumbnails.(key).
height
|
unsigned integer
The image's height.
|