YouTube API v3 - Playlist: Get "lastPageToken" - youtube

Im trying to retrieve the oldest video of a playlist using the youtube v3 API. Based on the fact that there's no YT-API-Param to sort the playlist result and the max-value of the max-results param is 50, i'm searching for other solutions.Since the YouTube Data API v3 results are paginated (https://developers.google.com/youtube/v3/docs/playlists/list), i'm looking for a way to a get a "lastPageToken" or some such. Any ideas? Many thanks!

Related

How can I get youtube playlist video from youtube api v3 without deleted video

Youtube api have search method. There are I can use q parameter with "-Deleted video" value, but it not contain playListId value. Also Youtube api have playListItems method, but it not contain query q parameter to exclude "Deleted video". I want get video without deleted videos from youtube play list with maxResults and pagination.

Youtube playlist api returns partial data

I've been trying to get tags for youtube videos using playlists/playlistItems api.
I've seen other questions about this and saw there's a possibility to do it with more than one call (make a call to get the videos, which has the tags).
For example: How to retrieve a YouTube video's tags with YouTube v3 API?, YouTube API - get tags for all videos with playlist query
BUT I see in their api documentation that the snippet in playlists api is supposed to include tags:
But it doesn't!
The url I'm using: https://www.googleapis.com/youtube/v3/playlists?part=snippet&channelIdz=&key=

YouTube API - Fetching playlistItems do not return unlisted items

Using the instructions here, I was able to get a list of all videos on a channel on except videos which are unlisted:
Youtube Api to fetch all videos on a Channel
The YouTube API documentation is not clear on whether I was able to retrieve unlisted channel using the playlistItems request, and this post seems to indicate that the behavior has changed multiple times:
Youtube API returning unlisted videos
Is there any solution on being able to retrieve a full list unlisted videos from the API from the channel? Also, for this specific channel, this API account is connected to the YouTube brand account as a Manager, and I'm not sure whether that changes the behavior of the API.

Get video feeds using Youtube API v3

We have a website which displays our YouTube video channels and favourite videos in our channel, etc. We were using Youtube Data API v2.0 to fetch data.
for example:
https://gdata.youtube.com/feeds/api/users/" + userid + "/playlists?v=2&alt=json-in-script&orderby=" + orderFeedsBy + "&callback=?
But now these links return "NetworkError: 410 Gone". We checked the new YouTube Javascript API, but we didn't understand how to migrate to the new API. Please help us to fix this.
This URL will return JSON with video ids for a playlist:
https://www.googleapis.com/youtube/v3/playlistItems?part=id&playlistId={PLAYLIST_ID}&key={YOUR_API_KEY}
You will need an API Key from console.developers.google.com and the playlist ID.
You can get a list of playlist IDs for a channel with a URL like this:
https://www.googleapis.com/youtube/v3/playlists?part=id&channelId={CHANNEL_ID}&key={YOUR_API_KEY}
Documentation at developers.google.com/youtube/v3/docs/
Youtube stopped support to V2, so to get data from V3 use the below URL
https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&maxResults=50&playlistId={PLAYLIST_ID}&key={KEY}

Youtube Related Videos using Youtube V3 API

I need the API URL for Youtube Related Videos using the Youtube V3 API.
But I couldn't find the direct API call, like it is in Version 2. Did I miss something?
https://developers.google.com/youtube/v3/docs/
Are you trying to find videos related to a video?
You can use search->list call for this with specifying the "relatedToVideoId"
And for anyone looking for a coded example:
GET https://www.googleapis.com/youtube/v3/search?part=snippet&relatedToVideoId=5rOiW_xY-kc&type=video&key={YOUR_API_KEY}

Resources