Stephane Schittly
Stephane Schittly

Reputation: 11

Can't get endAt on videos when calling

I'm using GET https://www.googleapis.com/youtube/v3/playlistItems?part=contentDetails%2Csnippet&maxResults=50&playlistId=PLFs4vir_WsTwwb2zqmtE2WTEFdc7AQHnc&key={YOUR_API_KEY}

This returns all data, but only videoId in each video contentDetails. Maybe I'm missing something here?

Upvotes: 1

Views: 251

Answers (2)

Stephane Schittly
Stephane Schittly

Reputation: 11

Not an answer, but a workaround. You can retrieve a playlist and use videos list with up to 50 videoIds in the URL to retrieve each video duration.

Upvotes: 0

jlmcdonald
jlmcdonald

Reputation: 13667

YouTube has removed the features that set start and end times to playlist items: here's a product forum post that details this (and indicates an official response from Google account reps):

https://productforums.google.com/forum/#!topic/youtube/Gipu_cCDScI

Since playlists can no longer set start/end times on its items, the API no longer delivers them.

Upvotes: 0

Related Questions