This is article 5 of the YouTube API With PHP series.
We now start with the core YouTube API which is the Data API. It is likely that most of your work with the YouTube API will center around this API. We will first look at what resources you can work with in the Data API.
A resource is a YouTube entity which the Data API exposes. Think of it as a class defined in a framework. If we had been using the official PHP API library for YouTube you would have used the relevant classes for each of the resources given below. But since we will use the simpler and more straightforward REST API calls directly each of these resources becomes a component in the REST request URL.
Resources List
activity
An activity pertains to an action performed either by a User or a Channel. Activities include the following:
- Bulletin announcements
- Any additions to a Channel
- Marking a video as Favorite
- Liking a Video
- Adding an item to a Playlist
- Promoting a Video thru advertising
- A Video is recommended
- A Video is posted on a social network
- Subscribing to a Channel
- Uploading a Video
channel
Any data or action concerning YouTube channels.
channelBanner
Working with the banner image of a Channel
channelSection
Any group of videos in a channel which is highlighted as a section like Recently Upload or Most Popular etc.
guideCategory
Work with the internal categorisation of YouTube channels, by YouTube so that content can be found easily and in an organized manner.
i18nLanguage
Any supported language that can be displayed on the YouTube website.
i18nRegion
Regions that a YouTube user can set as the preferred geographical region from which content will be displayed.
playlist
Grouping of videos done by YouTube users, which can be viewed by others.
playlistItem
A single video item in a playlist.
search
Search results containing videos and playlists or channels.
subscription
Handling user subscriptions to a channel and the automatic notifications that subscribers get from the channel.
thumbnail
Image resources associated with a video.
video
Any YouTube video.
videoCategory
Categorisation of uploaded videos.
waterMark
Management of watermark images to appear on videos.
Leave a Reply