Extract youtube playlist videos

Oum Alaa

Is there any PHP script to extract a youtube playlist like this playlist https://www.youtube.com/playlist?list=PLxm2pnc42iMLtB9qzzD_I10Jm2eV4P62F

Thanks in advance

Shocklo

You could use youtube api, first you need to register and the use the services, make a get from the url, like this

https://www.googleapis.com/youtube/v3/playlists?part=snippet&id=PLxm2pnc42iMLtB9qzzD_I10Jm2eV4P62F&key={YOUR_API_KEY}

you can see how to build a request in this page :

https://developers.google.com/youtube/v3/docs/playlists/list?hl=es

go to the bottom, there in ID place the channel ID, in this case
PLxm2pnc42iMLtB9qzzD_I10Jm2eV4P62F then in part put the part that you want, example : snippet and then press execute, that way you can retrieve info from youtube using the api.

Later, when you build code you need to put the api in the parameters, like the generated url that i posted where it says "YOUR_API_KEY"

NEW EDIT

OK, First i think you could read a little, in the link i gave you if you wanted to show more than 5 elements, you just have to modify the maxResults parameter, 50 its the max. In your case, if you want to retrieve every element of the list you can do it with this url (remember that you need to put you api key, a direct link WONT WORK) https://www.googleapis.com/youtube/v3/playlistItems?part=contentDetails&maxResults=50&playlistId=PLxm2pnc42iMLtB9qzzD_I10Jm2eV4P62F&key={YOUR_API_KEY}

OR, if you want to see it online you can do it by putting these parameters (see the image)

Api Key Image

After that it will give you a result like this :

     "kind": "youtube#playlistItemListResponse",
     "etag": "\"sGDdEsjSJ_SnACpEvVQ6MtTzkrI/L_ZdoPe02Xer7WRpmCysh4qcWrE\"",
     "pageInfo": {
     "totalResults": 19,
     "resultsPerPage": 50
     },
     "items": [
     {

     "kind": "youtube#playlistItem",
     "etag": "\"sGDdEsjSJ_SnACpEvVQ6MtTzkrI/mW9gHJBweYJuJFbYzeei6ZtlUdU\"",
     "id": "PLV9a8m_7AdmJdyG0E5T8TbcpscCxDcctnXWeFyhx35oU",
     "contentDetails": {
     "videoId": "SX7rbv0H1EU"
     }
     },
     { and so on with each element....

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Background Playlist Youtube Videos

From Dev

Get YouTube playlist videos anonymously

From Dev

Retrieve videos from youtube playlist

From Dev

Get all videos of a YouTube Playlist in Java

From Dev

Get Youtube publish channel playlist videos in android

From Dev

Youtube api not displaying playlist thumbnail for few videos

From Dev

how to build video playlist having youtube videos?

From Dev

Batch Delete Videos From YouTube Favorites Playlist

From Dev

Youtube api not displaying playlist thumbnail for few videos

From Dev

Youtube playlist all videos duration show in php

From Dev

Delete videos from playlist using YouTube API

From Dev

extract private youtube playlist video links

From Dev

Get all YouTube Videos in a Playlist using Angular JS

From Dev

Can not insert multiple videos into a playlist - YouTube API v3

From Dev

YouTube API - get tags for all videos with playlist query

From Dev

YouTube API Playlists list does not give all videos in the playlist

From Java

How to disable "related videos" from an embedded youtube playlist

From Dev

How can I return the number of videos in a YouTube playlist using javascript?

From Dev

Youtube api display limited videos from user's playlist android

From Dev

Download YouTube videos from start of batch to end of batch that is part of a playlist

From Dev

YouTube API Playlists list does not give all videos in the playlist

From Dev

YouTube API - get tags for all videos with playlist query

From Dev

How to get correct JSON format of my playlist videos in YouTube in Android?

From Dev

Download YouTube videos from start of batch to end of batch that is part of a playlist

From Dev

Retrieve all videos from youtube playlist using youtube v3 API

From Dev

Regex to extract both video id or playlist id from youtube url

From Dev

Extract individual links from a single youtube playlist link using python

From Dev

youtube api v3 - get videos from a public playlist. with out using api key

From Dev

Youtube Data API - how to get all videos in a playlist rather than just 50?

Related Related

  1. 1

    Background Playlist Youtube Videos

  2. 2

    Get YouTube playlist videos anonymously

  3. 3

    Retrieve videos from youtube playlist

  4. 4

    Get all videos of a YouTube Playlist in Java

  5. 5

    Get Youtube publish channel playlist videos in android

  6. 6

    Youtube api not displaying playlist thumbnail for few videos

  7. 7

    how to build video playlist having youtube videos?

  8. 8

    Batch Delete Videos From YouTube Favorites Playlist

  9. 9

    Youtube api not displaying playlist thumbnail for few videos

  10. 10

    Youtube playlist all videos duration show in php

  11. 11

    Delete videos from playlist using YouTube API

  12. 12

    extract private youtube playlist video links

  13. 13

    Get all YouTube Videos in a Playlist using Angular JS

  14. 14

    Can not insert multiple videos into a playlist - YouTube API v3

  15. 15

    YouTube API - get tags for all videos with playlist query

  16. 16

    YouTube API Playlists list does not give all videos in the playlist

  17. 17

    How to disable "related videos" from an embedded youtube playlist

  18. 18

    How can I return the number of videos in a YouTube playlist using javascript?

  19. 19

    Youtube api display limited videos from user's playlist android

  20. 20

    Download YouTube videos from start of batch to end of batch that is part of a playlist

  21. 21

    YouTube API Playlists list does not give all videos in the playlist

  22. 22

    YouTube API - get tags for all videos with playlist query

  23. 23

    How to get correct JSON format of my playlist videos in YouTube in Android?

  24. 24

    Download YouTube videos from start of batch to end of batch that is part of a playlist

  25. 25

    Retrieve all videos from youtube playlist using youtube v3 API

  26. 26

    Regex to extract both video id or playlist id from youtube url

  27. 27

    Extract individual links from a single youtube playlist link using python

  28. 28

    youtube api v3 - get videos from a public playlist. with out using api key

  29. 29

    Youtube Data API - how to get all videos in a playlist rather than just 50?

HotTag

Archive