Site icon Cody Paste

YouTube Channel Video API in PHP

How to load/list YouTube channel Videos?

Here we will see how we can load YouTube channel video in our website by using JSON.

Now we will start this from scratch

STEP 1 (Get API Key):
We will get ‘API Key’ from Google Developer Console, you can find steps here : https://developers.google.com/youtube/v3/getting-started

STEP 2 (Get Channel ID):
Go to your YouTube Channel and copy your channel URL e.g. https://www.youtube.com/channel/XXXThs2cnzpDD-dT
and your channel id is ‘XXXThs2cnzpDD-dT‘.

Now see the complete code below

 

 

Exit mobile version