Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9003449
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:42:48+00:00 2026-06-16T00:42:48+00:00

Good Day, I’m new to this Youtube GData api and i’m having trouble with

  • 0

Good Day, I’m new to this Youtube GData api and i’m having trouble with accessing the list of videos of a particular playlist.

What I did first was get the list of playlist of a particular user. It returned something like this GDataEntryYouTubePlaylistLink 0x888ea20: {v:2.1 title:Playlist Title summary: contentSrc:https://gdata.youtube.com/feeds/api/playlists/PL5......92D127 etag:W/"D04N.....WhJVEU8." authors:1 categories:1 links:related,alternate,self id:tag:youtube.com,2008:user:MyYoutubeUser:playlist:PL5......92D127 countHint:7 unparsed:<media:group>}

I’ve learned that countHint is the number of videos on that playlist. Now, I want to get those videos.

I tried creating a function that would do so, but I don’t know what FeedID I’ll use:

    GDataServiceGoogleYouTube *service = [self youTubeService];

NSString *feedID = kGDataYouTubeUserFeedIDPlaylists; //this was the feedID i used to get the list of playlist of a user
NSURL *feedURL = [GDataServiceGoogleYouTube youTubeURLForUserID:@"MyYoutubeUser"
                                                        userFeedID:feedID];

[service fetchFeedWithURL:feedURL
                 delegate:self
        didFinishSelector:@selector(request:finishedLoading:error:)];
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T00:42:49+00:00Added an answer on June 16, 2026 at 12:42 am

    I was able to find solution to my question. And I hope it can also help you.

    In my viewDidLoad, i called loadYoutube and loadYoutubePlaylist functions.

    • loadYoutube -> gives us the URL given the user and what feedID. In my case, feedID is kGDataYouTubeUserFeedIDUploads because I only want to get the playlists and the videos uploaded by the user.
    • loadYoutubePlaylist -> gives us the URL of the playlists of the user. feedID is kGDataYouTubeUserFeedIDPlaylists
    • loadYoutubeVideosPerPlaylist -> gives us the URL of the videos per playlist.

    This is how the codes look like:

    - (void)loadYoutube
    {
        GDataServiceGoogleYouTube *service = [self youTubeService];
    
        NSString *uploadsID = kGDataYouTubeUserFeedIDUploads;
        NSURL *feedURL = [GDataServiceGoogleYouTube youTubeURLForUserID:@"USERNAME"
                                                             userFeedID:uploadsID];
        NSLog(@"loadYoutube URL: %@", feedURL);
        [service fetchFeedWithURL:feedURL
                         delegate:self
                didFinishSelector:@selector(request:finishedLoadingYoutubeWithFeed:error:)];
    }
    
    - (void)loadYoutubePlaylist
    {
        GDataServiceGoogleYouTube *service = [self youTubeService];
    
        NSString *feedID = kGDataYouTubeUserFeedIDPlaylists;
        NSURL *feedURL = [GDataServiceGoogleYouTube youTubeURLForUserID:@"USERNAME"
                                                                userFeedID:feedID];
        NSLog(@"loadYoutubePlaylist URL: %@", feedURL);
        [service fetchFeedWithURL:feedURL
                         delegate:self
                didFinishSelector:@selector(request:finishedLoadingPlaylistWithFeed:error:)];
    }
    
    - (void)loadYoutubeVideosPerPlaylist:(NSString *)urlString
    {
        GDataServiceGoogleYouTube *service = [self youTubeService];
        NSURL *feedURL = [NSURL URLWithString:urlString];
    
        NSLog(@"loadYoutubeVideosPerPlaylist URL: %@", feedURL);
    
        [service fetchFeedWithURL:feedURL
                         delegate:self
                didFinishSelector:@selector(request:finishedLoadingYoutubeVideosPerPlaylistWithFeed:error:)];
    }
    

    And here are the Youtube requests..

    #pragma mark - Youtube Requests
    
    - (void)request:(GDataServiceTicket *)ticket finishedLoadingYoutubeWithFeed:(GDataFeedBase *)aFeed error:(NSError *)error
    {
    
    }
    
    - (void)request:(GDataServiceTicket *)ticket finishedLoadingPlaylistWithFeed:(GDataFeedBase *)aFeed error:(NSError *)error
    {
        if (kGDataYouTubeUserFeedIDPlaylists) {
            self.playlistFeed = (GDataFeedYouTubeVideo *)aFeed;
    
            NSArray *feedArray = [self.playlistFeed entries];
            for (int i = 0; i < [feedArray count]; i++) {
                GDataEntryBase *entry = [[self.playlistFeed entries] objectAtIndex:i];
                NSString *title = [[entry title] stringValue];
                ;
                NSLog(@"%@", [[entry content] sourceURI]);
                [videoPlaylistURLArray addObject:[[entry content] sourceURI]];
            }
        }
        if (!error) {
            [self addMenuButtons];
            [self setPlaylistIndex:0];
            [SVProgressHUD showSuccessWithStatus:@"Success!"];
        }else{
            [SVProgressHUD showErrorWithStatus:@"Failed Fetching Playlist."];
        }
    }
    
    - (void)request:(GDataServiceTicket *)ticket finishedLoadingYoutubeVideosPerPlaylistWithFeed:(GDataFeedBase *)aFeed error:(NSError *)error
    {
        self.feed = (GDataFeedYouTubeVideo *)aFeed;
        [self.youtubeTable reloadData];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Good day... I have huge trouble with this and it drives me insane. My
Good day all, I am having some trouble with image permissions. I am loading
Good Day all , I am having this problem since many days now ,
Good Day, Can someone confirm what was said at the bottom of this post
Good day, I try to start new Activity from another. But it always crashed.
Good day, all. I know that this is a pretty basic question in terms
Good day, Stack Overflow. I have a homework assignment that I'm working on this
Good day. I'd like to ask a question. Why TextBox control Txt in this
Good day all, First of all, maybe i went about this the wrong way
Good day, I need to extract portion of string which can looks like this:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.