Engineering and Developers Blog
What's happening with engineering and developers at YouTube
Watch History Comes to the API
Tuesday, January 24, 2012
There’s a new entry in the
growing list
of video feeds supported by the YouTube Data API: the
watch history feed
. This feed allows authenticated API users to retrieve their own YouTube viewing histories—retrieving the watch history of any other user is not allowed. The information in this new feed corresponds to the
viewing history exposed on the YouTube website
.
The feed could enable interesting new functionality in your applications. If your site displays a list of recommended videos for an authenticated user to watch, you might consider excluding those videos that have been already viewed, for instance. Or you might want to include a video that you discover the user has been watching over and over again. Knowing the sorts of videos that a user watches makes it easier for your application to
algorithmically suggest
other videos that might interest your users.
As with any functionality related to the YouTube API, the best place to ask questions about the new watch history feed is the YouTube API
developer forum
.
Cheers,
—Jeff Posnick, YouTube API Team
More Channels to Feed On
Wednesday, November 10, 2010
The YouTube API’s standard feeds are a great way to expose your users to the best of what YouTube has to offer. To compliment the existing
standard video feeds
, which contain lists of individual videos that meet certain criteria (the top rated videos in the United States for the current day,
for instance
), we’re happy to introduce a new set of
standard channel feeds
.
While standard video feeds contain lists of videos,
standard channel feeds
contain lists of channels, or user accounts. The two types of standard channel feeds are
most_viewed
and
most_subscribed
, and just like with video feeds you can narrow down your results even further with time, region, and
category
or
user type
parameters. For example, the URL for requesting the most viewed channels with videos related to music in Great Britain for the past week is
http://gdata.youtube.com/feeds/api/channelstandardfeeds/GB/most_viewed/-/Music?v=2&time=this_week
. Each entry in a standard channel feed provides detailed information about a specific YouTube channel, including a
element with info on how many comments, videos, and views that channel has received.
Once you have these lists of channels, a natural next step would be to allow your logged-in users to
subscribe
to a given channel or view a list of videos
uploaded
in that channel.
Standard channel feeds are only available in version 2 of the YouTube API, which will
soon be the default version
in the production environment. In the meantime, be sure to
explicitly specify
that you want to use version 2 when making your YouTube API requests.
Cheers,
Jeff Posnick, YouTube API Team
Labels
.net
360
acceleration
access control
accessibility
actionscript
activities
activity
android
announcements
apis
app engine
appengine
apps script
as2
as3
atom
authentication
authorization
authsub
best practices
blackops
blur faces
bootcamp
captions
categories
channels
charts
chrome
chromeless
client library
clientlibraries
clientlogin
code
color
comments
compositing
create
curation
custom player
decommission
default
deprecation
devs
direct
discovery
docs
Documentation RSS
dotnet
education
embed
embedding
events
extension
feeds
flash
format
friendactivity
friends
fun
gears
google developers live
google group
googlegamedev
googleio
html5
https
iframe
insight
io12
io2011
ios
iphone
irc
issue tracker
java
javascript
json
json-c
jsonc
knight
legacy
Live Streaming API
LiveBroadcasts API
logo
machine learning
mashups
media:keywords keywords tags metadata
metadata
mobile
mozilla
NAB 2016
news
oauth
oauth2
office hours
open source
partial
partial response
partial update
partners
patch
php
player
playlists
policy
previews
pubsubhubbub
push
python
quota
rails
releases
rendering
reports
responses
resumable
ruby
samples
sandbox
shortform
ssl https certificate staging stage
stack overflow
stage video
staging
standard feeds
storify
storyful
subscription
sup
Super Chat API
survey
tdd
theme
tos
tutorials
updates
uploads
v2
v3
video
video files
video transcoding
virtual reality
voting
VR
watch history
watchlater
webvtt
youtube
youtube api
YouTube Data API
youtube developers live
youtube direct
YouTube IFrame Player API
YouTube live
YouTube Reporting API
ytd
Archive
2018
Aug
Apr
2017
Nov
Sep
Aug
Mar
Jan
2016
Nov
Oct
Aug
May
Apr
2015
Dec
Nov
Oct
May
Apr
Mar
Jan
2014
Oct
Sep
Aug
May
Mar
2013
Dec
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
2012
Dec
Nov
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2011
Dec
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2010
Dec
Nov
Oct
Sep
Jul
Jun
May
Apr
Mar
Feb
Jan
2009
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2008
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
2007
Dec
Nov
Aug
Jun
May
Feed
YouTube
on
Follow @youtubedev