Get YouTube video information using api in php

Follow below steps to get YouTube video information
Step 1:
Step 2:
  •  Create / Select project
  •  Create new key or Get API key
Step 3: Create a php script to get video details using YouTube video id
        in this url video id is showing in Red color

Step 4: Add below code to your php file
$vdata = file_get_contents(",contentDetails,statistics,status");
$result_data = json_decode($vdata, true);
echo "<pre>";


Popular posts from this blog

Stop video playing when Bootstrap modal is closed