Friday, March 2, 2012

[YouTube-API] Re: ratings data via api

Hello Joel,

Yes, you're requesting the default version of the feed, which is v=1.
The likes information is only available when you set v=2.

More to the point, if you want to get a feed of all the uploads for a
given user, it's a better idea to request the uploads feed directly
instead of using the author= parameter on a search feed. You'll get
more up to date information from the uploads feed. So the equivalent
URL would be

http://gdata.youtube.com/feeds/api/users/saintbluesguitar/uploads?v=2&prettyprint=true

Cheers,
-Jeff Posnick, YouTube API Team
groups.google.com/group/youtube-api-gdata | apiblog.youtube.com |
@YouTubeDev


On Mar 1, 8:12 pm, joelkeepup <taskow...@gmail.com> wrote:
> Hi, I know this has been a while, but im back at this again.
>
> I dont see any examples in my feeds where these values come through, for
> example:
>
> http://gdata.youtube.com/feeds/api/videos?orderby=published&author=sa...
>
> has lots of ratings, but non have numLikes or numDislikes.
>
> Am I doing something wrong?
>
> thanks
> Joel
>
>
>
>
>
>
>
> On Monday, August 30, 2010 2:09:14 PM UTC-4, Jeffrey Posnick wrote:
>
> > Hello Joel,
>
> >  Yes, that's pretty much the mapping if you're still thinking in terms
> > of numbers. The production YouTube API supports likes/dislikes
> > natively now, too:
>
> >http://code.google.com/apis/youtube/2.0/reference.html#youtube_data_a...
>
> > Disregard the information about that tag only being available in the
> > staging environment. The documentation team is preparing to push out
> > an update that reflects the current production status.
>
> > Cheers,
> > -Jeff Posnick, YouTube API Team
> > ~ YouTube is hiring! ~http://google.com/jobs/workyoutube~
>
> > On Aug 25, 2:43 pm, joelkeepup <taskow...@gmail.com> wrote:
> > > Hi,
>
> > > Since the user interface only shows likes and dislikes now, when I
> > > query a videos ratings I see:
>
> > > "max"=>"5", "average"=>"3.6666667", "min"=>"1", "numRaters"=>"3"
>
> > > From me testing, it seems that a like counts as a score of 5 and a
> > > dislike counts as a 1.
>
> > > Can someone confirm this is correct?
>
> > > thanks
> > > Joel

--
You received this message because you are subscribed to the Google Groups "YouTube APIs Developer Forum" group.
To post to this group, send email to youtube-api-gdata@googlegroups.com.
To unsubscribe from this group, send email to youtube-api-gdata+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/youtube-api-gdata?hl=en.

No comments:

Post a Comment