Youtube V3 API – Get Top Video From Keyword

<script src=”https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js”></script> <script type=”text/javascript”> function onClientLoad() { gapi.client.load(‘youtube’, ‘v3’, onYouTubeApiLoad); } function onYouTubeApiLoad() { gapi.client.setApiKey(‘[yourAPIKEY]’); search(‘[whacktus’); } function search(query) { var request = gapi.client.youtube.search.list({ part: ‘id’, q: query }); request.execute(function […]