开发者

Youtube API search

I have been trying out the youtube API with Java. When I do a search using the API I don't get the same results as whe开发者_如何学Gon I just type the keyword in the browser, any logical explanation why this is?

Compare: http://www.youtube.com/results?search_query=blah+&aq=f

http://pastebin.com/FVRd3URT (list of video Titles)

I also noticed that some videos (or at least their title) are duplicated.


YouTube API version 3 gets the same search results. Version 3 is still experimental, according to the documentation. https://developers.google.com/youtube/v3/docs/search/list


No, it's just how it is. Trying to match up the two is a futile exercise.

Amazon search has the same problem.


This demo might help.

https://github.com/bitsabhi/YouTubeDemo

A java project to return title, album, you tube link when the user searches for any songs. Uses You tube search API.


I have the same problem.

It is as if the API queries don't support full text search - results through the API are the same as if you enter "my search query" in quotes.

Although, try setting a slightly larger time frame: 'today' might be different from 'last_week', and you may get more relevant results.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜