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)
3 HOURS OF AMAZING NATURE SCENERY & RELAX ..
3 HOURS OF AMAZING NATURE SCENERY & RELAX ..
THE BREATHTAKING BEAUTY OF NATURE | HD
THE BREATHTAKING BEAUTY OF NATURE | HD
AMAZING NATURE FULL HD 1080P :TIME LAPSE
AMAZING NATURE FULL HD 1080P :TIME LAPSE
4K VIDEO ULTRAHD HDR SONY 4K VIDEOS DEMO TEST ..
4K VIDEO ULTRAHD HDR SONY 4K VIDEOS DEMO TEST ..
BREATHTAKING COLORS OF NATURE IN 4K III 🐦B ..
BREATHTAKING COLORS OF NATURE IN 4K III 🐦B ..
4K VIDEO (ULTRA HD) UNBELIEVABLE BEAUTY
4K VIDEO (ULTRA HD) UNBELIEVABLE BEAUTY
LG 8K 60FPS HDR NATURE 8K VIDEO ULTRA HD FOR  ..
LG 8K 60FPS HDR NATURE 8K VIDEO ULTRA HD FOR ..
BREATHTAKING NATURE SCENERY ON PLANET EARTH & ..
BREATHTAKING NATURE SCENERY ON PLANET EARTH & ..
4K NATURE 24/7 - WORLD'S MOST BEAUTIFUL P ..
4K NATURE 24/7 - WORLD'S MOST BEAUTIFUL P ..
🌎 EARTH'S MOST BEAUTIFUL PLACES HD 108 ..
🌎 EARTH'S MOST BEAUTIFUL PLACES HD 108 ..
RELAXING MUSIC WITH AMAZING NATURE SCENERY HD ..
RELAXING MUSIC WITH AMAZING NATURE SCENERY HD ..
4K RELAXING RIVER - ULTRA HD NATURE VIDEO -   ..
4K RELAXING RIVER - ULTRA HD NATURE VIDEO - ..
THIS IS SWITZERLAND 4K
THIS IS SWITZERLAND 4K
4K AFRICAN WILDLIFE | AFRICAN NATURE SHOWREEL ..
4K AFRICAN WILDLIFE | AFRICAN NATURE SHOWREEL ..
WILD POLAND | NATURE DOCUMENTARY [HD]
WILD POLAND | NATURE DOCUMENTARY [HD]
AMAZING NATURE INCREDIBLE CROATIA - 4K NATURE ..
AMAZING NATURE INCREDIBLE CROATIA - 4K NATURE ..
BEAUTIFUL NATURE VIDEO IN 4K (ULTRA HD) - AUT ..
BEAUTIFUL NATURE VIDEO IN 4K (ULTRA HD) - AUT ..
RELAXING MUSIC WITH NATURE SOUNDS - WATERFALL ..
RELAXING MUSIC WITH NATURE SOUNDS - WATERFALL ..
4K RELAXING  - ULTRA HD NATURE VIDEO | BEAUTI ..
4K RELAXING - ULTRA HD NATURE VIDEO | BEAUTI ..
NATIONAL GEOGRAPHIC WILD THAILAND - NAT GEO W ..
NATIONAL GEOGRAPHIC WILD THAILAND - NAT GEO W ..
FLYING OVER NORWAY (4K UHD) 1HR AMBIENT DRONE ..
FLYING OVER NORWAY (4K UHD) 1HR AMBIENT DRONE ..
► PLANET EARTH: AMAZING NATURE SCENERY.
► PLANET EARTH: AMAZING NATURE SCENERY.
HD  NATURE - RELAXATION VIDEO - MACRO
HD NATURE - RELAXATION VIDEO - MACRO
THUNDERSTORM SOUNDS FOR SLEEP & RELAXATIO ..
THUNDERSTORM SOUNDS FOR SLEEP & RELAXATIO ..
BEAUTIFUL NATURE SPRING 1080P HD
BEAUTIFUL NATURE SPRING 1080P HD
BEAUTIFUL LANDSCAPES 4K ULTRAHD SLIDESHOW 201 ..
BEAUTIFUL LANDSCAPES 4K ULTRAHD SLIDESHOW 201 ..
GERMAN ALPS NATURE WHATSAPP STATUS HD
GERMAN ALPS NATURE WHATSAPP STATUS HD
4K (ULTRA HD) NATURE FILM | INCREDIBLE TURKEY ..
4K (ULTRA HD) NATURE FILM | INCREDIBLE TURKEY ..
RELAXING RIVER SOUNDS - PEACEFUL FOREST RIVER ..
RELAXING RIVER SOUNDS - PEACEFUL FOREST RIVER ..
4K ULTRA HD NATURE VIDEO! HDR / FUJIFILM X-T3
4K ULTRA HD NATURE VIDEO! HDR / FUJIFILM X-T3
4K MOUNTAIN STREAM - RELAXING WATER SOUNDS -  ..
4K MOUNTAIN STREAM - RELAXING WATER SOUNDS - ..
AUTUMN FOREST - RIVER SOUNDS - RELAXING NATUR ..
AUTUMN FOREST - RIVER SOUNDS - RELAXING NATUR ..
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 SCENIC NATURE DOCUMENTARY "BEAUTIFUL  ..
4K SCENIC NATURE DOCUMENTARY "BEAUTIFUL ..
HD NATURE: A POSTCARD FROM BANDON OREGON
HD NATURE: A POSTCARD FROM BANDON OREGON
LAKESIDE CAMPFIRE WITH RELAXING NATURE NIGHT  ..
LAKESIDE CAMPFIRE WITH RELAXING NATURE NIGHT ..
"VENICE IN HD" NATURE RELAXATION™ ..
"VENICE IN HD" NATURE RELAXATION™ ..
4K ULTRA HD NATURE SCENE: FALL OREGON CREEK 1 ..
4K ULTRA HD NATURE SCENE: FALL OREGON CREEK 1 ..
CANOEING IN CANADA ~ HD NATURE ~ RELAXING RIV ..
CANOEING IN CANADA ~ HD NATURE ~ RELAXING RIV ..
4K ULTRA HD NATURE VIDEO! HDR / NIKON Z6
4K ULTRA HD NATURE VIDEO! HDR / NIKON Z6
4K ULTRA HD VIDEO OF WILD ANIMALS - 1 HR 4K W ..
4K ULTRA HD VIDEO OF WILD ANIMALS - 1 HR 4K W ..
SPRING FLOWERS IN 4K (ULTRA HD) 4 HOURS - NAT ..
SPRING FLOWERS IN 4K (ULTRA HD) 4 HOURS - NAT ..
PINK LAKE, UKRAINE - 4K ULTRA HD NATURE RELAX ..
PINK LAKE, UKRAINE - 4K ULTRA HD NATURE RELAX ..
DEEP SLEEP MUSIC AND NATURE SOUNDS - ZEN GARD ..
DEEP SLEEP MUSIC AND NATURE SOUNDS - ZEN GARD ..
8K VIDEO ULTRA HD NATURE HORSES FUHD  SARDINI ..
8K VIDEO ULTRA HD NATURE HORSES FUHD SARDINI ..
4K SUNRISE, MOONLIGHT OVER THE BLACK SEA - UL ..
4K SUNRISE, MOONLIGHT OVER THE BLACK SEA - UL ..

2nd example username, in this case rpoland

FRANCO MORONE - ONE MORE DANZAMORA
FRANCO MORONE - ONE MORE DANZAMORA
BEN FLANDERS FT. SAMMY BOLLER - 'ZERO GRAVITY' (OF ..
BEN FLANDERS FT. SAMMY BOLLER - 'ZERO GRAVITY' (OF ..
EWAN DOBSON - WINTER BY THE SEA
EWAN DOBSON - WINTER BY THE SEA
GRAYSON ERHARD - TAKE THEM DOWN
GRAYSON ERHARD - TAKE THEM DOWN
SEAN DE BURCA - SHAPESHIFTER - METAL INSPIRED FING ..
SEAN DE BURCA - SHAPESHIFTER - METAL INSPIRED FING ..
SAMMY BOLLER - AWAKENING FROM THE DAYDREAM
SAMMY BOLLER - AWAKENING FROM THE DAYDREAM
R.D. KING - CITY SOLITUDE (ACOUSTIC GUITAR)
R.D. KING - CITY SOLITUDE (ACOUSTIC GUITAR)
GARETH PEARSON - IOLANDAS NOBEL PRIZE (ACOUSTIC GU ..
GARETH PEARSON - IOLANDAS NOBEL PRIZE (ACOUSTIC GU ..
GARETH PEARSON - MR. SPONTANEOUS (FINGERSTYLE GUIT ..
GARETH PEARSON - MR. SPONTANEOUS (FINGERSTYLE GUIT ..
WES PARKER - BETWEEN THE MOON AND YOU
WES PARKER - BETWEEN THE MOON AND YOU
SEAN DE BURCA - KUIPER BELT - 7 STRING FINGERSTYLE
SEAN DE BURCA - KUIPER BELT - 7 STRING FINGERSTYLE
BEN FLANDERS FT. NICHOLAS VEINOGLOU “SPICE” (P ..
BEN FLANDERS FT. NICHOLAS VEINOGLOU “SPICE” (P ..
RYAN AYERS - AFTER AFTER
RYAN AYERS - AFTER AFTER
ALI DENIZ KARDELEN - GOODBYE
ALI DENIZ KARDELEN - GOODBYE
JOHN MCLAREN - THE PATHLESS PATH
JOHN MCLAREN - THE PATHLESS PATH
SAMMY BOLLER - SUNRISE SUNSET (LIVE PLAY-THROUGH)
SAMMY BOLLER - SUNRISE SUNSET (LIVE PLAY-THROUGH)
HWAJONG KIM (김화종) - NIGHT (ACOUSTIC GUITAR)
HWAJONG KIM (김화종) - NIGHT (ACOUSTIC GUITAR)
BEN FLANDERS “GROOVE CITY” TEASER
BEN FLANDERS “GROOVE CITY” TEASER
SAMMY BOLLER - KINGDOM OF THE SUN (LIVE ALBUM PERF ..
SAMMY BOLLER - KINGDOM OF THE SUN (LIVE ALBUM PERF ..
GEORDIE LITTLE - HIT
GEORDIE LITTLE - HIT
JOEL SAUNDERS - SARAH'S BAD DAY (FINGERSTYLE GUITA ..
JOEL SAUNDERS - SARAH'S BAD DAY (FINGERSTYLE GUITA ..
QUARANTINE CHORDS - TREVOR GORDON HALL
QUARANTINE CHORDS - TREVOR GORDON HALL
R.D. KING - SANCTUARY (ACOUSTIC GUITAR)
R.D. KING - SANCTUARY (ACOUSTIC GUITAR)
MATHIEU FISET - GET THE GROOVE RIGHT (LIVE SESSION ..
MATHIEU FISET - GET THE GROOVE RIGHT (LIVE SESSION ..
JACOB RAAGAARD - GROOVEMEISTER (WEISSENBORN - LAP  ..
JACOB RAAGAARD - GROOVEMEISTER (WEISSENBORN - LAP ..
BEN FLANDERS FT. NICK BROOMHALL - MI AMOR (PREVIEW ..
BEN FLANDERS FT. NICK BROOMHALL - MI AMOR (PREVIEW ..
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)

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.