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& ..
COSTA RICA IN 4K 60FPS HDR (ULTRA HD)
COSTA RICA IN 4K 60FPS HDR (ULTRA HD)
RELAXING MUSIC 24/7 WITH BEAUTIFUL NATURE SCE ..
RELAXING MUSIC 24/7 WITH BEAUTIFUL NATURE SCE ..
3 HOURS OF AMAZING NATURE SCENERY ON PLANET E ..
3 HOURS OF AMAZING NATURE SCENERY ON PLANET E ..
THE BREATHTAKING BEAUTY OF NATURE | HD
THE BREATHTAKING BEAUTY OF NATURE | HD
3 HOURS OF AMAZING NATURE SCENERY ON PLANET E ..
3 HOURS OF AMAZING NATURE SCENERY ON PLANET E ..
4K VIDEO ULTRAHD HDR SONY 4K VIDEOS DEMO TEST ..
4K VIDEO ULTRAHD HDR SONY 4K VIDEOS DEMO TEST ..
11 HOURS STUNNING 4K UNDERWATER FOOTAGE + MUS ..
11 HOURS STUNNING 4K UNDERWATER FOOTAGE + MUS ..
BEAUTIFUL SPRING MEADOW & BIRDS SINGING - ..
BEAUTIFUL SPRING MEADOW & BIRDS SINGING - ..
4K VIDEO (ULTRA HD) UNBELIEVABLE BEAUTY
4K VIDEO (ULTRA HD) UNBELIEVABLE BEAUTY
🌎 EARTH'S MOST BEAUTIFUL PLACES HD 108 ..
🌎 EARTH'S MOST BEAUTIFUL PLACES HD 108 ..
BREATHTAKING COLORS OF NATURE IN 4K III 🐦B ..
BREATHTAKING COLORS OF NATURE IN 4K III 🐦B ..
AMAZING NATURE FULL HD 1080P :TIME LAPSE
AMAZING NATURE FULL HD 1080P :TIME LAPSE
► PLANET EARTH: AMAZING NATURE SCENERY.
► PLANET EARTH: AMAZING NATURE SCENERY.
BEAUTIFUL NATURE SPRING 1080P HD
BEAUTIFUL NATURE SPRING 1080P HD
4K RELAXING RIVER - ULTRA HD NATURE VIDEO -   ..
4K RELAXING RIVER - ULTRA HD NATURE VIDEO - ..
4K AFRICAN WILDLIFE | AFRICAN NATURE SHOWREEL ..
4K AFRICAN WILDLIFE | AFRICAN NATURE SHOWREEL ..
RELAXING MUSIC WITH NATURE SOUNDS - WATERFALL ..
RELAXING MUSIC WITH NATURE SOUNDS - WATERFALL ..
RELAXING MUSIC WITH AMAZING NATURE SCENERY HD ..
RELAXING MUSIC WITH AMAZING NATURE SCENERY HD ..
8K OR 4K 60FPS HDR NATURE ULTRA HD FOR  |GHOS ..
8K OR 4K 60FPS HDR NATURE ULTRA HD FOR |GHOS ..
SONY 4K DEMO: ANOTHER WORLD
SONY 4K DEMO: ANOTHER WORLD
LG 8K 60FPS HDR NATURE 8K VIDEO ULTRA HD FOR  ..
LG 8K 60FPS HDR NATURE 8K VIDEO ULTRA HD FOR ..
SAMPLE 4K UHD (ULTRA HD) NATURE FOOTAGE - VAN ..
SAMPLE 4K UHD (ULTRA HD) NATURE FOOTAGE - VAN ..
WILD POLAND | NATURE DOCUMENTARY [HD]
WILD POLAND | NATURE DOCUMENTARY [HD]
"HIDDEN PARADISE" FIJI 90 MINUTE HD ..
"HIDDEN PARADISE" FIJI 90 MINUTE HD ..
BEAUTIFUL NATURE VIDEO IN 4K (ULTRA HD) - AUT ..
BEAUTIFUL NATURE VIDEO IN 4K (ULTRA HD) - AUT ..
HD  NATURE - RELAXATION VIDEO - MACRO
HD NATURE - RELAXATION VIDEO - MACRO
STUNNING 4K ULTRA HD NATURE VIDEO
STUNNING 4K ULTRA HD NATURE VIDEO
RELAXING NATURE SOUNDS FOR STUDY, YOGA AND ME ..
RELAXING NATURE SOUNDS FOR STUDY, YOGA AND ME ..
4K TROPICAL RAIN SOUNDS & RELAXING NATURE ..
4K TROPICAL RAIN SOUNDS & RELAXING NATURE ..
4K ULTRA HD | SAMSUNG UHD DEMO: NATURE IN 4K
4K ULTRA HD | SAMSUNG UHD DEMO: NATURE IN 4K
GYöNYöRű ROVAROK éS BOGARAK A TERMéSZETB ..
GYöNYöRű ROVAROK éS BOGARAK A TERMéSZETB ..
8K VIDEO ULTRA HD NATURE HORSES FUHD  SARDINI ..
8K VIDEO ULTRA HD NATURE HORSES FUHD SARDINI ..
2 HOUR PARADISE BEACH SCENE IN HD | NATURE RE ..
2 HOUR PARADISE BEACH SCENE IN HD | NATURE RE ..
BEAUTIFUL UNDERWATER NATURE - 4K VIDEOS ULTRA ..
BEAUTIFUL UNDERWATER NATURE - 4K VIDEOS ULTRA ..
4K MOUNTAIN STREAM - RELAXING WATER SOUNDS -  ..
4K MOUNTAIN STREAM - RELAXING WATER SOUNDS - ..
4K SCENIC NATURE DOCUMENTARY "BEAUTIFUL  ..
4K SCENIC NATURE DOCUMENTARY "BEAUTIFUL ..
YELLOWSTONE BISONS - RELAXING SCENE IN 4K ULT ..
YELLOWSTONE BISONS - RELAXING SCENE IN 4K ULT ..
4K SPRING FOREST - BLACKBIRD SONG - BIRD SING ..
4K SPRING FOREST - BLACKBIRD SONG - BIRD SING ..
YELLOWSTONE NATIONAL PARK - 4K (ULTRA HD) NAT ..
YELLOWSTONE NATIONAL PARK - 4K (ULTRA HD) NAT ..
4K RELAXING IRELAND | WICKLOW MOUNTAINS - ULT ..
4K RELAXING IRELAND | WICKLOW MOUNTAINS - ULT ..
DEATH VALLEY NATIONAL PARK - 4K (ULTRA HD) NA ..
DEATH VALLEY NATIONAL PARK - 4K (ULTRA HD) NA ..
WILD THAILAND HD (NATURE DOCUMENTAIRE HD)
WILD THAILAND HD (NATURE DOCUMENTAIRE HD)
SPRING FLOWERS IN 4K (ULTRA HD) 4 HOURS - NAT ..
SPRING FLOWERS IN 4K (ULTRA HD) 4 HOURS - NAT ..
WATERFALL PARADISE: PLITVICE LAKES, CROATIA ( ..
WATERFALL PARADISE: PLITVICE LAKES, CROATIA ( ..
RELAXING HD NATURE - 6
RELAXING HD NATURE - 6
SWITZERLAND NATURE _ الطبيعة في سو ..
SWITZERLAND NATURE _ الطبيعة في سو ..
NATURE SOUNDS FOR 1 HOUR - CANADIAN FOREST BI ..
NATURE SOUNDS FOR 1 HOUR - CANADIAN FOREST BI ..
YELLOWSTONE NATIONAL PARK - 4K (ULTRA HD) NAT ..
YELLOWSTONE NATIONAL PARK - 4K (ULTRA HD) NAT ..

2nd example username, in this case rpoland

KEVUAN - SELF CONTROL (ACOUSTIC GUITAR)
KEVUAN - SELF CONTROL (ACOUSTIC GUITAR)
BEN FLANDERS - BUTTER (PREVIEW)
BEN FLANDERS - BUTTER (PREVIEW)
SAMMY BOLLER - CLOAK OF LIGHT (OFFICIAL)
SAMMY BOLLER - CLOAK OF LIGHT (OFFICIAL)
JULIA KM - BAD GUY (BILLIE EILISH)
JULIA KM - BAD GUY (BILLIE EILISH)
DANIEL PADIM - DADDY (COLDPLAY)
DANIEL PADIM - DADDY (COLDPLAY)
ALBERTO ZILIOTTO - WHITEBLOOD
ALBERTO ZILIOTTO - WHITEBLOOD
FINGERSTYLE COLLECTIVE COMPETITION (LIVE & ONLINE)
FINGERSTYLE COLLECTIVE COMPETITION (LIVE & ONLINE)
BEHIND LOCKED DOORS - CLOUD
BEHIND LOCKED DOORS - CLOUD
DONOVAN RAITT - “BLACK IS THE NEW BLACK” (SOLO ..
DONOVAN RAITT - “BLACK IS THE NEW BLACK” (SOLO ..
RYAN AYERS - TWO HOUNDS AND A CLOWN (SOLO GUITAR)
RYAN AYERS - TWO HOUNDS AND A CLOWN (SOLO GUITAR)
R.D. KING - LOVE LINGERS (ACOUSTIC GUITAR)
R.D. KING - LOVE LINGERS (ACOUSTIC GUITAR)
JACOB RAAGAARD - FELINA (WEISSENBORN - LAP STEEL G ..
JACOB RAAGAARD - FELINA (WEISSENBORN - LAP STEEL G ..
BEN FLANDERS - ZERO GRAVITY (FT. SAMMY BOLLER)
BEN FLANDERS - ZERO GRAVITY (FT. SAMMY BOLLER)
BEN FLANDERS - EDGES (PREVIEW)
BEN FLANDERS - EDGES (PREVIEW)
EWAN DOBSON - SCARLATTI - K491
EWAN DOBSON - SCARLATTI - K491
SEAN HALL - SKYLINE (FINGERSTYLE GUITAR)
SEAN HALL - SKYLINE (FINGERSTYLE GUITAR)
SAMMY BOLLER - CLOAK OF LIGHT (LIVE PLAY-THROUGH)
SAMMY BOLLER - CLOAK OF LIGHT (LIVE PLAY-THROUGH)
ALEX ANDERSON - NO-WAY MIRROR
ALEX ANDERSON - NO-WAY MIRROR
DANIEL PADIM - MILONGERSTYLE
DANIEL PADIM - MILONGERSTYLE
HWAJONG KIM - THE DANCE OF A MARIONETTE
HWAJONG KIM - THE DANCE OF A MARIONETTE
EWANDOBSON - SCARLATTI - SONATA K53
EWANDOBSON - SCARLATTI - SONATA K53
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)
ANTOINE DUFOUR FT. VAN LARKINS & TREVOR GORDON HAL ..
ANTOINE DUFOUR FT. VAN LARKINS & TREVOR GORDON HAL ..
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)
ADRIAN BELLUE - WAR GAMES (GUITAR)
ADRIAN BELLUE - WAR GAMES (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 ..

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.