Answer the question
In order to leave comments, you need to log in
How to get YouTube video description with Curl?
Hello, please help me parse the title of a youtube video.
$url = yJcCKuxfb2o;
$youtube = "http://www.youtube.com/embed/" . $url . "&format=json";
$curl = curl_init($youtube);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
$return = curl_exec($curl);
curl_close($curl);
$result = json_decode($return, true);
var_dump($result);
php : null
Answer the question
In order to leave comments, you need to log in
SSL is required to perform this operation
" http://www.youtube.com/oembed?url= " _ _
Youtube has a great API that gives you all the information you need about videos and channels.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question