Quantcast
Channel: Active questions tagged youtube-api - Stack Overflow
Viewing all articles
Browse latest Browse all 3831

YouTube API - How do I include the link I have generated?

$
0
0

I have set up a Google Cloud project and enabled the YouTube API, I have then followed the documentationn to generate a googleapi link like so:

https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&playlistId={????}rmcE40wikDHMzBqN6QsD4BGs8wx5&key=AIzaSyCSqQqPYMVr3OgYWJ2QvpO1J1idCpb{????}&maxResults=50

I have a simple question that hopefully has a simple answer, how do I include this into my website so it will show what I have requested through the API link?

I have tried to put it in the SRC of an iFrame and cannot find any alternative solutions online.

The response from the iFrame is:

www.googleapis.com refused to connect.

The console also returnns:

Refused to display 'https://www.googleapis.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.

Appreciate this is has a very high chance of me looking silly but hopefully will save someone else in the future too!


Viewing all articles
Browse latest Browse all 3831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>