Hi am developing an android application and part of my application wants to parse song title to youtube and get the video link. It does not matter to get the 100% correct video. so how I retrieve data from youtube?
Can any one help me to find a solution its really help full for me.
Thanks
The most common way to do it is using the Youtube data API, which will return XML/Json that you can parse to retrieve things like the video url.
Updated (2017/01/24) (v3)
Use the following call to search for YouTube videos using a search query:
It supports the following basic parameters for searching:
For more parameters see the Google API Documentation
Using the Java library
On Android you can either do a HTTP request to the URL using the standard HTTP request classes available on the platform, or you can use the Google API Java Library as shown below: