title: How do I access all videos in a particular playlist with the Youtube API?
body: <p>I'm working on React site for a musician, and I want to make a page that displays the Youtube videos of his music. He has created a playlist of videos he wants included.  I can access the videos individually, but I want to set it up so that whatever videos he adds to that playlist will be accessed by the API and displayed on his site.  </p>
  
  <p>For individual videos I'm using Axios to get the videos from this url:</p>
  
  <pre><code>https://www.googleapis.com/youtube/v3/videos?part=snippet&amp;id=&lt;My ID&gt;&amp;key=&lt;My Key&gt;
  </code></pre>
  
  <p>Then in the render method, I deconstruct 'Videos' off of state, then I map over 'Videos', returning it in an iframe element like so:</p>
  
  <pre><code>&lt;iframe src={https://www.youtube.com/embed/${videos.id}}&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>I've been plyaing with the syntax of my GET url to try to get the playlist, currently I'm getting a status code of <code>400</code> on my GET, so I'll need to start at that point. This is what I have right now for URL to get the playlist:</p>
  
  <pre><code>axios.get('https://www.googleapis.com/youtube/v3/search?key=&lt;My Key&gt;&amp;list=&lt;Playlist ID&gt;&amp;part=snippet,id&amp;order=date&amp;maxResults=20')
  </code></pre>
  
  <p>Can someone give me an idea of how I'm going about this the wrong way?</p>