user5662922
user5662922

Reputation:

Retrieve videos from youtube playlist

I am fetching all the videos from the youtube playlist. I am following the procedure given in this answer
Retrieve all videos from youtube playlist using youtube v3 API
I am able to fetched 50 videos of the playlist and to get the remaning result I am passing the url like that

@"https://www.googleapis.com/youtube/v3/playlistItems?pageToken=%@ &part=snippet&playlistId=PL_aEw_4hMkBfAWoYqB6I0G1Oe0qtqcqwF&key={MY_API_KEY}",[jsonDict valueForKey:@"nextPageToken"]];

But I am getting url nil and doesn't getting any result. How can I fetch other videos from youtube playlist??

Upvotes: 1

Views: 494

Answers (1)

Muhammad Salman
Muhammad Salman

Reputation: 553

You are doing right just replace this url with this

@"https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&pageToken=%@&playlistId=PL_aEw_4hMkBfAWoYqB6I0G1Oe0qtqcqwF&key={your_api_key}",[jsonDict valueForKey:@"nextPageToken"]

Upvotes: 1

Related Questions