Examples

1st example search with keywords

FLYING OVER MONTENEGRO (4K UHD) – SOOTHING MU ..
FLYING OVER MONTENEGRO (4K UHD) – SOOTHING MU ..
NORWAY 4K • SCENIC RELAXATION FILM WITH PEACE ..
NORWAY 4K • SCENIC RELAXATION FILM WITH PEACE ..
BREATHTAKING NATURE IN 4K | BBC EARTH
BREATHTAKING NATURE IN 4K | BBC EARTH
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 ..
INCREDIBLE 4K NATURE SCENES NARRATED BY DAVID ..
INCREDIBLE 4K NATURE SCENES NARRATED BY DAVID ..
INCREDIBLE WILDLIFE IN STUNNING 16K HDR 120FP ..
INCREDIBLE WILDLIFE IN STUNNING 16K HDR 120FP ..
NATURE EUROPE 4K • CALM HORIZON WITH DEEP REL ..
NATURE EUROPE 4K • CALM HORIZON WITH DEEP REL ..
AMAZON RAINFOREST DISCOVERY | JUNGLE ANIMALS  ..
AMAZON RAINFOREST DISCOVERY | JUNGLE ANIMALS ..
THE ALPS, AMAZING BEAUTIFUL NATURE WITH SOOTH ..
THE ALPS, AMAZING BEAUTIFUL NATURE WITH SOOTH ..
10 HOURS FANTASTIC VIEWS OF NATURE 4K WITH RE ..
10 HOURS FANTASTIC VIEWS OF NATURE 4K WITH RE ..
SWITZERLAND • 4K RELAXATION FILM: WINTER TO S ..
SWITZERLAND • 4K RELAXATION FILM: WINTER TO S ..
6 HOUR 4K BEAUTIFUL PLACES AERIAL VIEWS
6 HOUR 4K BEAUTIFUL PLACES AERIAL VIEWS
BEAUTIFUL VIEW
BEAUTIFUL VIEW
BEAUTIFUL NATURE VIDEO IN 4K (ULTRA HD) - AUT ..
BEAUTIFUL NATURE VIDEO IN 4K (ULTRA HD) - AUT ..
11 HOURS STUNNING 4K UNDERWATER FOOTAGE + MUS ..
11 HOURS STUNNING 4K UNDERWATER FOOTAGE + MUS ..
ANIMALS OF THE WORLD 4K - SCENIC WILDLIFE FIL ..
ANIMALS OF THE WORLD 4K - SCENIC WILDLIFE FIL ..
BEAUTIFUL RELAXING MUSIC, BEAUTIFUL NATURE SC ..
BEAUTIFUL RELAXING MUSIC, BEAUTIFUL NATURE SC ..
3 HOURS OF INCREDIBLE 4K NATURE FOOTAGE | BBC ..
3 HOURS OF INCREDIBLE 4K NATURE FOOTAGE | BBC ..
🌿 AMAZON RAINFOREST 4K UHD | THE WORLD’S LARG ..
🌿 AMAZON RAINFOREST 4K UHD | THE WORLD’S LARG ..
NATURE RELAXATION FILM 4K - PEACEFUL RELAXING ..
NATURE RELAXATION FILM 4K - PEACEFUL RELAXING ..
RELAXING MUSIC WITH NATURE SOUNDS - WATERFALL ..
RELAXING MUSIC WITH NATURE SOUNDS - WATERFALL ..
NORWAY AMAZING NATURE 4K - THE FIRST 4K ULTRA ..
NORWAY AMAZING NATURE 4K - THE FIRST 4K ULTRA ..
BEAUTIFUL NATURE - INSPUR FRESH FRUIT WONDERF ..
BEAUTIFUL NATURE - INSPUR FRESH FRUIT WONDERF ..
MOST BEAUTIFUL PLACES IN THE WORLD IN 4K UHD  ..
MOST BEAUTIFUL PLACES IN THE WORLD IN 4K UHD ..
NEPAL 4K • SCENIC RELAXATION FILM WITH PEACEF ..
NEPAL 4K • SCENIC RELAXATION FILM WITH PEACEF ..
EARTH'S MOST BEAUTIFUL NATURE 8K HDR 120F ..
EARTH'S MOST BEAUTIFUL NATURE 8K HDR 120F ..
6 HOURS FANTASTIC VIEWS OF THE EARTH 4K WITH  ..
6 HOURS FANTASTIC VIEWS OF THE EARTH 4K WITH ..
FLYING OVER JAPAN (4K UHD) AMAZING BEAUTIFUL  ..
FLYING OVER JAPAN (4K UHD) AMAZING BEAUTIFUL ..
WHISPERS OF THE FOREST 4K • NATURE SOUNDS FOR ..
WHISPERS OF THE FOREST 4K • NATURE SOUNDS FOR ..
THE MOST REAL 4K HDR VIDEO | DOLBY VISION IN  ..
THE MOST REAL 4K HDR VIDEO | DOLBY VISION IN ..
UNSEEN 4K HDR DOLBY VISION 🌿 4K VIDEO ULTRA H ..
UNSEEN 4K HDR DOLBY VISION 🌿 4K VIDEO ULTRA H ..
MOST BEAUTIFUL SCENERY IN THE WORLD - 16K VID ..
MOST BEAUTIFUL SCENERY IN THE WORLD - 16K VID ..
MOST BEAUTIFUL PLACES IN THE WORLD 12K VIDEO  ..
MOST BEAUTIFUL PLACES IN THE WORLD 12K VIDEO ..
TWO HOURS OF 4K NATURE SCENES | 4K UHD | BBC  ..
TWO HOURS OF 4K NATURE SCENES | 4K UHD | BBC ..
INDIA 4K - NATURE RELAXATION FILM - PEACEFUL  ..
INDIA 4K - NATURE RELAXATION FILM - PEACEFUL ..
8 HOURS OF BEAUTIFUL BIRDS (NO MUSIC) 4K NATU ..
8 HOURS OF BEAUTIFUL BIRDS (NO MUSIC) 4K NATU ..
AROUND THE WORLD ANIMALS - 8K (60FPS) ULTRA H ..
AROUND THE WORLD ANIMALS - 8K (60FPS) ULTRA H ..
ANIMALS OF AMAZON RAINFOREST 8K ULTRA HD – JU ..
ANIMALS OF AMAZON RAINFOREST 8K ULTRA HD – JU ..
THE INCREDIBLE WILDLIFE OF HIDDEN FORESTS | B ..
THE INCREDIBLE WILDLIFE OF HIDDEN FORESTS | B ..
THE COLORS OF THE OCEAN 8K ULTRA HD - THE BES ..
THE COLORS OF THE OCEAN 8K ULTRA HD - THE BES ..
FRANCE AMAZING BEAUTIFUL NATURE WITH SOOTHING ..
FRANCE AMAZING BEAUTIFUL NATURE WITH SOOTHING ..
UNSEEN WONDERS | HIDDEN PLACES EVEN LOCALS CA ..
UNSEEN WONDERS | HIDDEN PLACES EVEN LOCALS CA ..
SO BEAUTIFUL 😍 VIEWS IN SWITZERLAND 🇨🇭 SNOWFL ..
SO BEAUTIFUL 😍 VIEWS IN SWITZERLAND 🇨🇭 SNOWFL ..
MORNING MUSIC IN NATURE 4K ULTRA HD • RELAXAT ..
MORNING MUSIC IN NATURE 4K ULTRA HD • RELAXAT ..
MOMENTS WITH BUTTERFLIES 4K 🦋 | SOOTHING NATU ..
MOMENTS WITH BUTTERFLIES 4K 🦋 | SOOTHING NATU ..
12 HOUR 4K FILM "SPLENDORS OF NATURE&QUO ..
12 HOUR 4K FILM "SPLENDORS OF NATURE&QUO ..
THE MOST BEAUTIFUL EARTH SCENES CAPTURED IN 4 ..
THE MOST BEAUTIFUL EARTH SCENES CAPTURED IN 4 ..
ULTIMATE WILD ANIMALS COLLECTION IN 8K ULTRA  ..
ULTIMATE WILD ANIMALS COLLECTION IN 8K ULTRA ..
SOOTHING NATURE 8K VIDEO ULTRA HD 2023
SOOTHING NATURE 8K VIDEO ULTRA HD 2023

2nd example username, in this case rpoland

PERCUSSIVE FINGERSTYLE - SIMPLIFIED (MICHAEL KOBRI ..
PERCUSSIVE FINGERSTYLE - SIMPLIFIED (MICHAEL KOBRI ..
"PARAMNESIA", AN ORIGINAL COMPOSITION BY SEAN DE B ..
‘MEERESBRISE’- ORIGINAL SONG BY 15 YEAR OLD, FILIP ..
‘MEERESBRISE’- ORIGINAL SONG BY 15 YEAR OLD, FILIP ..
‘MEERESBRISE’ (ORIGINAL SONG) BY 15 YEAR OLD…FILIP ..
‘MEERESBRISE’ (ORIGINAL SONG) BY 15 YEAR OLD…FILIP ..
“THE LONG WAY ROUND” BY DYLAN FOWLIE #GUITAR #ACOU ..
“THE LONG WAY ROUND” BY DYLAN FOWLIE #GUITAR #ACOU ..
“THE LONG WAY ROUND” BY DYLAN FOWLIE
“THE LONG WAY ROUND” BY DYLAN FOWLIE
“HEARTBEAT” BY BENE SANOLL OF TIMBREROOTS. ENJOY T ..
“HEARTBEAT” BY BENE SANOLL OF TIMBREROOTS. ENJOY T ..
“HEARTBEAT” BY BENE SANOLL OF ‘TIMBREROOTS’… GUEST ..
“HEARTBEAT” BY BENE SANOLL OF ‘TIMBREROOTS’… GUEST ..
“A LONG AWAITED MOMENT” BY IHOR CHERNY. #GUITAR #G ..
“A LONG AWAITED MOMENT” BY IHOR CHERNY. #GUITAR #G ..
“A LONG AWAITED MOMENT” BY IHOR CHERNY-ACOUSTIC GU ..
“A LONG AWAITED MOMENT” BY IHOR CHERNY-ACOUSTIC GU ..
“DAYBREAK” FOREST BAILEY
“DAYBREAK” FOREST BAILEY
“DAYBREAK”-FOREST BAILEY
“DAYBREAK”-FOREST BAILEY
‘SULTANS OF SWING’ -PATRICK HINDS. #ACOUSTICGUITAR ..
‘SULTANS OF SWING’ -PATRICK HINDS. #ACOUSTICGUITAR ..
“SULTANS OF SWING”-PATRICK HINDS
“SULTANS OF SWING”-PATRICK HINDS
TO KILL A UNICORN-NICK JOHNSON
TO KILL A UNICORN-NICK JOHNSON
PETER CILUZZI - WHAT THEY LEFT BEHIND
PETER CILUZZI - WHAT THEY LEFT BEHIND
WES PARKER - BOTTLED TIME (CARDINAL ELEGY)
WES PARKER - BOTTLED TIME (CARDINAL ELEGY)
NICK JOHNSON - COCAINE SUSTAIN
NICK JOHNSON - COCAINE SUSTAIN
JIMMY WAHLSTEEN - THE DAY BREAKS WHEN YOU WAKE
JIMMY WAHLSTEEN - THE DAY BREAKS WHEN YOU WAKE
R.D. KING (LIVE) - (CANDYRAT CONCERT)
R.D. KING (LIVE) - (CANDYRAT CONCERT)
NATHAN VALLEE - CONVERGENCES
NATHAN VALLEE - CONVERGENCES
ANIELLO MONTELLA - LOVELY HUG
ANIELLO MONTELLA - LOVELY HUG
ALEX ANDERSON - PARTING CLOUDS
ALEX ANDERSON - PARTING CLOUDS
DIMENSION EXPLOSION - 김화종(HWAJONG KIM)
DIMENSION EXPLOSION - 김화종(HWAJONG KIM)
SAMAëL - THE MASK (SOLO ACOUSTIC GUITAR)
SAMAëL - THE MASK (SOLO ACOUSTIC GUITAR)
ALEX ANDERSON - SHADOWLIGHT SUITE (INDIEGOGO)
ALEX ANDERSON - SHADOWLIGHT SUITE (INDIEGOGO)
IAN ETHAN CASE - OPENLAND TRIO (LIVE) - (CANDYRAT  ..
IAN ETHAN CASE - OPENLAND TRIO (LIVE) - (CANDYRAT ..
PIRATES OF THE CARIBBEAN - HWAJONG KIM X JIHO KIM  ..
PIRATES OF THE CARIBBEAN - HWAJONG KIM X JIHO KIM ..
ANCIENT WHISPERS - SAMAëL
ANCIENT WHISPERS - SAMAëL
MIKAEL EKSTRAND - RAT RACE
MIKAEL EKSTRAND - RAT RACE
DANIEL VOTH - CAROUSEL (FEAT. MERETHE SOLTVEDT)
DANIEL VOTH - CAROUSEL (FEAT. MERETHE SOLTVEDT)
DANIEL VOTH - OMEGA (FEAT. ANUP SASTRY, NICK HARRI ..
DANIEL VOTH - OMEGA (FEAT. ANUP SASTRY, NICK HARRI ..
DANIEL VOTH - HOPE SPRINGS ETERNAL (FEAT. MERETHE  ..
DANIEL VOTH - HOPE SPRINGS ETERNAL (FEAT. MERETHE ..
DANIEL VOTH - THE MOMENT (FEAT. MERETHE SOLTVEDT)
DANIEL VOTH - THE MOMENT (FEAT. MERETHE SOLTVEDT)
DANIEL VOTH - NE PLUS ULTRA (FEAT. MERETHE SOLTVED ..
DANIEL VOTH - NE PLUS ULTRA (FEAT. MERETHE SOLTVED ..
DANIEL VOTH - IN THE ZONE (FEAT. MERETHE SOLTVEDT)
DANIEL VOTH - IN THE ZONE (FEAT. MERETHE SOLTVEDT)
DANIEL VOTH - FLOW (FEAT. MERETHE SOLTVEDT)
DANIEL VOTH - FLOW (FEAT. MERETHE SOLTVEDT)
DANIEL VOTH - BLINK OF AN EYE (FEAT. JOE MAXWELL)
DANIEL VOTH - BLINK OF AN EYE (FEAT. JOE MAXWELL)
R.D. KING - FLICKER - ACOUSTIC GUITAR
R.D. KING - FLICKER - ACOUSTIC GUITAR
DANIEL VOTH - HARMONIC DREAMS (FULL RECORD)
DANIEL VOTH - HARMONIC DREAMS (FULL RECORD)
ANIELLO MONTELLA - RICHARD'S SONG
ANIELLO MONTELLA - RICHARD'S SONG
DANIEL VOTH - ON ANGEL’S WINGS
DANIEL VOTH - ON ANGEL’S WINGS
DANIEL VOTH - VALHALLA (FEAT. MERETHE SOLTVEDT)
DANIEL VOTH - VALHALLA (FEAT. MERETHE SOLTVEDT)
R.D. KING (LIVE) - (CANDYRAT CONCERT)
R.D. KING (LIVE) - (CANDYRAT CONCERT)
R.D. KING - CONTINUA
R.D. KING - CONTINUA
ADRIAN BELLUE - MISCHA
ADRIAN BELLUE - MISCHA
ALEX BOLDIN - STARRY SKY - FINGERSTYLE GUITAR
ALEX BOLDIN - STARRY SKY - FINGERSTYLE GUITAR
DUSTIN FURLOW - SERENE (OFFICIAL)
DUSTIN FURLOW - SERENE (OFFICIAL)
DANIEL CAME - THE EMPTY CHAIR
DANIEL CAME - THE EMPTY CHAIR
GIUSEPPE SESSA - ANNE & ROSE
GIUSEPPE SESSA - ANNE & ROSE

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.