Examples

1st example search with keywords

NORWAY AMAZING BEAUTIFUL NATURE WITH RELAXING ..
NORWAY AMAZING BEAUTIFUL NATURE WITH RELAXING ..
7 HOUR 4K DRONE FILM: "EARTH FROM ABOVE& ..
7 HOUR 4K DRONE FILM: "EARTH FROM ABOVE& ..
FLYING OVER AUSTRIA (4K UHD) - RELAXING MUSIC ..
FLYING OVER AUSTRIA (4K UHD) - RELAXING MUSIC ..
3 HOURS OF AMAZING NATURE SCENERY & RELAX ..
3 HOURS OF AMAZING NATURE SCENERY & RELAX ..
FLYING OVER CANADA (4K UHD) AMAZING BEAUTIFUL ..
FLYING OVER CANADA (4K UHD) AMAZING BEAUTIFUL ..
COSTA RICA IN 4K 60FPS HDR (ULTRA HD)
COSTA RICA IN 4K 60FPS HDR (ULTRA HD)
ULTIMATE WILD ANIMALS COLLECTION IN 8K ULTRA  ..
ULTIMATE WILD ANIMALS COLLECTION IN 8K ULTRA ..
FLYING OVER SPAIN (4K UHD) AMAZING BEAUTIFUL  ..
FLYING OVER SPAIN (4K UHD) AMAZING BEAUTIFUL ..
BREATHTAKING COLORS OF NATURE IN 4K III 🐦BEAU ..
BREATHTAKING COLORS OF NATURE IN 4K III 🐦BEAU ..
THE BREATHTAKING BEAUTY OF NATURE | HD
THE BREATHTAKING BEAUTY OF NATURE | HD
FLYING OVER ITALY (4K UHD) AMAZING BEAUTIFUL  ..
FLYING OVER ITALY (4K UHD) AMAZING BEAUTIFUL ..
FOREST 4K NATURE RELAXATION FILM | RELAXING M ..
FOREST 4K NATURE RELAXATION FILM | RELAXING M ..
SWITZERLAND IN 8K ULTRA HD HDR - HEAVEN OF EA ..
SWITZERLAND IN 8K ULTRA HD HDR - HEAVEN OF EA ..
FLYING OVER  ICELAND (4K UHD) - RELAXING MUSI ..
FLYING OVER ICELAND (4K UHD) - RELAXING MUSI ..
FLYING OVER  BALI (4K UHD) - RELAXING MUSIC A ..
FLYING OVER BALI (4K UHD) - RELAXING MUSIC A ..
HD 1080P - NATURE SCENERY VIDEO
HD 1080P - NATURE SCENERY VIDEO
4K RELAXING RIVER - ULTRA HD NATURE VIDEO -   ..
4K RELAXING RIVER - ULTRA HD NATURE VIDEO - ..
SWITZERLAND  AMAZING BEAUTIFUL NATURE WITH SO ..
SWITZERLAND AMAZING BEAUTIFUL NATURE WITH SO ..
4K VIDEO ( ULTRA HD ) THE MOST BEAUTIFUL PLAC ..
4K VIDEO ( ULTRA HD ) THE MOST BEAUTIFUL PLAC ..
FLYING OVER PARADISE (4K UHD) - RELAXING MUSI ..
FLYING OVER PARADISE (4K UHD) - RELAXING MUSI ..
FLYING OVER HAWAII (4K UHD) AMAZING BEAUTIFUL ..
FLYING OVER HAWAII (4K UHD) AMAZING BEAUTIFUL ..
SCOTLAND IN 4K ULTRA HD HDR - MOTHER OF NATUR ..
SCOTLAND IN 4K ULTRA HD HDR - MOTHER OF NATUR ..
FLYING OVER  JAPAN (4K UHD) - RELAXING MUSIC  ..
FLYING OVER JAPAN (4K UHD) - RELAXING MUSIC ..
FLYING OVER  HAWAII (4K UHD) - RELAXING MUSIC ..
FLYING OVER HAWAII (4K UHD) - RELAXING MUSIC ..
BEAUTIFUL NATURE VIDEO IN 4K (ULTRA HD) - AUT ..
BEAUTIFUL NATURE VIDEO IN 4K (ULTRA HD) - AUT ..
THE BEAUTY OF NATURE 8K ULTRA HD - TOUR AROUN ..
THE BEAUTY OF NATURE 8K ULTRA HD - TOUR AROUN ..
THE WORLD OF BIRDS IN 4K ULTRA HD - RELAXING  ..
THE WORLD OF BIRDS IN 4K ULTRA HD - RELAXING ..
NETHERLANDS 8K • BEAUTIFUL SCENERY, RELAXING  ..
NETHERLANDS 8K • BEAUTIFUL SCENERY, RELAXING ..
4K FOREST STREAM - RELAXING RIVER SOUNDS - NO ..
4K FOREST STREAM - RELAXING RIVER SOUNDS - NO ..
AMAZING NATURE HD (PLANTS GROWING)
AMAZING NATURE HD (PLANTS GROWING)
4K VIDEO (ULTRA HD) : UNBELIEVABLE BEAUTY - R ..
4K VIDEO (ULTRA HD) : UNBELIEVABLE BEAUTY - R ..
WILD LIFE - NATURE DOCUMENTARY FULL HD 1080P
WILD LIFE - NATURE DOCUMENTARY FULL HD 1080P
8K MOTHER NATURE - BEAUTY OF THE WORLD IN 8K  ..
8K MOTHER NATURE - BEAUTY OF THE WORLD IN 8K ..
THUNDERSTORM SOUNDS FOR SLEEP & RELAXATIO ..
THUNDERSTORM SOUNDS FOR SLEEP & RELAXATIO ..
WILD NATURE IN 8K ULTRA HD - ANIMALS WITH REA ..
WILD NATURE IN 8K ULTRA HD - ANIMALS WITH REA ..
THE COLORS OF THE OCEAN 4K VIDEO ULTRA HD - T ..
THE COLORS OF THE OCEAN 4K VIDEO ULTRA HD - T ..
FLYING OVER ENGLAND(4K UHD) - RELAXING MUSIC  ..
FLYING OVER ENGLAND(4K UHD) - RELAXING MUSIC ..
RELAXING NATURE SOUNDS FOR STUDY, YOGA AND ME ..
RELAXING NATURE SOUNDS FOR STUDY, YOGA AND ME ..
LIFE OF BIRDS 8K ULTRA HD – NATURE DOCUMENTAR ..
LIFE OF BIRDS 8K ULTRA HD – NATURE DOCUMENTAR ..
LAKESIDE CAMPFIRE WITH RELAXING NATURE NIGHT  ..
LAKESIDE CAMPFIRE WITH RELAXING NATURE NIGHT ..
RELAXING CONCENTRATION MUSIC: STUDY, WORK – F ..
RELAXING CONCENTRATION MUSIC: STUDY, WORK – F ..
FRANCE AMAZING BEAUTIFUL NATURE WITH SOOTHING ..
FRANCE AMAZING BEAUTIFUL NATURE WITH SOOTHING ..
4K SPRING FOREST - BLACKBIRD SONG - BIRD SING ..
4K SPRING FOREST - BLACKBIRD SONG - BIRD SING ..
A JOURNEY AROUND THE EARTH IN 8K ULTRA HD / N ..
A JOURNEY AROUND THE EARTH IN 8K ULTRA HD / N ..
WILD NATURE - CHILLOUT MIX [ULTRA HD - 4K]
WILD NATURE - CHILLOUT MIX [ULTRA HD - 4K]
RELAXING MUSIC WITH NATURE SOUNDS - WATERFALL ..
RELAXING MUSIC WITH NATURE SOUNDS - WATERFALL ..
EXCEPTIONAL ANIMALS COLLECTION IN 8K ULTRA HD ..
EXCEPTIONAL ANIMALS COLLECTION IN 8K ULTRA HD ..
4K TROPICAL BEACH - RELAXING SEA/ OCEAN WAVE  ..
4K TROPICAL BEACH - RELAXING SEA/ OCEAN WAVE ..
8K COLORFUL WILDLIFE ANIMALS COLLECTION IN 8K ..
8K COLORFUL WILDLIFE ANIMALS COLLECTION IN 8K ..
4K ULTRA HD | SAMSUNG UHD DEMO: NATURE IN 4K
4K ULTRA HD | SAMSUNG UHD DEMO: NATURE IN 4K

2nd example username, in this case rpoland

NICK JOHNSON (LIVE) - (CANDYRAT CONCERT)
NICK JOHNSON (LIVE) - (CANDYRAT CONCERT)
SPENCER ELLIOTT (SE3) - THE WOLF AND THE HAWK
SPENCER ELLIOTT (SE3) - THE WOLF AND THE HAWK
EWAN DOBSON - HERE COME THE MONSTERS
EWAN DOBSON - HERE COME THE MONSTERS
SEAN HALL (LIVE) - (CANDYRAT CONCERT)
SEAN HALL (LIVE) - (CANDYRAT CONCERT)
PETER CILUZZI - EBB & FLOW - FINGERSTYLE GUITAR
PETER CILUZZI - EBB & FLOW - FINGERSTYLE GUITAR
NICK JOHNSON - DIE TRYING - GUITAR
NICK JOHNSON - DIE TRYING - GUITAR
SEAN HALL - CHRISTINE (ACOUSTIC GUITAR)
SEAN HALL - CHRISTINE (ACOUSTIC GUITAR)
SPENCER ELLIOTT (SE3) - JOYSTICK
SPENCER ELLIOTT (SE3) - JOYSTICK
TOM ANELLO - NO SERVICE (FINGERSTYLE GUITAR)
TOM ANELLO - NO SERVICE (FINGERSTYLE GUITAR)
MATT HARP - THE FINAL BOSS
MATT HARP - THE FINAL BOSS
FINGERSTYLE COLLECTIVE FESTIVAL 2022 (UK)
FINGERSTYLE COLLECTIVE FESTIVAL 2022 (UK)
SEAN HALL - WILD PACIFIC - ACOUSTIC GUITAR
SEAN HALL - WILD PACIFIC - ACOUSTIC GUITAR
SPENCER ELLIOTT (SE3) - THERE'S SOMETHING IN THE A ..
SPENCER ELLIOTT (SE3) - THERE'S SOMETHING IN THE A ..
JANET NOGUERA - REFUGE - ACOUSTIC GUITAR
JANET NOGUERA - REFUGE - ACOUSTIC GUITAR
SEAN HALL FT. ANTOINE DUFOUR - WAVERIDER'S WHISKEY
SEAN HALL FT. ANTOINE DUFOUR - WAVERIDER'S WHISKEY
BEN FLANDERS - VALHALLA (OFFICIAL)
BEN FLANDERS - VALHALLA (OFFICIAL)
SPENCER ELLIOTT (SE3) - SILVER MAPLE
SPENCER ELLIOTT (SE3) - SILVER MAPLE
SIMON GARDNER - REFLECTIONS ON A WINTER SKY
SIMON GARDNER - REFLECTIONS ON A WINTER SKY
SPENCER ELLIOTT (SE3) - TORQUE
SPENCER ELLIOTT (SE3) - TORQUE
ACOUSTIC GUITAR - TREVOR GORDON HALL - “KNOW THYSE ..
ACOUSTIC GUITAR - TREVOR GORDON HALL - “KNOW THYSE ..
R.D. KING (LIVE) - (CANDYRAT CONCERT)
R.D. KING (LIVE) - (CANDYRAT CONCERT)
BEN FLANDERS - WAVES (OFFICIAL)
BEN FLANDERS - WAVES (OFFICIAL)
WES PARKER - THINGS FORGOTTEN
WES PARKER - THINGS FORGOTTEN
ACOUSTIC GUITAR - TREVOR GORDON HALL -
ACOUSTIC GUITAR - TREVOR GORDON HALL - "CHASE THE ..
IAN ETHAN CASE - LIVE FROM OPEN LAND - DANIEL FELD ..
IAN ETHAN CASE - LIVE FROM OPEN LAND - DANIEL FELD ..
JEFF GUNN - SPIRITUS MOMENTOUS FEAT. KOI ANUNTA +  ..
JEFF GUNN - SPIRITUS MOMENTOUS FEAT. KOI ANUNTA + ..
R.D. KING - SUMMERLAST
R.D. KING - SUMMERLAST
RYAN AYERS - TRAP ROOM (LIVE IN STUDIO)
RYAN AYERS - TRAP ROOM (LIVE IN STUDIO)
MEMORIES IN THE FESTA - 김화종(HWAJONG KIM)
MEMORIES IN THE FESTA - 김화종(HWAJONG KIM)
ACOUSTIC GUITAR - TREVOR GORDON HALL - “MOMENTUM A ..
ACOUSTIC GUITAR - TREVOR GORDON HALL - “MOMENTUM A ..
JOSEPH LYLE - SURFACE TENSION
JOSEPH LYLE - SURFACE TENSION
TREVOR GORDON HALL (LIVE) - (CANDYRAT CONCERT)
TREVOR GORDON HALL (LIVE) - (CANDYRAT CONCERT)
"SOLITUDE" - DUSTIN FURLOW (OFFICIAL)
LORENZO POLIDORI - CUTTING CORNERS
LORENZO POLIDORI - CUTTING CORNERS
KATGRüVS - AS FAR AS THE EYES CAN SEE
KATGRüVS - AS FAR AS THE EYES CAN SEE
ACOUSTIC GUITAR - TREVOR GORDON HALL - “THIS BEAUT ..
ACOUSTIC GUITAR - TREVOR GORDON HALL - “THIS BEAUT ..
SAMMY BOLLER - DARK NIGHT OF THE SOUL (LIVE PLAYTH ..
SAMMY BOLLER - DARK NIGHT OF THE SOUL (LIVE PLAYTH ..
BEN FLANDERS FT. NICK BROOMHALL - PARADOX (REMIX)
BEN FLANDERS FT. NICK BROOMHALL - PARADOX (REMIX)
SIMON GARDNER - YOU KNOW WHY I ASKED YOU HERE
SIMON GARDNER - YOU KNOW WHY I ASKED YOU HERE
DON ROSS - AS EDDIE LEAVES THE BUILDING
DON ROSS - AS EDDIE LEAVES THE BUILDING
HWAJONG KIM (김화종) - GENESIS (ACOUSTIC GUITAR)
HWAJONG KIM (김화종) - GENESIS (ACOUSTIC GUITAR)
DON ROSS - HOW TO EAT AN AVALANCHE
DON ROSS - HOW TO EAT AN AVALANCHE
ANTOINE DUFOUR - PHASES
ANTOINE DUFOUR - PHASES
SPENCER- ELLIOTT - VIKING LULLABY
SPENCER- ELLIOTT - VIKING LULLABY
DON ROSS - THE IS-OUGHT CONTROVERSY
DON ROSS - THE IS-OUGHT CONTROVERSY
ANDREW WHITE - TRAVELER IN TIME
ANDREW WHITE - TRAVELER IN TIME
DON ROSS - ELEVATION MUSIC
DON ROSS - ELEVATION MUSIC
FESTIVAL - MATT HARP
FESTIVAL - MATT HARP
BRYCE MULLINS - CASK STRENGTH
BRYCE MULLINS - CASK STRENGTH
DON ROSS - STOP DRIVING START PLAYING
DON ROSS - STOP DRIVING START PLAYING

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.