Examples

1st example search with keywords

HD 1080P - NATURE SCENERY VIDEO
HD 1080P - NATURE SCENERY VIDEO
7 HOUR 4K DRONE FILM: "EARTH FROM ABOVE& ..
7 HOUR 4K DRONE FILM: "EARTH FROM ABOVE& ..
3 HOURS OF AMAZING NATURE SCENERY ON PLANET E ..
3 HOURS OF AMAZING NATURE SCENERY ON PLANET E ..
NATURE TV PURE RELAX 💚 BEAUTIFUL RELAXING  ..
NATURE TV PURE RELAX 💚 BEAUTIFUL RELAXING ..
COSTA RICA IN 4K 60FPS HDR (ULTRA HD)
COSTA RICA IN 4K 60FPS HDR (ULTRA HD)
4K VIDEO (ULTRA HD) UNBELIEVABLE BEAUTY
4K VIDEO (ULTRA HD) UNBELIEVABLE BEAUTY
4K VIDEO ULTRAHD HDR SONY 4K VIDEOS DEMO TEST ..
4K VIDEO ULTRAHD HDR SONY 4K VIDEOS DEMO TEST ..
► PLANET EARTH: AMAZING NATURE SCENERY.
► PLANET EARTH: AMAZING NATURE SCENERY.
3 HOURS OF AMAZING NATURE SCENERY ON PLANET E ..
3 HOURS OF AMAZING NATURE SCENERY ON PLANET E ..
AMAZING NATURE FULL HD 1080P :TIME LAPSE
AMAZING NATURE FULL HD 1080P :TIME LAPSE
THE BREATHTAKING BEAUTY OF NATURE | HD
THE BREATHTAKING BEAUTY OF NATURE | HD
THUNDERSTORM SOUNDS FOR SLEEP & RELAXATIO ..
THUNDERSTORM SOUNDS FOR SLEEP & RELAXATIO ..
4K TROPICAL RAIN SOUNDS & RELAXING NATURE ..
4K TROPICAL RAIN SOUNDS & RELAXING NATURE ..
AMAZING NATURE SCENERY | NATURE HD
AMAZING NATURE SCENERY | NATURE HD
WILD THAILAND HD (NATURE DOCUMENTAIRE HD)
WILD THAILAND HD (NATURE DOCUMENTAIRE HD)
BEAUTIFUL LANDSCAPES 4K ULTRAHD SLIDESHOW 201 ..
BEAUTIFUL LANDSCAPES 4K ULTRAHD SLIDESHOW 201 ..
BREATHTAKING COLORS OF NATURE IN 4K III 🐦B ..
BREATHTAKING COLORS OF NATURE IN 4K III 🐦B ..
4K SPRING FOREST - BLACKBIRD SONG - BIRD SING ..
4K SPRING FOREST - BLACKBIRD SONG - BIRD SING ..
AUTUMN RIVER SOUNDS -  RELAXING NATURE VIDEO  ..
AUTUMN RIVER SOUNDS - RELAXING NATURE VIDEO ..
RELAXING MUSIC WITH AMAZING NATURE SCENERY HD ..
RELAXING MUSIC WITH AMAZING NATURE SCENERY HD ..
🌎 EARTH'S MOST BEAUTIFUL PLACES HD 108 ..
🌎 EARTH'S MOST BEAUTIFUL PLACES HD 108 ..
WILD POLAND | NATURE DOCUMENTARY [HD]
WILD POLAND | NATURE DOCUMENTARY [HD]
4K ULTRA HD | SAMSUNG UHD DEMO: NATURE IN 4K
4K ULTRA HD | SAMSUNG UHD DEMO: NATURE IN 4K
RELAXING MUSIC WITH NATURE SOUNDS - WATERFALL ..
RELAXING MUSIC WITH NATURE SOUNDS - WATERFALL ..
LG 8K 60FPS HDR NATURE 8K VIDEO ULTRA HD FOR  ..
LG 8K 60FPS HDR NATURE 8K VIDEO ULTRA HD FOR ..
GREAT  ELEPHANT, NATURE 2018 HD  DOCUMENTARY.
GREAT ELEPHANT, NATURE 2018 HD DOCUMENTARY.
4K SCENIC NATURE DOCUMENTARY "BEAUTIFUL  ..
4K SCENIC NATURE DOCUMENTARY "BEAUTIFUL ..
BEAUTIFUL UNDERWATER NATURE - 4K VIDEOS ULTRA ..
BEAUTIFUL UNDERWATER NATURE - 4K VIDEOS ULTRA ..
"HIDDEN PARADISE" FIJI 90 MINUTE HD ..
"HIDDEN PARADISE" FIJI 90 MINUTE HD ..
YELLOWSTONE NATIONAL PARK - 4K (ULTRA HD) NAT ..
YELLOWSTONE NATIONAL PARK - 4K (ULTRA HD) NAT ..
WILDLIFE NATURE OF THAILAND - NATIONAL GEOGRA ..
WILDLIFE NATURE OF THAILAND - NATIONAL GEOGRA ..
BEAUTIFUL NATURE VIDEO IN 4K (ULTRA HD) - AUT ..
BEAUTIFUL NATURE VIDEO IN 4K (ULTRA HD) - AUT ..
AUTUMN FOREST - RIVER SOUNDS - RELAXING NATUR ..
AUTUMN FOREST - RIVER SOUNDS - RELAXING NATUR ..
WILD RUSSIA: THE ARCTIC | NATIONAL GEOGRAPHIC ..
WILD RUSSIA: THE ARCTIC | NATIONAL GEOGRAPHIC ..
YELLOWSTONE NATIONAL PARK - 4K (ULTRA HD) NAT ..
YELLOWSTONE NATIONAL PARK - 4K (ULTRA HD) NAT ..
DEATH VALLEY NATIONAL PARK - 4K (ULTRA HD) NA ..
DEATH VALLEY NATIONAL PARK - 4K (ULTRA HD) NA ..
"DREAMS OF NATURE" AN INSPIRATIONAL ..
"DREAMS OF NATURE" AN INSPIRATIONAL ..
GYöNYöRű ROVAROK éS BOGARAK A TERMéSZETB ..
GYöNYöRű ROVAROK éS BOGARAK A TERMéSZETB ..
CANOEING IN CANADA ~ HD NATURE ~ RELAXING RIV ..
CANOEING IN CANADA ~ HD NATURE ~ RELAXING RIV ..
AMAZING NATURE OF THAILAND HD
AMAZING NATURE OF THAILAND HD
LAKESIDE CAMPFIRE WITH RELAXING NATURE NIGHT  ..
LAKESIDE CAMPFIRE WITH RELAXING NATURE NIGHT ..
WATERFALL PARADISE: PLITVICE LAKES, CROATIA ( ..
WATERFALL PARADISE: PLITVICE LAKES, CROATIA ( ..
RELAXING HD NATURE - 6
RELAXING HD NATURE - 6
4K HIGH MOUNTAINS - BEAUTIFUL NATURE VIDEO &A ..
4K HIGH MOUNTAINS - BEAUTIFUL NATURE VIDEO &A ..
RELAXING HD NATURE - 5
RELAXING HD NATURE - 5
TCL HD DEMO: COLORFUL BEAUTY OF NATURE
TCL HD DEMO: COLORFUL BEAUTY OF NATURE
PARROTS MAJESTIC BIRDS NATURE DOCUMENTARY HD
PARROTS MAJESTIC BIRDS NATURE DOCUMENTARY HD
4K RELAXING RIVER - ULTRA HD NATURE VIDEO -   ..
4K RELAXING RIVER - ULTRA HD NATURE VIDEO - ..
4K FOREST STREAM - RELAXING RIVER SOUNDS - NO ..
4K FOREST STREAM - RELAXING RIVER SOUNDS - NO ..
4K TROPICAL BEACH - RELAXING SEA/ OCEAN WAVE  ..
4K TROPICAL BEACH - RELAXING SEA/ OCEAN WAVE ..

2nd example username, in this case rpoland

FINGERSTYLE COLLECTIVE GUITAR FESTIVAL 2020
FINGERSTYLE COLLECTIVE GUITAR FESTIVAL 2020
EVA ATMATZIDOU - MESSAGE TO TOMMY EMMANUEL
EVA ATMATZIDOU - MESSAGE TO TOMMY EMMANUEL
SAMMY BOLLER - KINGDOM OF THE SUN (OFFICIAL)
SAMMY BOLLER - KINGDOM OF THE SUN (OFFICIAL)
GINTS SMUKAIS - DOT (LIVE AT GAMECHANGER AUDIO)
GINTS SMUKAIS - DOT (LIVE AT GAMECHANGER AUDIO)
R.D. KING - HEREAFTER (FINGERSTYLE GUITAR)
R.D. KING - HEREAFTER (FINGERSTYLE GUITAR)
ADRIAN BELLUE - ROBOT MONSTER (DON ROSS)
ADRIAN BELLUE - ROBOT MONSTER (DON ROSS)
DANIEL VOTH - 'DELIRIUM' FEATURING MICHAEL MANRING ..
DANIEL VOTH - 'DELIRIUM' FEATURING MICHAEL MANRING ..
DANIEL VOTH - DELIRIUM
DANIEL VOTH - DELIRIUM
AMBER RUSSELL - 'PORTLAND DANCE' FT. NICK JOHNSON
AMBER RUSSELL - 'PORTLAND DANCE' FT. NICK JOHNSON
TREVOR GORDON HALL & SöNKE MEINEN - THAT OLD FAMI ..
TREVOR GORDON HALL & SöNKE MEINEN - THAT OLD FAMI ..
JANEK PENTZ - PARADOX
JANEK PENTZ - PARADOX
CONSIDER THE SOURCE (CTS) -  ENEMIES OF MAGICK
CONSIDER THE SOURCE (CTS) - ENEMIES OF MAGICK
THE ELDER TREE - DUSTIN FURLOW (ACOUSTIC GUITAR)
THE ELDER TREE - DUSTIN FURLOW (ACOUSTIC GUITAR)
JOHN FERRARA - BEN FRANKLIN'S HAIR (SOLO BASS)
JOHN FERRARA - BEN FRANKLIN'S HAIR (SOLO BASS)
NICK JOHNSON - REMEMBER TO FORGET
NICK JOHNSON - REMEMBER TO FORGET
DANIEL PADIM - SONG FOR A KING
DANIEL PADIM - SONG FOR A KING
ADRIAN BELLUE - NEW SILVER BREEZE (GUITAR)
ADRIAN BELLUE - NEW SILVER BREEZE (GUITAR)
“MIDNIGHT PICNIC NEAR THE OCEAN” - FOREST BAIL ..
“MIDNIGHT PICNIC NEAR THE OCEAN” - FOREST BAIL ..
FRANK SCHLüTER - SING (ED SHEERAN) - SOLO ACOUSTI ..
FRANK SCHLüTER - SING (ED SHEERAN) - SOLO ACOUSTI ..
CHRISTIAN BROCK - SARA (FINGERSTYLE GUITAR)
CHRISTIAN BROCK - SARA (FINGERSTYLE GUITAR)
R.D. KING - ACROSS THE UNIVERSE (ACOUSTIC GUITAR)
R.D. KING - ACROSS THE UNIVERSE (ACOUSTIC GUITAR)
I AM THE ONLY REWIND SONGBIRD -
I AM THE ONLY REWIND SONGBIRD - "PAUL HARPER'S LAS ..
SPENCER ELLIOTT - THE LAST TWO PEOPLE ON EARTH (AC ..
SPENCER ELLIOTT - THE LAST TWO PEOPLE ON EARTH (AC ..
ANTOINE DUFOUR & VAN LARKINS 'THESE MOMENTS'
ANTOINE DUFOUR & VAN LARKINS 'THESE MOMENTS'
JOEL SAUNDERS - FROGHOLLOW AT NIGHT - ACOUSTIC GUI ..
JOEL SAUNDERS - FROGHOLLOW AT NIGHT - ACOUSTIC GUI ..
JACOB RAAGAARD - MANAWA MAIKA'I - WEISSENBORN INST ..
JACOB RAAGAARD - MANAWA MAIKA'I - WEISSENBORN INST ..
LIVE IN STUDIO - HUMAN CONVENTION - THE REIGN OF K ..
LIVE IN STUDIO - HUMAN CONVENTION - THE REIGN OF K ..
GRAYSON ERHARD - LIKE A STONE (AUDIOSLAVE)
GRAYSON ERHARD - LIKE A STONE (AUDIOSLAVE)
JOEL SAUNDERS - THE ZOTZ WALK (FINGERSTYLE GUITAR)
JOEL SAUNDERS - THE ZOTZ WALK (FINGERSTYLE GUITAR)
DONOVAN RAITT - WATER AND LIGHT (ACOUSTIC GUITAR)
DONOVAN RAITT - WATER AND LIGHT (ACOUSTIC GUITAR)
R.D. KING - THE GIRL WHO RODE THE WIND (ACOUSTIC G ..
R.D. KING - THE GIRL WHO RODE THE WIND (ACOUSTIC G ..
RYAN AYERS - ISLAND MOONSHINE (ACOUSTIC GUITAR)
RYAN AYERS - ISLAND MOONSHINE (ACOUSTIC GUITAR)
NICK JOHNSON - THE NO SOUL BLUES
NICK JOHNSON - THE NO SOUL BLUES
FINGERSTYLE COLLECTIVE GUITAR FESTIVAL
FINGERSTYLE COLLECTIVE GUITAR FESTIVAL
JACOB RAAGAARD - JOSHUA TREE - WEISSENBORN INSTRUM ..
JACOB RAAGAARD - JOSHUA TREE - WEISSENBORN INSTRUM ..
KINDO - HAPPY HOWEVER AFTER - U.S TOUR
KINDO - HAPPY HOWEVER AFTER - U.S TOUR
CALUM GRAHAM - GRACE
CALUM GRAHAM - GRACE
FINGERSTYLE COLLECTIVE GUITAR FESTIVAL (TONEWOODAM ..
FINGERSTYLE COLLECTIVE GUITAR FESTIVAL (TONEWOODAM ..
ADRIAN BELLUE - RETURN TO DAWN - ACOUSTIC GUITAR
ADRIAN BELLUE - RETURN TO DAWN - ACOUSTIC GUITAR
SPENCER ELLIOTT - THERE'S SOMETHING IN THE AIRLOCK
SPENCER ELLIOTT - THERE'S SOMETHING IN THE AIRLOCK
ADRIAN BELLUE - RAINFALL - ACOUSTIC GUITAR
ADRIAN BELLUE - RAINFALL - ACOUSTIC GUITAR
FELIX MARTIN - ALMA LLANERA - 14-STRING GUITAR
FELIX MARTIN - ALMA LLANERA - 14-STRING GUITAR
FINGERSTYLE COLLECTIVE GUITAR FESTIVAL - COMPETITI ..
FINGERSTYLE COLLECTIVE GUITAR FESTIVAL - COMPETITI ..
CHRIS MIKE - SHORELINE
CHRIS MIKE - SHORELINE
NICK JOHNSON - BUY THE TICKET, TAKE THE RIDE
NICK JOHNSON - BUY THE TICKET, TAKE THE RIDE
ESKINA - LITTLE BIRD
ESKINA - LITTLE BIRD
ADRIAN BELLUE - ALTERNATE PATHWAYS - ACOUSTIC GUIT ..
ADRIAN BELLUE - ALTERNATE PATHWAYS - ACOUSTIC GUIT ..
FINGERSTYLE COLLECTIVE GUITAR FESTIVAL
FINGERSTYLE COLLECTIVE GUITAR FESTIVAL
R.D. KING - TREMBLING - ACOUSTIC GUITAR
R.D. KING - TREMBLING - ACOUSTIC GUITAR
R.D. KING - THRUM - ACOUSTIC GUITAR
R.D. KING - THRUM - ACOUSTIC GUITAR

Code and options

include_once('class/class.youtubelist.php');
//First set the type, keywords, username, channel or playlist
$video = new youtubelist('keywords');
//Default set_keywords, set_username, set_channel or set_playlist (in this example set_keywords)
$video->set_keywords('HD nature');
// -- Here your youtube API key
$video->set_api('Here your youtube API key');
//Max results
$video->set_max(50);
// --set sorting order: relevance, date , rating , title , videoCount , viewCount or none; default: relevance
// --At this moment sorting seems only to work with a search
$video->set_order('relevance');
//--Cache the feed
$video->set_cachexml(true);
// --How long must the cach been saved (in seconds)
$video->set_cachelife(86400);
// --Set where to store xml files
$video->set_xmlpath('./cache/');
// --Set safesearch possible: none, moderate, strict; default: strict
$video->set_safeSearch('none');
// --OPTIONAL - Set lang; codes can be found here http://www.loc.gov/standards/iso639-2/php/code_list.php row ISO 639-1 Code
// --If not set all languages will appear in the results
$video->set_lang('EN');
// --OPTIONAL - Search only 3d. Set to any, 2d or 3d.
$video->set_3d('3d');
// --OPTIONAL - Search HD. any, high or standard.
$video->set_hd('high');
// --OPTIONAL - Search for license. possible: cc, youtube. Only used for the search option or don't set.
$video->set_license('youtube');
// --OPTIONAL - Search for duration. possible: any, short, medium, long. Only used for the search option or don't set.v $video->set_duration('long');
// --OPTIONAL - Set length title and description text
$video->set_descriptionlength(300);
// --OPTIONAL - Make the description first character uppercase and the rest lowercase - default is true
$video->set_descriptioncap (true);
$video->set_titlelength(45);
// --OPTIONAL - Set the title all character's uppercase - default is true
$video->set_titlecap (true);
// --OPTIONAL - Set debug true to show the url request (only in case of errors) - default is false
$video->set_debug (false);

Resctrictions

maximum 50 movies (youtube restriction)

API key youtube

  1. Create a Google Account

    If you do not already have a Google account, create one now as you'll be needing it.

  2. Create a new Google Project

    Go to your Google Console. Click on Projects in the upper-left, then Create Project and enter a project name & ID.

  3. Enable YouTube Data API V3

    Click on the project you have created if it hasn't already opened after creating. Then go to APIs & auth on the left. In the next screen, click on YouTube Data API V3. Enable the API by toggling the OFF button to ON.

  4. Get API Key

    Once you have enabled the API, click on Quota on the top. You can then click on API Access on the top left and create a new Browser Key. This key can be linked to a domain for security measures, but it is not obligated. Once you've created the key (it should look something like this: AIzaSyDmk3oxVjtu06AWRv60ADPvcYO9tvswzm8), copy it and use it as 'YouTube Data V3 API Key' option.