Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Youtube API search auto-complete

I'm using Youtube API, I'd like to have a search auto-complete feature, just like on YouTube, when you type into the search input box, it gives you search suggestions. I've read the docs, but still missing, Is this possible using the API?

like image 301
Emanuel Avatar asked Sep 10 '25 06:09

Emanuel


2 Answers

Ok I found this URL:

http://suggestqueries.google.com/complete/search?client=firefox&ds=yt&q=Query

It isn't part of Youtube API, but still works, returns a JSON response.

like image 119
Emanuel Avatar answered Sep 13 '25 04:09

Emanuel


For json just add "client" parameter:

http://suggestqueries.google.com/complete/search?client=youtube&ds=yt&client=firefox&q=Query

like image 20
Ready Freddie Avatar answered Sep 13 '25 06:09

Ready Freddie