PlaylistItems: list Returns playlistNotFound










0















When accessing a YouTube Music playlist, the API returns 404. I believe this to be a bug, because the playlist returns in Google's API Explorer. Can someone please look into this?



Example Pop Hotlist Playlist:



GET https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&maxResults=50&playlistId=RDCLAK5uy_kmPRjHDECIcuVwnKsx2Ng7fyNgFKWNJFs&key=YOUR_API_KEY


Example curl command for above playlist:



curl -i -G -d "part=snippet&maxResults=50&playlistId=RDCLAK5uy_kmPRjHDECIcuVwnKsx2Ng7fyNgFKWNJFs&key=YOUR_API_KEY" https://www.googleapis.com/youtube/v3/playlistItems


Returns:



u'error': u'code': 404,
u'errors': [u'domain': u'youtube.playlistItem',
u'location': u'playlistId',
u'locationType': u'parameter',
u'message': u'The playlist identified with the requests <code>playlistId</code> parameter cannot be found.',
u'reason': u'playlistNotFound'],
u'message': u'The playlist identified with the requests <code>playlistId</code> parameter cannot be found.'}









share|improve this question
























  • Could you provide the sample code?

    – abielita
    Nov 14 '18 at 15:52











  • @abielita I have added a sample curl command which returns a 404.

    – Preston Connors
    Nov 15 '18 at 1:32















0















When accessing a YouTube Music playlist, the API returns 404. I believe this to be a bug, because the playlist returns in Google's API Explorer. Can someone please look into this?



Example Pop Hotlist Playlist:



GET https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&maxResults=50&playlistId=RDCLAK5uy_kmPRjHDECIcuVwnKsx2Ng7fyNgFKWNJFs&key=YOUR_API_KEY


Example curl command for above playlist:



curl -i -G -d "part=snippet&maxResults=50&playlistId=RDCLAK5uy_kmPRjHDECIcuVwnKsx2Ng7fyNgFKWNJFs&key=YOUR_API_KEY" https://www.googleapis.com/youtube/v3/playlistItems


Returns:



u'error': u'code': 404,
u'errors': [u'domain': u'youtube.playlistItem',
u'location': u'playlistId',
u'locationType': u'parameter',
u'message': u'The playlist identified with the requests <code>playlistId</code> parameter cannot be found.',
u'reason': u'playlistNotFound'],
u'message': u'The playlist identified with the requests <code>playlistId</code> parameter cannot be found.'}









share|improve this question
























  • Could you provide the sample code?

    – abielita
    Nov 14 '18 at 15:52











  • @abielita I have added a sample curl command which returns a 404.

    – Preston Connors
    Nov 15 '18 at 1:32













0












0








0








When accessing a YouTube Music playlist, the API returns 404. I believe this to be a bug, because the playlist returns in Google's API Explorer. Can someone please look into this?



Example Pop Hotlist Playlist:



GET https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&maxResults=50&playlistId=RDCLAK5uy_kmPRjHDECIcuVwnKsx2Ng7fyNgFKWNJFs&key=YOUR_API_KEY


Example curl command for above playlist:



curl -i -G -d "part=snippet&maxResults=50&playlistId=RDCLAK5uy_kmPRjHDECIcuVwnKsx2Ng7fyNgFKWNJFs&key=YOUR_API_KEY" https://www.googleapis.com/youtube/v3/playlistItems


Returns:



u'error': u'code': 404,
u'errors': [u'domain': u'youtube.playlistItem',
u'location': u'playlistId',
u'locationType': u'parameter',
u'message': u'The playlist identified with the requests <code>playlistId</code> parameter cannot be found.',
u'reason': u'playlistNotFound'],
u'message': u'The playlist identified with the requests <code>playlistId</code> parameter cannot be found.'}









share|improve this question
















When accessing a YouTube Music playlist, the API returns 404. I believe this to be a bug, because the playlist returns in Google's API Explorer. Can someone please look into this?



Example Pop Hotlist Playlist:



GET https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&maxResults=50&playlistId=RDCLAK5uy_kmPRjHDECIcuVwnKsx2Ng7fyNgFKWNJFs&key=YOUR_API_KEY


Example curl command for above playlist:



curl -i -G -d "part=snippet&maxResults=50&playlistId=RDCLAK5uy_kmPRjHDECIcuVwnKsx2Ng7fyNgFKWNJFs&key=YOUR_API_KEY" https://www.googleapis.com/youtube/v3/playlistItems


Returns:



u'error': u'code': 404,
u'errors': [u'domain': u'youtube.playlistItem',
u'location': u'playlistId',
u'locationType': u'parameter',
u'message': u'The playlist identified with the requests <code>playlistId</code> parameter cannot be found.',
u'reason': u'playlistNotFound'],
u'message': u'The playlist identified with the requests <code>playlistId</code> parameter cannot be found.'}






curl google-api youtube-api youtube-data-api google-apis-explorer






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 16 '18 at 12:58









DaImTo

44.3k1160238




44.3k1160238










asked Nov 14 '18 at 4:04









Preston ConnorsPreston Connors

15219




15219












  • Could you provide the sample code?

    – abielita
    Nov 14 '18 at 15:52











  • @abielita I have added a sample curl command which returns a 404.

    – Preston Connors
    Nov 15 '18 at 1:32

















  • Could you provide the sample code?

    – abielita
    Nov 14 '18 at 15:52











  • @abielita I have added a sample curl command which returns a 404.

    – Preston Connors
    Nov 15 '18 at 1:32
















Could you provide the sample code?

– abielita
Nov 14 '18 at 15:52





Could you provide the sample code?

– abielita
Nov 14 '18 at 15:52













@abielita I have added a sample curl command which returns a 404.

– Preston Connors
Nov 15 '18 at 1:32





@abielita I have added a sample curl command which returns a 404.

– Preston Connors
Nov 15 '18 at 1:32












1 Answer
1






active

oldest

votes


















0














I was able to do it using the example they give Explorer using the play list id they gave PLBCF2DAC6FFB574DE I was also able to do it with one of my own play lists.



curl -i -G -d "part=snippet%2CcontentDetails&maxResults=25&playlistId=PLBCF2DAC6FFB574DE&key=AIzaSyCOEeKl4YlWZ_6s-t_9Ru20S8YGAGKj1" https://www.googleapis.com/youtube/v3/playlistItems


Your Play list id



I find the error message playlistNotFound very descriptive here. When i try to use your play list id RDCLAK5uy_kmPRjHDECIcuVwnKsx2Ng7fyNgFKWNJFs I get




"error":
"errors": [

"domain": "youtube.playlistItem",
"reason": "playlistNotFound",
"message": "The playlist identified with the requests <code>playlistId</code> parameter cannot be found.",
"locationType": "parameter",
"location": "playlistId"

],
"code": 404,
"message": "The playlist identified with the requests <code>playlistId</code> parameter cannot be found."




because thats not a valid play list id. I suggest that you check again and ensure that you have copied your play list id correctly






share|improve this answer























  • The explorer did not give me playlistNotFound though; it returned 200, so it is a valid playlist. Can you please revisit this? Also, here is the playlist on YouTube to prove it is a valid playlist.

    – Preston Connors
    Nov 17 '18 at 14:09











  • Look at the full error message you posted it is returning playlistNotFound

    – DaImTo
    Nov 17 '18 at 15:12











  • Yes, I know. That is the problem. It is a valid playlist so the API should not return playlistNotFound. Both the explorer as well as the playlist on YouTube proves it is a valid playlist. Can you please file a bug or fix YouTube Radio Playlists not being accessible from the API?

    – Preston Connors
    Nov 18 '18 at 17:19











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53293040%2fplaylistitems-list-returns-playlistnotfound%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














I was able to do it using the example they give Explorer using the play list id they gave PLBCF2DAC6FFB574DE I was also able to do it with one of my own play lists.



curl -i -G -d "part=snippet%2CcontentDetails&maxResults=25&playlistId=PLBCF2DAC6FFB574DE&key=AIzaSyCOEeKl4YlWZ_6s-t_9Ru20S8YGAGKj1" https://www.googleapis.com/youtube/v3/playlistItems


Your Play list id



I find the error message playlistNotFound very descriptive here. When i try to use your play list id RDCLAK5uy_kmPRjHDECIcuVwnKsx2Ng7fyNgFKWNJFs I get




"error":
"errors": [

"domain": "youtube.playlistItem",
"reason": "playlistNotFound",
"message": "The playlist identified with the requests <code>playlistId</code> parameter cannot be found.",
"locationType": "parameter",
"location": "playlistId"

],
"code": 404,
"message": "The playlist identified with the requests <code>playlistId</code> parameter cannot be found."




because thats not a valid play list id. I suggest that you check again and ensure that you have copied your play list id correctly






share|improve this answer























  • The explorer did not give me playlistNotFound though; it returned 200, so it is a valid playlist. Can you please revisit this? Also, here is the playlist on YouTube to prove it is a valid playlist.

    – Preston Connors
    Nov 17 '18 at 14:09











  • Look at the full error message you posted it is returning playlistNotFound

    – DaImTo
    Nov 17 '18 at 15:12











  • Yes, I know. That is the problem. It is a valid playlist so the API should not return playlistNotFound. Both the explorer as well as the playlist on YouTube proves it is a valid playlist. Can you please file a bug or fix YouTube Radio Playlists not being accessible from the API?

    – Preston Connors
    Nov 18 '18 at 17:19
















0














I was able to do it using the example they give Explorer using the play list id they gave PLBCF2DAC6FFB574DE I was also able to do it with one of my own play lists.



curl -i -G -d "part=snippet%2CcontentDetails&maxResults=25&playlistId=PLBCF2DAC6FFB574DE&key=AIzaSyCOEeKl4YlWZ_6s-t_9Ru20S8YGAGKj1" https://www.googleapis.com/youtube/v3/playlistItems


Your Play list id



I find the error message playlistNotFound very descriptive here. When i try to use your play list id RDCLAK5uy_kmPRjHDECIcuVwnKsx2Ng7fyNgFKWNJFs I get




"error":
"errors": [

"domain": "youtube.playlistItem",
"reason": "playlistNotFound",
"message": "The playlist identified with the requests <code>playlistId</code> parameter cannot be found.",
"locationType": "parameter",
"location": "playlistId"

],
"code": 404,
"message": "The playlist identified with the requests <code>playlistId</code> parameter cannot be found."




because thats not a valid play list id. I suggest that you check again and ensure that you have copied your play list id correctly






share|improve this answer























  • The explorer did not give me playlistNotFound though; it returned 200, so it is a valid playlist. Can you please revisit this? Also, here is the playlist on YouTube to prove it is a valid playlist.

    – Preston Connors
    Nov 17 '18 at 14:09











  • Look at the full error message you posted it is returning playlistNotFound

    – DaImTo
    Nov 17 '18 at 15:12











  • Yes, I know. That is the problem. It is a valid playlist so the API should not return playlistNotFound. Both the explorer as well as the playlist on YouTube proves it is a valid playlist. Can you please file a bug or fix YouTube Radio Playlists not being accessible from the API?

    – Preston Connors
    Nov 18 '18 at 17:19














0












0








0







I was able to do it using the example they give Explorer using the play list id they gave PLBCF2DAC6FFB574DE I was also able to do it with one of my own play lists.



curl -i -G -d "part=snippet%2CcontentDetails&maxResults=25&playlistId=PLBCF2DAC6FFB574DE&key=AIzaSyCOEeKl4YlWZ_6s-t_9Ru20S8YGAGKj1" https://www.googleapis.com/youtube/v3/playlistItems


Your Play list id



I find the error message playlistNotFound very descriptive here. When i try to use your play list id RDCLAK5uy_kmPRjHDECIcuVwnKsx2Ng7fyNgFKWNJFs I get




"error":
"errors": [

"domain": "youtube.playlistItem",
"reason": "playlistNotFound",
"message": "The playlist identified with the requests <code>playlistId</code> parameter cannot be found.",
"locationType": "parameter",
"location": "playlistId"

],
"code": 404,
"message": "The playlist identified with the requests <code>playlistId</code> parameter cannot be found."




because thats not a valid play list id. I suggest that you check again and ensure that you have copied your play list id correctly






share|improve this answer













I was able to do it using the example they give Explorer using the play list id they gave PLBCF2DAC6FFB574DE I was also able to do it with one of my own play lists.



curl -i -G -d "part=snippet%2CcontentDetails&maxResults=25&playlistId=PLBCF2DAC6FFB574DE&key=AIzaSyCOEeKl4YlWZ_6s-t_9Ru20S8YGAGKj1" https://www.googleapis.com/youtube/v3/playlistItems


Your Play list id



I find the error message playlistNotFound very descriptive here. When i try to use your play list id RDCLAK5uy_kmPRjHDECIcuVwnKsx2Ng7fyNgFKWNJFs I get




"error":
"errors": [

"domain": "youtube.playlistItem",
"reason": "playlistNotFound",
"message": "The playlist identified with the requests <code>playlistId</code> parameter cannot be found.",
"locationType": "parameter",
"location": "playlistId"

],
"code": 404,
"message": "The playlist identified with the requests <code>playlistId</code> parameter cannot be found."




because thats not a valid play list id. I suggest that you check again and ensure that you have copied your play list id correctly







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 16 '18 at 12:57









DaImToDaImTo

44.3k1160238




44.3k1160238












  • The explorer did not give me playlistNotFound though; it returned 200, so it is a valid playlist. Can you please revisit this? Also, here is the playlist on YouTube to prove it is a valid playlist.

    – Preston Connors
    Nov 17 '18 at 14:09











  • Look at the full error message you posted it is returning playlistNotFound

    – DaImTo
    Nov 17 '18 at 15:12











  • Yes, I know. That is the problem. It is a valid playlist so the API should not return playlistNotFound. Both the explorer as well as the playlist on YouTube proves it is a valid playlist. Can you please file a bug or fix YouTube Radio Playlists not being accessible from the API?

    – Preston Connors
    Nov 18 '18 at 17:19


















  • The explorer did not give me playlistNotFound though; it returned 200, so it is a valid playlist. Can you please revisit this? Also, here is the playlist on YouTube to prove it is a valid playlist.

    – Preston Connors
    Nov 17 '18 at 14:09











  • Look at the full error message you posted it is returning playlistNotFound

    – DaImTo
    Nov 17 '18 at 15:12











  • Yes, I know. That is the problem. It is a valid playlist so the API should not return playlistNotFound. Both the explorer as well as the playlist on YouTube proves it is a valid playlist. Can you please file a bug or fix YouTube Radio Playlists not being accessible from the API?

    – Preston Connors
    Nov 18 '18 at 17:19

















The explorer did not give me playlistNotFound though; it returned 200, so it is a valid playlist. Can you please revisit this? Also, here is the playlist on YouTube to prove it is a valid playlist.

– Preston Connors
Nov 17 '18 at 14:09





The explorer did not give me playlistNotFound though; it returned 200, so it is a valid playlist. Can you please revisit this? Also, here is the playlist on YouTube to prove it is a valid playlist.

– Preston Connors
Nov 17 '18 at 14:09













Look at the full error message you posted it is returning playlistNotFound

– DaImTo
Nov 17 '18 at 15:12





Look at the full error message you posted it is returning playlistNotFound

– DaImTo
Nov 17 '18 at 15:12













Yes, I know. That is the problem. It is a valid playlist so the API should not return playlistNotFound. Both the explorer as well as the playlist on YouTube proves it is a valid playlist. Can you please file a bug or fix YouTube Radio Playlists not being accessible from the API?

– Preston Connors
Nov 18 '18 at 17:19






Yes, I know. That is the problem. It is a valid playlist so the API should not return playlistNotFound. Both the explorer as well as the playlist on YouTube proves it is a valid playlist. Can you please file a bug or fix YouTube Radio Playlists not being accessible from the API?

– Preston Connors
Nov 18 '18 at 17:19


















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53293040%2fplaylistitems-list-returns-playlistnotfound%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







這個網誌中的熱門文章

How to read a connectionString WITH PROVIDER in .NET Core?

In R, how to develop a multiplot heatmap.2 figure showing key labels successfully

Museum of Modern and Contemporary Art of Trento and Rovereto