[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1597
  • Last Modified:

Is it possible to send multiple videos to a playlist in the same youtube api 3 request?

This snippet below is the base example for adding 1 video but do I have to do multiple requests if I wanted to add two videos? Maybe that's how the accurately track quotas but I wanted to double check.

https://developers.google.com/youtube/v3/sample_requests

POST {base_URL}/playlistItems?part=snippet
  Request body:
  {
    'snippet': {
      'playlistId': '{PLAYLIST_ID}', 
      'resourceId': {
          'kind': 'youtube#video',
          'videoId': '{VIDEO_ID}'
        }
     'position': 0
      }
   }

Open in new window

0
brihol44
Asked:
brihol44
1 Solution
 
ThommyCommented:
The youtube api allows to perform all the actions a user can do on the regular youtube website, including adding and deleting one playlist resource at at time.

So if you want to add multiple items to a playlist, all you can do is to add one after another...

API Reference: Playlists
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now