How to get a list of videos in YouTube channel using PHP & YouTube API

YouTube offers various powerful ways to play around with videos. You can create awesome applications using the YouTube API and also can embed videos from your YouTube channel.

This tutorial demonstrates how to use YouTube Data API v3 to Integrate YouTube videos and functionality into your website.

Getting started by obtaining  a YouTube API Key & YouTube Channel ID

Generate an API key:

  1. Go to Google Developers Console and log in with your Google/YouTube ID.
  2. Create a new project.
  3. Go to your project and select ‘APIs’ from the sidebar
  4. In the list of APIs select ‘YouTube Data API v3’ and make sure that it’s enabled.
  5. From sidebar, select ‘Credentials’ and click ‘Create New Key’ to generate an API key for your development.

Find your YouTube channel ID

  1. Sign in to your YouTube account.
  2. Goto ‘Settings’.
  3. Next to your profile photo, click ‘Advanced’.
  4. You can find your channel ID under ‘Account information.’

Once you have the API Key & Channel ID, you can retrieve video list from YouTube using the following PHP code:

$myApiKey="#########"; // Provide your API Key
$myChannelID="##########"; // Provide your Channel ID
$maxResults="10"; // Number of results to display

// Make an API call to store list of videos to JSON variable
$myQuery = "$myApiKey&channelId=$myChannelID&part=snippet,id&order=date&maxResults=20";
$videoList = file_get_contents($myQuery);

// Convert JSON to PHP Array
$decoded = json_decode($videoList, true);

// Run a loop to display list of videos
foreach ($decoded['items'] as $items)
$id = $items['id']['videoId'];
$title= $items['snippet']['title'];
$description = $items['snippet']['description'];
$thumbnail = $items['snippet']['thumbnails']['default']['url'];

// Display list with some basic CSS formatting
echo "
<p style='display:inline-block;width:200px;margin:10px;text-align:center;vertical-align:top'>";
echo "<img src='$thumbnail'>
echo "<strong>$title</strong>
echo "<small>$description</small>";
echo "


That was a simple example on how to retrieve and display video title, description and some other associated data from your YouTube channel.

Of course, you can do lot more with this API. Refer the Google API documentation.

Adonai Eduware – All in One School & Campus Management ERP

Adonai Eduware is a one stop ERP solution which provides user-friendly responsive dashboards with login access for teachers, non-teaching staff, students, parents and management personnel of an institution. Adonai Eduware provides most advanced web based School/Campus ERP software for easy and hassle free management.


  • Lower initial costs
    Eliminates the acquisition costs associated with the hardware and software.
  • Quick deployment and time-to-use
    School Software can be provisioned rapidly, and require very less time to set up.
  • Automatic and easy upgrades
    School software is upgraded frequently and automatically. Patches and most of the upgrades are free.
  • Mobility
    Wherever you go your office is always with you.
  • Pay as you grow
    Get best features at very low cost that increases only when you grow.

ERP Modules

Features of Adonai Eduware

  • Easy payroll system with allowances and deduction
  • Create and provides easy one-step ID card printing
  • Multi school support in one school management software
  • CCE Exam patterns and support to GSEB, CBSE, ICSE boards
  • SMS alert system for fees, exam, transport, management etc.
  • Manage student/staff attendance tracking and information efficiently
  • View reports of any department / school, individually or cumulatively
  • Easy access to attendance, timetable, results, fees & examination schedule

For more information visit :

How to get thousands of hits to your website

Fake Hits Generator is a simple tool that can generate page views to any website. According to the makers, this tool  can be used to boost up your Alexa ranking within 1 week. It is an ultimate tool for generating 30000+ fake hits per hour.


Screenshot – Fake Hits Generator


  • User Friendly interface.
  • Hit speed changer.
  • Multiple proxy store option.
  • Inbuilt browser for preview.
  • Minimize to system tray.
  • Minimum data usage.
  • Timer view.
  • Hit counter.
  • Completely portable.
  • .Net framework 4 or above is required

Fake Hits Generator on GitHub:

Although it sounds good to have thousands of hits per hour, I would not recommend it if you are running a serious Blog or Website.

How to transform your website into an android apk

Do you want to make your website app for android?  All you need is Pravesh Agrawal’s Website 2 APK Builder – a utility software that can help you transform your website into an apk which can be installed on any android device.

Now convert your Website to a Google Play Ready Android App in minutes. Website 2 APK Builder supports HTML5, HTML,HTM,JS,CSS. You can build your App from any site hosted on a web server or from local directory.


Screenshot – Website2APK Builder

Website2APK Builder Features:

  • jQuery, Ionic & jQueryMobile support for Offline HTML Apps.
  • App Share Button (Also avaibale with Javascript)
  • FullScreen Mode
  • Display Toast via JavaScript
  • Gesture Zoom Support
  • JavaScript APIs to perform In-App Activities
  • HTML5 Vibration API Support
  • Skype, Whatsapp, SMS, Intent links Support
  • Externl Links Open Outside (Optional Supprted)
  • Confirm on Exit (Optional to Enable)
  • Build Android Apps easily from your HTML5 or Web Content
  • Create Apps in seconds for your Live Website
  • AdMob Integration
  • Banner Ads
  • Interstitial Ads
  • Custom Splash screen
  • Custom Package Name
  • Custom Android Permissions
  • Custom Error Pages
  • Google Play Ready Android App
  • Login Session Keeping
  • Supports HTML5
  • Configurable Caching Options
  • Offine HTML5 Video Support
  • File Upload Support
  • Camera Upload Support
  • Save Project as .webapp file
  • Camcorder Video Recording Upload
  • Location issue fixed
  • Custom App version
  • Set App Orientation
  • Zoom Buttons Option
  • About Dialog
  • Custom developer Tagline
  • Centered Progress Wheel
  • Custom Progress Wheel
  • Set Splash Duration
  • Exit Button
  • Completely Ad-Free
  • No Back-Links
  • User Friendly
  • Best App Results for Responsive Sites

Download Website2APK from GitHub:

Largest Digitized Collection of Indian Manuscripts & Antique Books is the first and only detailed website on rare Indian Manuscripts, Antique Books, Historical Documents & Ancient Inscriptions. It is the largest digitized collection of manuscripts, available online to read without any charges. welcomes students, scholars, researchers and people worldwide  to read more than 1,20,000 e-pages of original manuscripts which are available on different languages and various subjects like astrology, yoga, ayurved, vedic literature, tantra-mantra, religious, social & politics, that are full of vast knowledge and wisdom of ancient India. invites people and institutions to contribute & share their collections of original Indian manuscripts, antique books, ancient documents & inscriptions with scholars & researchers throughout the world with their own name & identity.