English 中文(简体)
优素帕·亚普森失踪现场
原标题:Youtube API missing field

I have problem getting statistics information from youtube data api. I make a request to http://gdata.youtube.com/feeds/api/videos?q=video_id&alt=json, it works for some, but for some video id, the response does not contain entry , yt$statistics , gd$rating for example:

zLcbznigfs missing  entry , aVfN6XjACDY missing  yt$statistics , fjhQ9Kf4iHk missing  gd$rating 
问题回答

After moving around, i found out the solution for this: use &alt=atom instead of using &alt=json, which means that we better read from Atom feed than JSON (and feedparser is an excellent module for doing this). I have checked this with several video id, it works fine.

希望能提供帮助。 感谢。





相关问题
Youtube API for iphone?

I was looking for some YouTube API implementation on iPhone but couldnt find and good resources. I just want to know how to initialize the connection and call the function to display the list of ...

Youtube video data retrieval

I want to get number of views, duration and also the rating of the particular video in youtube. Is there any way to get the information of the video by passing the video id through URL?

How to read YouTube channel?

I have just started developing using Youtube API and stuck in very beginning. I want to know how we can read a channel on Youtube. Means what should I do to read data present on any channel. Should ...

youtube data api comment paging

I m struggling a little bit with the syntax for iterating through all comments on a youtube video. I m using the python and have found little documentation on the GetYouTubeVideoCommentFeed() function....

iPhone - using YouTube APIs in iPhone app [closed]

I was going through the Google API for the iPhone but couldn t quite understand the use of YouTube API in iPhone apps. Neither could I find any good tutorials. Can someone please point to ...

Uploading video using the YouTube API via Flash AS3

I m trying to work out how to upload videos to YouTube using the api from flash. There seems to be libraries available for doing this with php, ruby, java etc. but not AS3. Can anyone point me in the ...

Youtube API - YoutubeVideoApp Zend example

I just downloaded the Youtube Zend library. However, trying to run this sample app YoutubeVideoApp and running the "retrieve my videos" keeps on giving me this error. ERROR Expected response code 200,...

热门标签