YouTube Autosuggest API - where to find samples or documentation? [closed]
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered w开发者_运维百科ith facts and citations.
Closed 4 years ago.
Improve this questionI want to create a YouTube video search box with the same autocomplete feature. Any idea where can I find samples or and documentation?
Thanks
You can get the JSON of the autocomplete searching for the word "obama" using the following HTTP GET query:
http://suggestqueries.google.com/complete/search?hl=en&client=youtube&hjson=t&ds=yt&jsonp=window.yt.www.suggest.handleResponse&q=obama&cp=3
I've seen this call using the youtube and watching the generated HTTP queries with Firefox Live HTTP Headers extension.
I hope it helps.
精彩评论